stream disconnected before completion: response.failed event received
Resolved 💬 3 comments Opened Jan 21, 2026 by Meikkun Closed Jan 21, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.87.0
What subscription do you have?
Microsoft Foundry API
Which model were you using?
gpt-5.2
What platform is your computer?
Linux 6.18.6-arch1-1 x86_64 unknown
What terminal emulator and version are you using (if applicable)?
Ptyxis 49.2
What issue are you seeing?
After a long session I started having this error: "stream disconnected before completion: response.failed event received". The tool doesn't auto-retry. If I ask to continue in the prompt, the model doesn't seem to be aware the flow stopped.
What steps can reproduce the bug?
Uploaded thread: 019be272-e248-7631-b3f1-449661b6118e
What is the expected behavior?
_No response_
Additional information
_No response_
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Thanks for the bug report. Unfortunately, the log information you uploaded didn't come through. We experienced a temporary outage that prevented some logs from being uploaded over the past 12 hours. The issue has been resolved. If you experience this again, please use
/feedbackto upload your new logs and create a fresh bug report.I noticed that you mentioned that you're using the Microsoft Foundry API. We've received a smattering of reports over the past few weeks that users are seeing disconnects when using Azure endpoints. If you see this, you may want to report the problem to Azure.
同样有这个问题,微软openai的gpt-5-chat,codex-cli 0.73.0