Repository navigation
Esc and Ctrl+C stop the live turn - #520
Merged
currentbits merged 1 commit intoAug 18, 2026
Merged
Conversation
Esc interrupts a working thread without discarding the draft. Ctrl+C does the same when the composer has no selection, so copy still works on highlighted text. Idle double-Esc rewinds the last turn.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
deleted the
coder/esc-ctrl-c-in-the-composer-stops-the-liv-914612
branch
October 3, 2026 16:07
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 #478. One key stops the agent.
While a thread is working and no composer menu is open, Esc calls
stopRun. The draft stays. Ctrl+C in the composer does the same when nothing is selected, so copy still works on a highlighted draft. Cmd+C is not intercepted.Idle double-Esc rewinds the last turn (same path as
/rewind). A single idle Esc does nothing.Why
Stop was a click on the status strip. You look up from the composer, the agent is about to
rmsomething, and Esc did nothing. That is how unsupervised damage lands.#315 is the backend actually dying. This is the key.
Contract
stopRun; draft staysstopRunModals, the narrow drawer, notes, and rename keep Esc. Permission prompts do not — that is the interrupt case.
The Stop button title is
Esc · Ctrl+C. The keyboard sheet lists the chords.Tests
10 pass.