You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: stream disconnected before completion: stream closed before response.completed #9995
Thanks for uploading the logs. I don't see any smoking guns in the logs.
This looks to me like a vanilla networking connectivity issue. Are you using Codex on a corporate network? If so, I recommend working with your IT team to investigate issues with routing, proxies, firewalls, etc.
The issue was a stale, cached authentication session in the local config (it was prioritizing an old/limited API Org instead of my ChatGPT subscription).
Kill lingering processes and remove the cached auth file:
pkill -f codex
rm ~/.codex/auth.json
Start fresh (forcing no env vars to ensure a clean login):
here is a new one.
Or mention your thread ID 019c13b5-b3e2-74b2-aa13-f351fb90a614 in an existing issue. thank you! great stuff codex, I like it more than claude code :)). for now.
@ibabencu, thanks for uploading your logs. That error occurred because you tripped a server-side check that blocks conversations that are considered unsafe. I don't see anything in your prompt that would be an obvious cyber risk or similar, so this was likely a false positive. We're always working to better tune these safety detectors. If you see other instances of this, please use /feedback to upload the session details. We make use of this data to improve the models and detectors.
@atimmer, thanks for uploading your logs. I looked at them, and I suspect the issue you're hitting is due to very long tool outputs. We'll need to look into it further. In the meantime, as a potential workaround, try to reframe the task or adjust your skills / MCPs so the output of tool calls is smaller.
I kept running into this on Azure with gpt-5.3-codex and 5.4. Built a workaround that auto-retries on stream disconnect and splits large tasks into separate sessions to avoid context overflow and compaction errors. https://github.com/pauldinu10/codex-smart
It's a PowerShell wrapper that runs each task from a tasks.md file as a fresh codex exec --full-auto session. If the stream drops, it retries automatically up to N times. Not a fix, but makes Codex usable for long migrations.
Activity
github-actions commentedon Jan 27, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Jan 27, 2026
Thanks for uploading the logs. I don't see any smoking guns in the logs.
This looks to me like a vanilla networking connectivity issue. Are you using Codex on a corporate network? If so, I recommend working with your IT team to investigate issues with routing, proxies, firewalls, etc.
ahmed-ela commentedon Jan 28, 2026
This worked for me:
The issue was a stale, cached authentication session in the local config (it was prioritizing an old/limited API Org instead of my ChatGPT subscription).
Lmk if it also works for you or helps?
ibabencu commentedon Jan 31, 2026
here is a new one.
Or mention your thread ID 019c13b5-b3e2-74b2-aa13-f351fb90a614 in an existing issue. thank you! great stuff codex, I like it more than claude code :)). for now.
etraut-openai commentedon Jan 31, 2026
@ibabencu, thanks for uploading your logs. That error occurred because you tripped a server-side check that blocks conversations that are considered unsafe. I don't see anything in your prompt that would be an obvious cyber risk or similar, so this was likely a false positive. We're always working to better tune these safety detectors. If you see other instances of this, please use
/feedbackto upload the session details. We make use of this data to improve the models and detectors.atimmer commentedon Feb 5, 2026
I've uploaded a
/feedback, thread ID 019c2dad-c1c0-7331-bb4b-0e19534b637a.ibabencu commentedon Feb 5, 2026
etraut-openai commentedon Feb 5, 2026
@atimmer, thanks for uploading your logs. I looked at them, and I suspect the issue you're hitting is due to very long tool outputs. We'll need to look into it further. In the meantime, as a potential workaround, try to reframe the task or adjust your skills / MCPs so the output of tool calls is smaller.
lamellama commentedon Mar 18, 2026
Using the VSCode plugin, I logged out by clicking the settings cog icon at the top of the view and logged back in
pauldinu10 commentedon Mar 23, 2026
I kept running into this on Azure with gpt-5.3-codex and 5.4. Built a workaround that auto-retries on stream disconnect and splits large tasks into separate sessions to avoid context overflow and compaction errors.
https://github.com/pauldinu10/codex-smart
It's a PowerShell wrapper that runs each task from a tasks.md file as a fresh codex exec --full-auto session. If the stream drops, it retries automatically up to N times. Not a fix, but makes Codex usable for long migrations.
PZ123CLI commentedon Jun 20, 2026
stream disconnected before completion: stream closed before response.completed