codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex is not working - "stream error: stream disconnected before completion...

Open dilshodturab opened this issue 1 year ago • 7 comments

What version of Codex is running?

0.7.0

Which model were you using?

o3, gpt-4.1

What platform is your computer?

Linux 6.15.6-arch1-1 x86_64 unknown

What steps can reproduce the bug?

Image

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

dilshodturab avatar Jul 17 '25 09:07 dilshodturab

Image The same on MacOS

gniewkob avatar Jul 18 '25 21:07 gniewkob

https://grok.com/share/bGVnYWN5_291468fe-b9cd-44a4-928e-dbc5be3b4542

doesn't help

Image

gniewkob avatar Jul 19 '25 12:07 gniewkob

It looks like process_sse in client.rs does not handle "error" and "response.failed" SSE events, which seem to be sent if the API key is not valid.

davidhewitt avatar Jul 23 '25 11:07 davidhewitt

@davidhewitt I believe this was fixed by https://github.com/openai/codex/pull/1649, so try 0.9.0? /cc @pakrym-oai

bolinfest avatar Jul 23 '25 22:07 bolinfest

Yep definitely looks better on 0.9.0, the error gets logged now 👍

davidhewitt avatar Jul 24 '25 08:07 davidhewitt

@davidhewitt thanks for verifying! Closing.

bolinfest avatar Jul 24 '25 18:07 bolinfest