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
Continuously reconnecting: "stream disconnected before completion" #10378
Hi, thank you for the quick response! I am using all detault settings. I can't say this with 100% certainty, but I believe its the default OpenAI endpoint. The ID of an exemplary chat (it happens in all of them) is: 019c0ee3-1933-72b2-bdc6-c5d5f823460a
I looked at your logs. This appears to be a basic network connectivity issue. You'll need to debug on your end. Check for things like firewalls, network proxies (TLS handshakes), VPNs, or DNS issues. If you're on a corporate network, your IT team may be able to help.
Thank you for checking. Yes, you appear to be right. Even though we are not using a VPN, there appear to be some additional firewall settings or the like because the issue does NOT appear when in the office. Does this point to something specific that I could tell our IT or is this too little information to go off of. If so, feel free to close the issue. You are right in that it is an issue on my end.
I also met this problem today. I sent a easy message to codex, but it kept reconnect, and finally said "stream disconnected before completion: stream closedbefore response.completed"
I tried to turn off my VPN, and switching WIFI to my personal hotspot. The two ways didn't solve my problem. And finally, I checked the config file:C:\Users\admin.codex\config.toml, and I found that the base_url is not openai_base_url, it's other providers.
I suddenly remembered that I use CC-switch before, and I configured codex provider in CC-switch, it overlap config infomation of codex itself.
after I delete the configuration of cc-switch codex, my codex app can response correctly.
I put my solution here ,farion1231/cc-switch#1490 (comment)
Activity
github-actions commentedon Feb 2, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Feb 2, 2026
Please use the
/feedbackcommand to upload logs and session details and post the thread ID here.Are you using any non-default config.toml settings? Are you using an Azure endpoint, a corporate LLM proxy, or is this the default OpenAI endpoint?
StativBus commentedon Feb 2, 2026
Hi, thank you for the quick response! I am using all detault settings. I can't say this with 100% certainty, but I believe its the default OpenAI endpoint. The ID of an exemplary chat (it happens in all of them) is: 019c0ee3-1933-72b2-bdc6-c5d5f823460a
etraut-openai commentedon Feb 2, 2026
I looked at your logs. This appears to be a basic network connectivity issue. You'll need to debug on your end. Check for things like firewalls, network proxies (TLS handshakes), VPNs, or DNS issues. If you're on a corporate network, your IT team may be able to help.
StativBus commentedon Feb 4, 2026
Thank you for checking. Yes, you appear to be right. Even though we are not using a VPN, there appear to be some additional firewall settings or the like because the issue does NOT appear when in the office. Does this point to something specific that I could tell our IT or is this too little information to go off of. If so, feel free to close the issue. You are right in that it is an issue on my end.
etraut-openai commentedon Feb 4, 2026
You can tell your IT that https://chatgpt.com/backend-api/codex/responses is the endpoint that Codex needs to access.
Iris2762 commentedon Apr 16, 2026
I also met this problem today. I sent a easy message to codex, but it kept reconnect, and finally said "stream disconnected before completion: stream closedbefore response.completed"
I tried to turn off my VPN, and switching WIFI to my personal hotspot. The two ways didn't solve my problem. And finally, I checked the config file:C:\Users\admin.codex\config.toml, and I found that the base_url is not openai_base_url, it's other providers.
I suddenly remembered that I use CC-switch before, and I configured codex provider in CC-switch, it overlap config infomation of codex itself.
after I delete the configuration of cc-switch codex, my codex app can response correctly.

I put my solution here ,farion1231/cc-switch#1490 (comment)
LukasWillin commentedon Jul 21, 2026
I seemed to be able to mostly "fix" / work around this issue by following this link (https://learn.chatgpt.com/docs/config-file/config-advanced#azure-provider-and-per-provider-tuning) and setting:
I don't know however if this works outside the Azure AI Foundry provider.