stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
What version of the Codex App are you using (From “About Codex” dialog)?
26.623.81905
What subscription do you have?
Pro 20x
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Since yesterday, I have been encountering recurring connection errors while using Codex, which are blocking my ability to complete tasks. The stream consistently drops before the completion of the response.
Error Message(s):
"stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)"
"Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)"
Context & Observations:
The issue occurs frequently during normal usage, often when the model is generating longer responses or performing remote compaction tasks.
What steps can reproduce the bug?
Anything, even something like "continue"
What is the expected behavior?
_No response_
Additional information
_No response_
5 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Adding another data point for this issue.
I’m seeing the same error:
Observed behavior:
This makes the issue look strongly correlated with large thread context and/or the remote compaction payload/stream path, rather than a simple local network problem.
Expected behavior:
Please prioritize a fix for long-context remote compaction / responses stream reliability.
Adding a reproducible macOS Codex App data point from 2026-07-23.
Environment:
0.144.6The exact error occurred twice in one day across two different workloads:
persisting its result.
successful tool calls, before it could create the issue and finish the
remediation. The App UI displayed the error directly.
The second occurrence is important because it was not merely an idle background
worker or a remote-compaction-only symptom: an actively progressing foreground
turn was terminated. The managed app server remained running, and GitHub/API
connectivity succeeded immediately afterward. No logout, restart, upgrade, or
local-state deletion was attempted.
Expected behavior: a transient responses-stream failure should retry/resume
without terminating the turn, and already completed tool-call state should
remain recoverable so the user can continue the same operational task.
Correction to my previous recurrence report: later network diagnostics found a local confounder for the 2026-07-23 15:24 CST event.
An anonymized shared proxy leaf was consistently failing direct health probes across Discord, GitHub, GitHub Raw, OpenAI WebSocket, and the ChatGPT responses endpoint during the correlated incident window. That leaf has now been removed from the local persistent candidate pools.
Therefore, please do not treat this particular 15:24 occurrence as a clean Codex App-only reproduction. The earlier background occurrence may still be relevant, and I will monitor after the local network repair before attributing another recurrence upstream.
Final local follow-up: the confounder was two distinct failed proxy leaves rather than one. Both were removed only from their affected persistent candidate pools.
After an OpenClash-only restart and a 10-minute soak, all remaining controller candidates passed the Discord, GitHub, GitHub API/Raw, OpenAI WebSocket, and ChatGPT responses probes; client-path checks also passed.
This further disqualifies my 2026-07-23 15:24 CST event as a clean App-only reproduction. I will report a new occurrence only if it happens after this local repair.