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 (4)
🚧 Files skipped from review as they are similar to previous changes (4)
📝 WalkthroughWalkthroughInterrupt inference now ignores 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
|
I reproduced this exact false interruption on Pi in Orca 1.4.174. The sanitized recording and Pi-specific steps are now on #9208: #9208 (comment) The two-layer change here is the right shape for Pi: the renderer drops Pi/OMP plain Escape before the settle timer, and the main-process guard rejects direct or stale inference requests. Ctrl+C and hook-driven completion remain unchanged. The current review blocker is branch freshness, not the design. GitHub reports this PR as conflicting; it is 1,294 commits behind main. A current-main merge check finds one content conflict, in src/main/agent-hooks/server.ts. When rebasing, retain current main's restored-status, Claude question/cron, active-child, and Codex reconciliation guards, then place the Pi/OMP plain-Escape exclusion immediately after the existing Droid Ctrl+C exclusion and before the OpenCode/Copilot double-Escape check. The other three touched files auto-merge. After rebasing, rerun the focused Vitest files, node/web typechecks, oxlint, and oxfmt already listed in the PR description and update the counts. For extra reviewer confidence, it would be useful to mention or assert that Pi agent_end still transitions the row to done after an ignored navigation Escape; current Pi extension coverage already verifies that agent_end is emitted. With that rebase and fresh validation, I do not see a need to broaden or redesign this patch. @brennanb2025 |
9b639aa to
e89e42b
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. |
|
Thanks for the detailed rebase guidance, that matched what the conflict turned out to be exactly. Rebased onto current main as head Also added the assertion you suggested: a new test proves that after an ignored plain-Escape inference for OMP and Pi, a subsequent Validation rerun after the rebase is in the Testing section of the description. |
|
Thank you for this, and sorry it sat so long. You got here first for OMP and Pi, and the rule that just merged is yours. #20149 landed as fe4237c, and you are a co-author on the commit. Two things you did that we adopted directly: The rule itself — a plain Escape for OMP and Pi is navigation, not an interrupt, so it must never synthesise a stopped row. That is what shipped. The two-sided placement, which was better than ours. Our first revision guarded only in the main process. You did both: a renderer-side skip and a main-side recheck, so a stale or direct inference request cannot route around the renderer. We took your shape. The merged version does need one adjustment — the renderer skip is scoped to Your instinct also caught something we only found later. Because the renderer skip and the existing The merged change combines your half with @brennanb2025's Claude half (#15674), adds Prime Agent, and brings wire-level and in-app verification. The design is yours and theirs. Closing as superseded by the merged change. |
Summary
Closes #9208.
Screenshots
No visual change
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildFocused validation run after the rebase onto current main:
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/agent-interrupt-inference.test.ts src/main/agent-hooks/server.test.ts- passed,303tests passedpnpm run typecheck:web- passedpnpm run typecheck:node- passedpnpm exec oxlint src/renderer/src/components/terminal-pane/agent-interrupt-inference.ts src/renderer/src/components/terminal-pane/agent-interrupt-inference.test.ts src/main/agent-hooks/server.ts src/main/agent-hooks/server.test.ts && pnpm exec oxfmt --check src/renderer/src/components/terminal-pane/agent-interrupt-inference.ts src/renderer/src/components/terminal-pane/agent-interrupt-inference.test.ts src/main/agent-hooks/server.ts src/main/agent-hooks/server.test.ts- passedA server-level test also asserts that after an ignored plain-Escape inference for OMP and Pi, a subsequent
agent_endhook still transitions the row todone, so hook-driven completion is verified end to end rather than only in isolation.AI Review Report
Reviewed against the touched renderer and main interrupt-inference paths. The diff is limited to a plain-Escape ignore guard for OMP and Pi plus regression coverage that proves those agents no longer infer interrupts from navigation Escape, while Ctrl+C for OMP and Pi, Droid's Ctrl+C exclusion, and OpenCode/Copilot double-Escape behavior remain intact. Cross-platform review stays clean on macOS, Linux, and Windows because the change only adjusts shared interrupt-intent policy, without changing shortcuts beyond the existing plain-Escape classification, labels, paths, shell behavior, or Electron-only code paths.
Security Audit
Reviewed for bypass risk. Main keeps the authoritative plain-Escape exclusion, so a direct or stale renderer inference request still cannot synthesize a false stop for OMP or Pi. The change adds no command execution, path handling, credential flow, dependency, or new IPC/API surface.
Notes
The guard is intentionally limited to plain Escape for OMP and Pi. It does not declare Escape globally non-interrupting and does not suppress genuine hook-reported completion.
ELI5
Pressing Escape while navigating in OMP or Pi was treated as interrupting the agent turn. Plain Escape for those agents is ignored for interrupt inference so navigation keys do not fake a stop.