codex - 💡(How to fix) Fix Require Double Escape to Stop a Running Turn in the IDE Extension [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#20216Fetched 2026-04-30 06:31:44
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2
RAW_BUFFERClick to expand / collapse

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.

extent analysis

TL;DR

Implement a double Esc key press requirement to prevent accidental interruption of running turns in the Codex IDE extension.

Guidance

  • Modify the key press event handler to track the number of consecutive Esc key presses and only stop the running turn on the second press.
  • Display a warning message above the composer after the first Esc key press, indicating that another press is required to stop the turn.
  • Consider implementing a queue to store prompts that are entered while a turn is running, and only process them when the user explicitly sends them or returns to the previous turn.
  • Ensure that the warning message is cleared after the second Esc key press or when the user takes another action.

Example

let escPressCount = 0;
// ...

// Key press event handler
if (keyPressed === 'Esc') {
  escPressCount++;
  if (escPressCount === 1) {
    // Display warning message
    showWarning('Press `Esc` again to stop the running turn.');
  } else if (escPressCount === 2) {
    // Stop the running turn
    stopTurn();
    escPressCount = 0;
    // Clear warning message
    hideWarning();
  }
}

Notes

This implementation assumes that the Codex IDE extension has access to the necessary DOM elements and event handlers to display the warning message and track key presses.

Recommendation

Apply workaround: Implement the double Esc key press requirement to prevent accidental interruption of running turns, as it provides a simple and effective solution to the problem.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Require Double Escape to Stop a Running Turn in the IDE Extension [1 participants]