Require Double Escape to Stop a Running Turn in the IDE Extension

Open 💬 3 comments Opened Apr 29, 2026 by rafaself

What variant of Codex are you using?

IDE Extension

What feature would you like to see?

Codex could require the Esc key to be pressed twice before stopping a running turn in the IDE extension.

This would help prevent users from accidentally interrupting an active task when pressing Esc unintentionally.

Additional information

When the user presses Esc while a turn is running, the extension should not stop the turn immediately. Instead, it should show a small warning above the composer, such as:

Press Esc again to stop the running turn.

Only the second Esc press should stop the thread.

Suggestions:

  • If there are queued prompts, keep them until user explicitly send them or return the previous turn.

View original on GitHub ↗

3 Comments

shoryan09 · 3 months ago

Hi! I'd like to work on this, the double-Esc pattern with a warning between presses. Could a maintainer confirm the approach?

Unturned3 · 3 months ago

Please just allow us to disable this behavior (i.e. ignore ESC key presses entirely). It is really easy to accidentally interrupt an active conversation, especially for Vim users who presses ESC constantly.

lunaynx · 3 months ago

I'd like this for the CLI as well.