stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
Open 💬 2 comments Opened Aug 12, 2026 by sathvik077
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
/feedback
stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
Been seeing this message from my Codex APP Desktop Mac. over and over again
<img width="822" height="162" alt="Image" src="https://github.com/user-attachments/assets/9930013a-2076-4260-8e76-03cd3dcefecf" />
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I can reproduce the same exact error on macOS in Codex Desktop:
Environment
26.820.60940(build7119)26.5.1arm64)Important context-size signal
The failures are concentrated in one unusually large, image-heavy thread:
The same thread failed on three consecutive follow-ups. The turns lasted approximately 43 minutes, 5 minutes 47 seconds, and 2 minutes 26 seconds before ending with the same stream-disconnected error. Some turns had already emitted commentary, reasoning, file changes, and tool results before the stream failed.
Other fresh Codex threads remained usable at the same time. A basic live connectivity check to
chatgpt.com/backend-api/codex/responsesalso completed in about 0.13 seconds (HTTP 405 for an unauthenticated GET), so the endpoint was reachable when checked. This suggests that thread size / repeated compaction / long-lived streaming may be a contributing factor rather than a complete local network outage.Reproduction pattern
Expected behavior
Privacy note
I am intentionally not attaching the raw 115 MB rollout, screenshots containing private document content, local paths, account identifiers, or the affected thread ID. I can provide redacted diagnostics through a private support channel if needed.