Skip to content

VS Code extension: infinite reconnect loop + "stream disconnected before completion" #17199

Closed

Description

@ashtonx24

What version of the IDE extension are you using?

26.5406.31014 (pre-release); also reproduced on 26.406.31014 (stable)

What subscription do you have?

ChatGPT Go

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What issue are you seeing?

The VS Code Codex extension repeatedly enters a reconnect loop and fails to complete responses.

Symptoms:

  • "Reconnecting... 1/5 → 5/5" loops continuously
  • Eventually fails with:
    "stream disconnected before completion"
  • Response begins but disconnects mid-stream
  • Retry loop does not recover

Key observation:

  • This also happens in completely fresh chats / sessions
  • So it does NOT appear to be related to large context size or long threads

What I already tried:

  • Fresh chat/session
  • Forked chat
  • Switched between stable and pre-release extension versions
  • Issue still persists

Versions tested:

  • Pre-release: 26.5406.31014
  • Stable: 26.406.31014

Example request ID from one failure:
fd0ab001-6841-4796-8cf8-5fc3d99a8789

What steps can reproduce the bug?

  1. Open Codex in VS Code
  2. Start a session or open a chat
  3. Send a prompt
  4. Response begins streaming normally
  5. Mid-response, the stream disconnects
  6. Extension enters reconnect loop:
    • "Reconnecting... 1/5" through "5/5"
  7. Retry loop fails and response does not complete

Also reproduced in:

  • Completely fresh chats
  • Both stable and pre-release extension versions

What is the expected behavior?

Codex responses should stream normally and complete without entering repeated reconnect attempts.

If a temporary connection interruption happens, the extension should either:

  • recover cleanly and continue the response, or
  • fail once with a clear error

It should not get stuck in a reconnect loop where the response never completes.

Additional information

This was initially suspected to be caused by a very large long-running chat, but the same behavior was reproduced in a completely fresh chat/session.

That seems to rule out context size or my i3-5005U as a low power chip as the root cause.

This issue appears more likely to be related to streaming / reconnect handling in the VS Code extension or backend connection path.

Activity

  1. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    on Apr 9, 2026
  2. ashtonx24 commented on Apr 9, 2026

    @ashtonx24
    Author

    Additional environment info:

    • VS Code Version: 1.114.0
    • Commit: e7fb5e96c0730b9deb70b33781f98e2f35975036
    • Electron: 39.8.3
    • Chromium: 142.0.7444.265
    • Node: 22.22.1
    • V8: 14.2.231.22-electron.0
    • OS: Windows x64 10.0.19045
  3. JenuelDev commented on Apr 9, 2026

    @JenuelDev

    I am also having this multiple times today.. my internet is good. So I think their is something wrong with the process.

  4. added
    agentIssues related to the core agent loop
    and removed
    extensionIssues related to the VS Code extension
    on Apr 9, 2026
  5. ashtonx24 commented on Apr 11, 2026

    @ashtonx24
    Author

    Update:

    The issue appears to have resolved on its own without any local changes.

    • The reconnect loop is no longer occurring
    • Responses are streaming and completing normally again

    This suggests the problem may have been related to a backend or extension-side update rather than local environment or configuration.

    Will monitor for recurrence and update if it happens again.

  6. added
    connectivityIssues involving networking or endpoint connectivity problems (disconnections)
    and removed
    agentIssues related to the core agent loop
    on Apr 11, 2026
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)windows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions