Repository navigation
fix(terminal): reconcile status after escape interrupt - #12345
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe change adds disposal guards to interrupt inference. It captures the pane’s agent-status entry before asynchronous acknowledged Escape or Ctrl-C input is sent. The captured entry is passed to inference after the write succeeds. Tests cover disposed trackers, null baselines, stale acknowledgments, plain Escape inference, and status cleanup after command exit. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Electron QA — Escape interruptValidated commit Scenario:
Before — live turn workingAfter — Escape reconciled the interrupted statusNo mobile emulator run: the PR changes only desktop renderer/native-chat behavior. |
6edcd36 to
03d483e
Compare
03d483e to
f03a8ff
Compare
Electron terminal validationFresh validation against commit Before — Codex is working in the terminal After — Escape interrupts Codex and Orca clears Working Observed after Escape: the transcript reports |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 18750193-c068-4985-ab83-77ea1033a7df
📒 Files selected for processing (3)
src/renderer/src/components/terminal-pane/agent-interrupt-inference.test.tssrc/renderer/src/components/terminal-pane/agent-interrupt-inference.tssrc/renderer/src/components/terminal-pane/pty-connection.ts
🚧 Files skipped from review as they are similar to previous changes (2)
- src/renderer/src/components/terminal-pane/pty-connection.ts
- src/renderer/src/components/terminal-pane/agent-interrupt-inference.ts
Final Electron QA — reviewed HEAD 43e84daValidated the exact Scenario:
Before — real Codex turn workingAfter — Escape reconciles interrupted DoneReview/verification:
No mobile emulator run: this PR changes only the desktop renderer terminal path; SSH fire-and-forget and native-chat paths are unchanged. |
* fix(terminal): reconcile status after escape interrupt * fix(terminal): preserve absent interrupt baseline * fix(terminal): ignore stale input acknowledgments * fix(terminal): order interrupt acknowledgments






Summary
Reliability contract
terminal-input.interrupt-turn-identity: only an accepted Escape or Ctrl+C may reconcile the exact captured active turn to interrupted Done; delayed input must never affect a newer turn or a disposed pane.config/reliability-gates.jsonc; this remains an explicit accepted manifest gap, covered in this PR by the targeted deterministic suites and Electron artifact.[agent-interrupt]failure logs plus captured baseline fields and status history identify rejected or applied inference.Testing
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/agent-interrupt-inference.test.ts src/renderer/src/components/terminal-pane/pty-connection.test.ts src/main/agent-hooks/server.test.ts src/main/ipc/agent-hooks.test.ts— 844 passedpnpm run typecheck:webpnpm run check:max-lines-ratchetgit diff --check origin/main...HEADElectron QA
jaeger @ brennanb2025/fix-codex-escape-status, HEAD43e84daf7dsleep 30; Escape changed the rendered terminal/sidebar/tab from Working to Done/Interruptedstate: done,interrupted: trueAI review report
Security audit
Notes
No mobile emulator run: the PR changes only the desktop renderer acknowledged terminal-input path.