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.

View original on GitHub ↗

7 Comments

darlingm contributor · 6 months ago

I'd love to see a confirmation dialog to make it even harder to do accidentally.

yuezk · 5 months ago

It's really useful for an ex-Vimer. At least, can we introduce an option to configure the behavior?

diego898 · 3 months ago

Yes! Id like to change the default to twice, or change/disable it all together, (change it to ctrl+c) for example.

mbuvarp · 3 months ago

A setting for this would also be appreciated, like the "Require ⌘ + enter to send long prompts" setting.

johnsonsu · 1 month ago

Given that TUI supports Vim mode, this feature is much desired.

bcb · 26 days ago

Pressing escape during normal vi-mode use often interrupts the work in progress.

MajesticMug · 1 day ago

Bump!

This is an easy feature to implement and is quite useful!