codex icon indicating copy to clipboard operation
codex copied to clipboard

Cannot type after "Reaching Limit Do you want to switch to mini"

Open guluarte opened this issue 1 year ago • 3 comments

What version of Codex is running?

codex-cli 0.57.0

What subscription do you have?

pro

Which model were you using?

gpt-5-codex

What platform is your computer?

Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64

What issue are you seeing?

Approaching rate limits Switch to gpt-5-codex-mini for lower credit usage?

  1. Switch to gpt-5-codex-mini › 2. Keep current model Press enter to confirm or esc to go back

At this point the CLI stops accepting any input — pressing Enter or Esc has no effect. The only way to recover is to terminate the process with Ctrl + C, after which the terminal outputs:

read failed 5: I/O error

What steps can reproduce the bug?

  • Run codex chat in a terminal.
  • Enter any short or random input such as cdcdc.
  • Wait for the clarification message to appear.
  • When the “Approaching rate limits” prompt shows up, try pressing Enter, Esc, Up or down.

What is the expected behavior?

Codex should remain responsive and allow model selection or continued input without manual termination.

Additional information

  • Occurs consistently after rate-limit prompts.
  • Tmux

guluarte avatar Nov 13 '25 03:11 guluarte

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

  • #6539
  • #6513
  • #6512

Powered by Codex Action

github-actions[bot] avatar Nov 13 '25 03:11 github-actions[bot]

closing this since apparently it was my notify script

 notify = [
   "sh",
   "-c",
   "powershell.exe -Command \"Import-Module BurntToast; New-BurntToastNotification -Text 'Codex', 'Complete'\"",
 ]

guluarte avatar Nov 13 '25 03:11 guluarte

@guluarte I have similar issue under WSL

// config.toml
notify = ["bash", "-lc", "powershell.exe -c \"[System.Media.SystemSounds]::Hand.Play()\""]

Could you recommend a solution to get notification without this read failed 5: I/O error?

it-sha avatar Nov 28 '25 07:11 it-sha