Approval accidentally gets dismissed when typing a prompt
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?
- Set the Codex CLI in sandbox mode
- Ask it to think deeply about something and finally write its thoughts to a file
- As it's doing this, start to type a long prompt
- Type something that has a letter corresponding to a keyboard shortcut that would dismiss the approval
- 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_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗