Skip to content

Codex VS Code extension frequently disconnects with stream disconnected before completion #35574

Closed

Description

@gziety

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?

  1. Open VS Code with the official OpenAI Codex extension installed.
  2. Open any project.
  3. Send a coding request to Codex.
  4. Wait for the response to start streaming.
  5. 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

Activity

  1. added
    extensionIssues related to the VS Code extension
    on Jul 27, 2026
  2. added
    bugSomething isn't working
    connectivityIssues involving networking or endpoint connectivity problems (disconnections)
    on Jul 27, 2026
  3. github-actions commented on Jul 27, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. gziety commented on Jul 27, 2026

    @gziety
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)extensionIssues related to the VS Code extension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions