codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex stops react on typing. After few attempts to quit by ctrl+c shows error "failed 5: I/O error"

Open it-sha opened this issue 4 weeks ago • 4 comments

What version of Codex is running?

v0.63.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.1-codex-max

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What issue are you seeing?

During long-running codex (Codex CLI) sessions inside WSL, interactive input gradually becomes sluggish and then stops responding. Pressing Ctrl+C only takes effect after 5–6 attempts, after which the terminal starts printing read failed 5: I/O error repeatedly.

What steps can reproduce the bug?

  1. Start codex inside WSL with VSCode bash and keep working for a prolonged period (around 5-7 minutes).
  2. Observe growing input latency. See moment when work becomes impossible
  3. Try to quit by Ctrl+C. See error "failed 5: I/O error"

What is the expected behavior?

I can see typed text with same speed as at the beginning I can continue work with Codex

Additional information

No response

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

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

  • #6576

Powered by Codex Action

github-actions[bot] avatar Nov 28 '25 07:11 github-actions[bot]

Additional info: To notify I am using:

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

May it be related? If so, what should I do to get a notification without this issue?

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

We haven't hard reports of sluggish behavior in WSL from other users, so we will need to determine what is different about your system or configuration.

You mentioned that you're using a notify script. Do you suspect that's related to the problem? Have you tried disabling it to see if that fixes it?

Are you using any other non-default configuration options?

etraut-openai avatar Nov 28 '25 17:11 etraut-openai

@etraut-openai I double checked If remove notify = ["bash", "-lc", "powershell.exe -c \"[System.Media.SystemSounds]::Hand.Play()\""] the Codex works without this issue

But could you recommend a reliable way to get notifications that could work on WSL without this problem? Codex works quite slowly, so it's very important for development experience

it-sha avatar Dec 04 '25 07:12 it-sha