feat(zeph-tui): unify Ctrl+C semantics for interrupt and quit#6653
Merged
Conversation
Ctrl+C now cancels the current agent turn immediately when the agent is busy, moved from Esc which was too easy to trigger by reflex and silently aborted running turns. When the agent is idle, a single Ctrl+C no longer quits outright: it arms a ~500ms double-press window and shows a status-bar hint; a second Ctrl+C within the window quits, a later press re-arms instead. q and /quit are unaffected.
bug-ops
enabled auto-merge (squash)
July 22, 2026 16:00
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
Press Ctrl+C again to exitin the status bar; a second press within the window quits, a later press re-arms instead.q//quit(immediate quit) are unaffected.anim_tick()clock (noInstant::now()/SystemTime::now()on the key-decode path), keeping the behavior deterministically testable.Closes #6646
Test plan
cargo +nightly fmt --checkcargo clippy --profile ci --workspace --all-targets --features "desktop,ide,server,chat,pdf,scheduler,testing" -- -D warningscargo nextest run --config-file .github/nextest.toml --workspace --features "desktop,ide,server,chat,pdf,scheduler" --lib --bins— 15071 passedcargo doc --no-deps --workspace --features "desktop,ide,server,chat,pdf,scheduler"(rustdoc gate) — cleancrates/zeph-tui/src/app/tests.rs,crates/zeph-tui/src/widgets/status.rs,crates/zeph-tui/src/widgets/input.rscovering: single vs double Ctrl+C while idle, exact double-press window boundary, Ctrl+C cancels a busy turn immediately, cancel clears the pending quit window (no stale-window carryover), Esc no longer cancels a busy turn, status-bar hint appears/expiresspecs/011-tui/spec.md,.local/testing/playbooks/tui.md,.local/testing/coverage-status.md,CHANGELOG.md