Repository navigation
Fix Codex terminal Ctrl+C and background recovery - #3941
Merged
Merged
Conversation
AmethystLiang
force-pushed
the
fix-ctrl-c-exit-on-codex
branch
from
May 30, 2026 21:29
5d8bb9b to
80e7518
Compare
7 of 9 tasks
8 of 9 tasks
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #378.
Tests
pnpm run typecheckpnpm run lintgit diff --checkpnpm vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/pty-connection.test.ts src/renderer/src/components/terminal-pane/xterm-bypass-policy.test.ts src/renderer/src/components/terminal-pane/xterm-bypass-policy-interrupt.test.ts src/renderer/src/components/terminal-pane/xterm-bypass-policy-non-mac.test.ts src/renderer/src/components/terminal-pane/terminal-replay-cursor-state.test.ts src/renderer/src/lib/pane-manager/terminal-complex-script.test.tspnpm exec playwright test tests/e2e/terminal-shortcuts.spec.ts --config tests/playwright.config.ts --project electron-headless -g "plain Ctrl\\+C sends ETX"window.api.app.getIdentity()reportsfix-ctrl-c-exit-on-codex, useddemo-project, created disposable workspaces, enabled Kitty keyboard reporting, pressed/released Control, pressed Ctrl+C, and verified the terminal showed only^Cbefore a cleanecho ORCA_AFTER_CTRL_C_CLEANcommandSKIP_BUILD=1 pnpm exec playwright test tests/e2e/terminal-shortcuts.spec.ts --config tests/playwright.config.ts --project electron-headful -g "Codex-like background"skipped locally because WebGL was not active in this environmentNotes
Risk: medium
Risk assessment: Medium. The validation is broad, including live Electron smoke, but this changes terminal Ctrl+C handling, Kitty keyboard reporting, replay reset behavior, and renderer fallback for Codex-like background output.