Change the CLI quit command to CTRL-C + CTRL-C
Resolved 💬 2 comments Opened Nov 20, 2025 by hi-fox Closed Jan 14, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
The other CLI interface tools prompt you whether you like to quit when you press CTRL-C, and prompt to press CTRL-C again within a short period of time to actually quit. Codex quits immediately on the first press and when you sometimes are attempting to copy text and misclick and accidentally exit it can be frustrating. Please change the exit command to requiring confirmation
Additional information
_No response_
2 Comments
Thanks for the feature request. I think this is a duplicate of (or largely overlaps) https://github.com/openai/codex/issues/4145. If you agree, consider closing this in favor of the other, which already has some upvotes. Feel free to post additional ideas or clarifications to the existing issue.
This feature will be included in the next release. See this PR for details.