Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughClaude requires two plain Escape inputs before interrupt inference triggers while Claude is working. The first Escape is ignored. The second Escape triggers inference with Mergeability Score: ⚪ Minimal · up to This localized terminal behavior change requires a second Escape to interrupt Claude turns while preserving Ctrl+C behavior; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/renderer/src/components/terminal-pane/agent-interrupt-inference.test.ts (1)
135-149: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover the positive working-turn path.
This test proves that one Escape does not infer after the settle window. It does not prove that a second Escape before the double-Escape timer expires triggers inference with
inputCount: 2. Add a separate positive test for that path.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 4a16d931-3e31-4a5d-8467-6b470953a65c
📥 Commits
Reviewing files that changed from the base of the PR and between 6cdd019 and 16f67773e5bd2c87a0050f1e0319401a1af3614e.
📒 Files selected for processing (2)
src/renderer/src/components/terminal-pane/agent-interrupt-inference.test.tssrc/renderer/src/components/terminal-pane/agent-interrupt-inference.ts
|
Ready for review (contributor priority pack)
Part of a short priority list for maintainers: P0 |
Require two Escapes for Claude only while working so /btw dismiss stays non-interrupt. AskUserQuestion waiting keeps single Escape for inferQuestionAnswered, matching the main-process contract. Addresses review on stablyai#13566
5068318 to
7189a3d
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Claude Code uses plain Escape for TUI cancel (/btw composer, menus) without stopping the turn. Treating a single Escape as interrupt flipped the pane to false red \"Interrupted\". Align Claude with OpenCode/Copilot double-Escape. Fixes stablyai#13547.
Require two Escapes for Claude only while working so /btw dismiss stays non-interrupt. AskUserQuestion waiting keeps single Escape for inferQuestionAnswered, matching the main-process contract. Addresses review on stablyai#13566
7189a3d to
a254cc4
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Community PR: please Approve and run workflows on head |
|
Full The fork workflow run on this PR sits at Happy to re-run it after any change you'd like. |
|
Thank you for this, and sorry it sat so long. #13547 is now fixed by #20149 (merged as fe4237c), so this is closing as superseded. The merged fix takes a different remedy from yours, and I want to be specific about why rather than leave it unexplained — and about the part of yours we did need. What we took from your PR. You spotted that Claude's AskUserQuestion dismissal must stay on the single-Escape path, and you protected it by gating on Why not double Escape. A second Escape raises the threshold but adds no information — it is the same ambiguous key pressed again, and closing two stacked overlays produces precisely that sequence, so the false positive survives in a rarer form. It also moves the cost onto the common path: every genuine interrupt then needs two presses, and a single press leaves the row spinning. The merged rule instead stops trying to read intent out of the keystroke at all for these agents and waits for the provider's own hook, which is where the answer actually lives. That is a judgement about the remedy, not about the diagnosis — your read of the bug was correct, and so was the AskUserQuestion catch. Thanks for taking the time on it. |
Summary
workingwas inferred as interrupt after 500 ms even when Claude only dismissed/btwor another TUI surface ([Bug]: Escape dismissing Claude Code's /btw composer is inferred as a turn interrupt (false red "Interrupted") #13547).Test plan
/btw→ Escape once → still working spinner; Escape twice → interruptedFixes #13547