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_
5 Comments
Still getting this after upgrading to 0.19.0
I am also getting this error, on macos as well with the default model (gpt 5)
For me at least, this oddly gets fixed by running
sudo codexinstead of normal codex. Still get the error without sudo.still getting this issue without sudo..... its unsafe and annoying to always use sudo, hoping this gets fixed someday
Closing as obsolete.