Skip to content

Bug Report: Codex CLI stuck when requiring permission prompt on iOS #607

@ONEZHIMING

Description

@ONEZHIMING

Describe the bug
When running the Codex CLI on iOS, the tool runs normally until it reaches an operation that requires permission approval (e.g., writing files or executing a command).
At that point, the permission prompt appears but the interface freezes and the CLI never accepts any input, no matter what key is tapped.
The session stays “stuck” and does not proceed. 

This behavior only happens on iOS devices — the same command works correctly on desktop platforms.

To Reproduce
Steps to reproduce this issue:
1. Install Codex CLI (npm install -g @openai/codex)
2. Run a task that triggers a permission prompt (e.g., read/write files / shell commands) 
3. On iOS terminal, wait for the approval prompt
4. Tap or type any key
5. Observe that nothing happens and the CLI remains frozen

Expected behavior
When a permission request appears, the CLI should:
• Accept taps, typing, or explicit confirmation
• Continue executing the task after approval

Instead, the CLI becomes unresponsive until forcefully terminated. 

Environment
• Codex CLI version: (e.g., 0.88.0)
• Model: (e.g., gpt-5.1-codex / coder-model)
• Device: iPhone / iPad
• Terminal app: (e.g., iOS Terminal / Blink / Prompt)
• Operating System: iOS (latest stable)

Additional context
This seems similar to known terminal prompt freezing bugs where Codex interprets buffered input incorrectly or cannot interrupt the prompt properly. 

It only happens on mobile/terminal environments where the input prompt handling differs from standard desktop shells.

Thank you! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions