stream disconnected before completion: stream closed before response.completed

Resolved 💬 5 comments Opened Aug 7, 2025 by ProCreations-Official Closed Oct 16, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.16.0

Which model were you using?

gpt-5

What platform is your computer?

Darwin 25.0.0 arm64 arm

What steps can reproduce the bug?

Send a message to Codex with GPT5, authenticated with chatgpt plus account

What is the expected behavior?

Works and response is given

What do you see instead?

🖐 stream disconnected before completion: stream closed before response.completed

Additional information

_No response_

View original on GitHub ↗

5 Comments

ProCreations-Official · 1 year ago

Still getting this after upgrading to 0.19.0

archodev · 1 year ago

I am also getting this error, on macos as well with the default model (gpt 5)

ProCreations-Official · 1 year ago

For me at least, this oddly gets fixed by running sudo codex instead of normal codex. Still get the error without sudo.

ProCreations-Official · 12 months ago

still getting this issue without sudo..... its unsafe and annoying to always use sudo, hoping this gets fixed someday

tibo-openai collaborator · 10 months ago

Closing as obsolete.