Approval accidentally gets dismissed when typing a prompt

Resolved 💬 2 comments Opened Apr 23, 2026 by themreza Closed Apr 23, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

0.122.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.4 xhigh

What platform is your computer?

Mac OS 26

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

iTerm2

What issue are you seeing?

In sandboxed mode, if Codex is actively working on a task which involves writing to a file or executing a command, it could ask for approval from the user.

If I start typing a prompt while it's working, there's the possibility for an approval to suddenly pop up and get automatically dismissed due to one of the keys I'm pressing while typing, because approval actions have keyboard shortcuts.

When this happens, I get the following message:

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit `/feedback` to report the issue.

This is annoying because both the agent and the user's trains of thought get interrupted. I then have to tell the agent to continue and try again. There's also the chance that it might behave differently than if it wasn't interrupted.

What steps can reproduce the bug?

  1. Set the Codex CLI in sandbox mode
  2. Ask it to think deeply about something and finally write its thoughts to a file
  3. As it's doing this, start to type a long prompt
  4. Type something that has a letter corresponding to a keyboard shortcut that would dismiss the approval
  5. Be annoyed

What is the expected behavior?

Similar to Claude Code, the CLI should be smart enough to delay showing the approval dialog if the user is actively typing something.

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 4 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #18207

Powered by Codex Action

themreza · 4 months ago

Yes, it is a duplicate of https://github.com/openai/codex/issues/7744.

ChatGPT wasn't able to find that issue when I asked it.

It can be closed.