Repository navigation
fix(tui): advertise the esc interrupt in the busy footer - #109
Merged
Merged
Conversation
#108 made the busy prompt footer lead with "ctrl+c interrupt". Put "esc interrupt" back in front: escape is the interrupt we advertise, in the footer and in the home screen tip. Ctrl+C keeps the single-press interrupt from #108 and every precedence rule around it — only what is on show changes. The footer shortcut now resolves session.interrupt (mapping escape -> esc) and falls back to the session.interrupt.now label when escape is unbound, the mirror of the fallback #108 introduced. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Restores #108's entry to what merged (plus the PR link it was missing) and adds a separate bullet for this change, per the convention that follow-ups get their own entry rather than rewriting the earlier one. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Follow-up to #108. That PR made the busy prompt footer lead with
ctrl+c interrupt; this putsesc interruptback in front.escapeis the interrupt we advertise — in the footer and in the home screen tip.Ctrl+Cstill interrupts. Every behavior from #108 is intact, including the single press, the precedence chain, and the suppressed exit confirm. Only what's on show changes.ctrl+cChanges
component/prompt/index.tsx—interruptShortcutresolvessession.interrupt(mappingescape→esc) and falls back to thesession.interrupt.nowlabel when escape is unbound. That's the mirror of the fallback feat(tui): interrupt the agent with ctrl+c #108 introduced, so a user who unbinds either key still gets a usable hint. The armed state (esc again to interrupt) folds into the same memo, since onlysession.interruptcan arm it.feature-plugins/home/tips-view.tsx— the "stop the AI mid-response" tip points back atsession.interrupt. This file is now byte-identical to its pre-feat(tui): interrupt the agent with ctrl+c #108 state, so it no longer diverges from upstream at all.test/interrupt.view.test.tsx— asserts the footer showsesc interrupt; the ctrl+c draft-clear and single-press abort assertions are unchanged.DIVERGENCES.md— the feat(tui): interrupt the agent with ctrl+c #108 row's footer clause and rationale updated to match.Changelog
#108 and #109 share one
## Unreleasedbullet citing both, rather than a bullet each. They ship in the same version and this PR walks back part of #108, so two entries would contradict each other in the same release. The merged entry describes the net behavior.Testing
bun typecheckclean across all 31 packages.app.exit prints the session epilogue after scoped cleanup) is pre-existing and unrelated — it fails identically on an unmodified tree.🤖 Generated with Claude Code