stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
Open 💬 13 comments Opened Feb 7, 2026 by chaoming0625
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
thread ID 019c36fa-73a6-7840-82b1-4b672731129f
13 Comments
same for me
Up...
same for me
same for me
@jazz235123, @Higor-Matos, @aqlkzf, thanks for confirming. For bugs like this, it's really important to upload your logs and post the thread ID. Logs are often the key to diagnosing issues like this.
This is my output log:
codex-tui.log
I set the proxy like this:
export ALL_PROXY="socks5://127.0.0.1:1080"
export HTTP_PROXY=$ALL_PROXY
export HTTPS_PROXY=$ALL_PROXY
export http_proxy=$ALL_PROXY
export https_proxy=$ALL_PROXY
Uploaded Feedback: 019c7144-5938-7140-ac8e-8823da3bddbb
(using /feedback in codex)
For me it seems like playwright MCP server is not starting correctly. In the App it therefore results in 5x reconnect, same thread id on cli shows starting mcp server 1/2 playwright not coming up:
<img width="588" height="92" alt="Image" src="https://github.com/user-attachments/assets/906f8d3e-9598-4b66-b941-654a616f32b6" />
for me seemed to be context7 however after going a bit back and forth, disabling, enabling again and rechecking the args I
also set timeout to 40s as recommended, but didn't properly write the setting via codex app.
<img width="821" height="203" alt="Image" src="https://github.com/user-attachments/assets/d27d21eb-48cd-4ac5-8df0-5ac1410b45c1" />
after disabling it, playwright seemed to remain the issue in the same thread - which it was probably not:
<img width="470" height="104" alt="Image" src="https://github.com/user-attachments/assets/1de475cb-1654-43e2-bc22-6149401832a5" />
However if you also disable playwright as well, restart everything, problem remains. now it's just "working" in cli and in app "reconnecting":
<img width="453" height="120" alt="Image" src="https://github.com/user-attachments/assets/ee0a6d14-bea0-4d5c-854a-b1384180d004" />
<img width="659" height="476" alt="Image" src="https://github.com/user-attachments/assets/59d6e043-5510-42af-af1f-2c3d481401e0" />
disabled everything, tried with completely new thread, after like 10 tool calls it got stuck again.
019c7189-1088-7cd3-a063-24a5213aadb3
completely unusable product unfortuneatly rn. Codex 5.3 is a great model - IFF you can use it.
thread ID 019cb97d-0342-71b3-afc6-a15a2acdd65e
Alpine Linux v3.22.2 VM on macOS Sequoia 15.6.1 (24G90)
repeatedly receiving "stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)" - issue persists after exiting and resuming session as well as logging out and back in to codex.
Issue not present on any of the sessions within native macOS (outside of Alpine VM).
@randzzD89 While I initially suspected MCP servers not correctly initializing, I now think that it has some weird network reliability issues with routing the traffic correcty in general.
When using my local WiFi-AP that has some routing behind it, it get's stuck waaay more often than when being directly connected to my phone hotspot.
However I don't see any packet loss issues or unusable bandwith with my setup. Codex (as well as Signal Desktop) are the only Apps complaining by not working or taking way too long
the same problem.
Reconnecting... 1/5
Reconnecting... 2/5
Reconnecting... 3/5
Reconnecting... 4/5
Reconnecting... 5/5
stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
feedback:019cff7d-537e-7c81-88bc-73a871bec89d
I’m seeing this on Windows Codex App as well. Adding diagnostics per @etraut-openai’s request.
Thread IDs:
019f03c6-20cb-7273-8ce6-b7dca4c5aecb— active thread where the reconnect/stream-disconnect behavior is happening019f0201-a4ca-7530-8843-1dbc0e34bc84— local log DB contains recent exactbackend-api/codex/responsesrequest failures for this thread tooEnvironment:
OpenAI.Codex_26.623.4041.0_x64__2p2nqsd0c76g00.142.210.0.26200, x64gpt-5.5, reasoning effortxhighcodex doctor --jsonsummary:overallStatus: okhttps://chatgpt.com/backend-api/ reachable (HTTP 403)HTTP 101 Switching ProtocolsresponsestrueRelevant redacted log facts from local
logs_2.sqlite:2026-06-26T16:53:22Zuseswire_api=responses,transport="responses_websocket",api.path="responses", and logs a successful websocket connection towss://chatgpt.com/backend-api/<redacted>.backend-api/codex/responses/ stream disconnect behavior. Recent example around2026-06-26T16:54:08Z-16:54:09Z:Request failed method=POST url=https://chatgpt.com/backend-api/codex/responses error=error sending request for url (...), modelgpt-5.5,wire_api=responses,transport="responses_http"; later row at2026-06-26T16:54:13Zshowsstatus=200 OKfor the same endpoint.638rows matchingstream disconnected before completionorbackend-api/codex/responses.Local network notes:
0%packet loss; repeated HTTPS probes tochatgpt.comsucceeded quickly.Update on 2026-06-26:
Codex Usage Limits Depleting Faster Than Expected, which is currently markedInvestigating/ degraded performance for Codex.I’m not pasting raw full logs publicly because they contain prompts/local paths, but the above is copied from the redacted/filtered diagnostic rows.