⚠️ Stream error: stream disconnected before completion
Summary
Encountered the following warning when running Codex CLI. The retry loop does not recover:
⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 1/5 in 186ms…
Steps to Reproduce
- Run Codex CLI and observe the stream output
- Transport decoding error appears and retries but never succeeds
Expected Result
The stream should remain connected until completion without transport decode errors.
Actual Result
The stream disconnects before completion, logs the transport decoding error above, and retries without success.
Environment
- Codex CLI version: unknown
- Platform/OS: macOS (details unavailable)
- Network: standard broadband connection
Additional Context
- Error continues after multiple retries
- No additional stack trace was emitted beyond the message above
+1
+1
+1
I've been seeing this since Saturday evening 28th September
+1
+1
+1
It is totally dead for hours
+1
+1
+1
+1
+1
+1
Can you please provide cli version numbers and session ids from when you encountered this issue?
OpenAI Codex (v0.42.0)
+1
We have an uncertain fix in https://github.com/openai/codex/releases/tag/rust-v0.46.0-alpha.4
npm install -g @openai/codex@alpha
is probably the easiest way to install the latest alpha, or alternatively:
npx @openai/codex@alpha
updated to 0.46, same issue
Getting this as well. I've tried codex on windows with terminal, I've tried codex with windows on powershell, I've tried codex with windows on WSL, I've tried codex with windows on git bash, I've tried codex in WSL with MCP servers that help work around its inability to do basic filesystem operations, and I've now resorted to installing codex in an ubuntu VM because I've been promised all my woes were due to windows. Still, I'm getting this:
⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 1/5 in 217ms…
⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 2/5 in 394ms…
⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 3/5 in 729ms…
⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 4/5 in 1.712s…
⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 5/5 in 3.031s…
■ stream disconnected before completion: Transport error: error decoding response body
› Continue
⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 1/5 in 202ms…
⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 2/5 in 360ms…
⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 3/5 in 877ms…
I don't understand. I just want to use your software.