Skip to content

tui: exit session on Ctrl+C in cwd change prompt#12040

Merged
charley-oai merged 1 commit intomainfrom
cc/cwd-prompt-ctrl-c-exit
Feb 17, 2026
Merged

tui: exit session on Ctrl+C in cwd change prompt#12040
charley-oai merged 1 commit intomainfrom
cc/cwd-prompt-ctrl-c-exit

Conversation

@charley-oai
Copy link
Collaborator

@charley-oai charley-oai commented Feb 17, 2026

Summary

  • change the cwd-change prompt (shown when resuming/forking across different directories) so Ctrl+C/Ctrl+D exits the session instead of implicitly selecting "Use session directory"
  • introduce explicit prompt and resolver exit outcomes so this intent is propagated cleanly through both startup resume/fork and in-app /resume flows
  • add a unit test that verifies Ctrl+C exits rather than selecting an option

Why

Previously, pressing Ctrl+C on this prompt silently picked one of the options, which made it hard to abort. This aligns the prompt with the expected quit behavior.

Codex author

codex resume 019c6d39-bbfb-7dc3-8008-1388a054e86d

@charley-oai
Copy link
Collaborator Author

@codex review this

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@charley-oai charley-oai merged commit 709e213 into main Feb 17, 2026
85 of 89 checks passed
@charley-oai charley-oai deleted the cc/cwd-prompt-ctrl-c-exit branch February 17, 2026 22:48
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants