codex - 💡(How to fix) Fix Approval accidentally gets dismissed when typing a prompt [2 comments, 2 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#19165Fetched 2026-04-24 05:59:32
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2closed ×1

Root Cause

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.

Code Example

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

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

extent analysis

TL;DR

Delaying the approval dialog when the user is actively typing could prevent the conversation from being interrupted.

Guidance

  • Identify the keyboard shortcuts that dismiss the approval dialog and avoid using them while typing a prompt.
  • Consider adding a feature to detect when the user is typing and delay the approval dialog until the user finishes typing.
  • Implement a buffer or timeout to prevent the approval dialog from appearing immediately when the user starts typing.
  • Review the Codex CLI's sandbox mode settings to see if there are any options to customize the approval dialog behavior.

Example

No code snippet is provided as it is not explicitly supported by the issue.

Notes

The issue seems to be related to the timing of the approval dialog and the user's typing input. The solution may involve modifying the Codex CLI's behavior to prioritize the user's input over the approval dialog.

Recommendation

Apply a workaround, such as avoiding certain keyboard shortcuts while typing or implementing a custom solution to delay the approval dialog, as the issue is not directly related to a specific version or subscription.

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