codex icon indicating copy to clipboard operation
codex copied to clipboard

⚠️ Stream error: stream disconnected before completion

Open brandontan opened this issue 1 year ago • 29 comments

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

  1. Run Codex CLI and observe the stream output
  2. 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

brandontan avatar Sep 28 '25 09:09 brandontan

+1

Lzzzs avatar Sep 28 '25 12:09 Lzzzs

+1

felixzhao11 avatar Sep 28 '25 18:09 felixzhao11

+1

EthanDuan05 avatar Sep 28 '25 19:09 EthanDuan05

I've been seeing this since Saturday evening 28th September

Alistair888 avatar Sep 28 '25 23:09 Alistair888

+1

Garand0o0 avatar Sep 29 '25 07:09 Garand0o0

+1

jonas-karlsson avatar Sep 29 '25 07:09 jonas-karlsson

+1

happyme531 avatar Sep 29 '25 09:09 happyme531

It is totally dead for hours

tom10271 avatar Sep 29 '25 14:09 tom10271

+1

huangxy29 avatar Sep 30 '25 02:09 huangxy29

+1

josephanxie avatar Sep 30 '25 05:09 josephanxie

+1

rbjarnason avatar Sep 30 '25 23:09 rbjarnason

+1

zzh-newlearner avatar Oct 01 '25 09:10 zzh-newlearner

+1

true-tema avatar Oct 02 '25 17:10 true-tema

+1

timothee-aubourg avatar Oct 04 '25 14:10 timothee-aubourg

Can you please provide cli version numbers and session ids from when you encountered this issue?

dylan-hurd-oai avatar Oct 05 '25 06:10 dylan-hurd-oai

OpenAI Codex (v0.42.0)

bolom avatar Oct 06 '25 11:10 bolom

+1

trollnuulnuul7 avatar Oct 06 '25 17:10 trollnuulnuul7

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

bolinfest avatar Oct 08 '25 18:10 bolinfest

updated to 0.46, same issue

SnowPeakLiu avatar Oct 09 '25 03:10 SnowPeakLiu

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.

dellis23 avatar Oct 10 '25 00:10 dellis23