Codex VS Code extension frequently disconnects with stream disconnected before completion
What version of the IDE extension are you using?
Latest version (updated on 2026-07-27)
What subscription do you have?
Plus
Which IDE are you using?
VS Code
What platform is your computer?
Darwin 24.6.0 arm64 arm
What issue are you seeing?
Since today, Codex has become unreliable in VS Code.
Many requests fail with:
stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
The extension repeatedly displays "Reconnecting" and often retries several times before eventually failing with "request timed out".
The issue started today. According to the OpenAI Status page, there are ongoing issues affecting ChatGPT conversations, so this may be related.
Expected behavior:
- Requests complete normally without disconnecting.
- No repeated reconnect attempts.
- Stable connection while using the VS Code extension.
Actual behavior:
- Frequent disconnects.
- Reconnecting loop.
- Request timeouts.
- Coding sessions are interrupted.
What steps can reproduce the bug?
- Open VS Code with the official OpenAI Codex extension installed.
- Open any project.
- Send a coding request to Codex.
- Wait for the response to start streaming.
- After a short time, the stream disconnects and the request fails.
The error shown is:
stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
The extension then displays "Reconnecting" multiple times and eventually reports "request timed out".
This started today and occurs repeatedly across different prompts and projects.
What is the expected behavior?
Codex should maintain a stable connection and complete the response without disconnecting.
Requests should stream normally, without entering a reconnect loop or timing out.
Additional information
_No response_
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This appears to be different from #35420.
My issue occurs on macOS, with a local project (no OneDrive or cloud-backed workspace), using the latest VS Code extension. It started today and coincides with the current ChatGPT service incident.