Require Escape twice to interrupt
Open 💬 7 comments Opened Feb 23, 2026 by frangio
💡 Likely answer: A maintainer (darlingm, contributor)
responded on this thread — see the highlighted reply below.
What variant of Codex are you using?
CLI
What feature would you like to see?
Do not interrupt the first time Escape is pressed, instead wait for a second keypress.
Additional information
It's very easy to interrupt the model accidentally by pressing Escape. Interrupting when pressed twice is less prone to accidents. This is similar to https://github.com/openai/codex/pull/8936.
Previously in https://github.com/openai/codex/pull/8760 but closed for lack of prior discussion.
7 Comments
I'd love to see a confirmation dialog to make it even harder to do accidentally.
It's really useful for an ex-Vimer. At least, can we introduce an option to configure the behavior?
Yes! Id like to change the default to twice, or change/disable it all together, (change it to ctrl+c) for example.
A setting for this would also be appreciated, like the "Require ⌘ + enter to send long prompts" setting.
Given that TUI supports Vim mode, this feature is much desired.
Pressing escape during normal vi-mode use often interrupts the work in progress.
Bump!
This is an easy feature to implement and is quite useful!