Approval popup single-key shortcuts (y/n) capture keystrokes while typing follow-up prompt

Resolved 💬 1 comment Opened Feb 13, 2026 by alexeichhorn Closed Feb 13, 2026

What version of Codex CLI is running?

0.98

What subscription do you have?

Plus

Which model were you using?

gpt-5.3-codex

What platform is your computer?

Darwin Kernel Version 25.2.0 arm64

What terminal emulator and version are you using (if applicable)?

Terminal.app (macOS)

What issue are you seeing?

The approval overlay for command execution and file patches uses single-key shortcuts (y, n, p, a) that fire instantly on keypress. When I'm in the middle of typing a follow-up message and an approval popup appears, my keystrokes get captured by the approval modal instead of going into the text input. For example, typing a word containing "y" or "n" can accidentally approve or reject an action.

This is especially problematic with steer-enabled input (where Enter submits immediately), because the approval popup can appear at any moment while the agent is working and the user is composing their next message.

What steps can reproduce the bug?

  1. Start a session with approval_policy that requires confirmation (e.g. "on-failure" or the default)
  2. Give Codex a task that will trigger a command approval (e.g. "run the tests")
  3. While the agent is working and before the approval popup appears, start typing a follow-up message in the composer
  4. When the approval popup appears mid-typing, any "y" or "n" keystroke immediately approves or rejects the action instead of being captured by the text input

What is the expected behavior?

Single-key shortcuts (y/n/p/a) on the approval overlay should either:

  • Be disabled by default, requiring arrow-key selection + Enter to confirm (like the list selection view already supports), OR
  • Be configurable so users can opt out of single-key approval shortcuts, OR
  • Only activate after a short delay or when the composer is not focused, to prevent accidental captures

At minimum, there should be a way to disable the single-key shortcut behavior so that typing in the composer is not interrupted by approval popups stealing keystrokes.

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗