Skip to content

Stream disconnected error. Possibly related to auto-compaction. #48685

Open

Description

@razdyn

What version of the Codex App are you using (From “About Codex” dialog)?

26.917.62051

What subscription do you have?

Pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

I frequently get error stream disconnected before completion: websocket closed by server before response.completed whenever I walk away from my computer while the agent processes a large task. The issue happened twice yesterday and the result was 20% of my 7d usage gone and no work accomplished.

The issue seems to happen when the context gets automatically compacted. When I return to my computer I see Context automatically compacted message, then Reconnecting 5/5, and then stream disconnected... error.

Note: This may be related to the agent using the Computer Use skill to test it's work.

When this happens the session is toast. Any message I send to the agent results in Context automatically compacted message, then Reconnecting #/5, then at reconnect 5/5 I get the stream error.

What steps can reproduce the bug?

Agent is working on a game mod. I set the agent to work on a fairly large task that requires the agent to use Blender to generate 3d models, and the Computer Use skill to test it's work natively in-game. I walk away from computer while agent is processing the task.

Sessions:

  • 01a0dff6-fde6-7b83-860b-3cd455ae47b4
    • Context 8% left (237,941 used / 258K)
  • 01a0df13-01f5-71a3-8814-4db8efb7670f
    • Context: 7% left (241,296 used / 258K)
  • 01a0e45d-9440-7603-85c6-95427bb39707
    • Context: % left (243,735 used / 258K)

What is the expected behavior?

I expect the agent to complete the assigned task.

Additional information

  • Processor: 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz (3.91 GHz)

  • Installed RAM: 64.0 GB (63.9 GB usable)

  • Graphics card: NVIDIA GeForce RTX 3090 (24 GB)

  • Storage: 575 GB of 1.82 TB used

  • System type: 64-bit operating system, x64-based processor

  • Windows Edition: Windows 11 Pro

  • Version: 25H2

  • OS build: 26200.9457

  • Experience: Windows Feature Experience Pack 1000.26100.360.0

  • Power settings

    • Turn off display: 1 hour
    • Sleep: 5 hours
Image

Activity

  1. added
    appIssues related to the Codex desktop app
    on Sep 27, 2026
  2. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    contextIssues related to context management (including compaction)
    connectivityIssues involving networking or endpoint connectivity problems (disconnections)
    on Sep 27, 2026
  3. changed the title [-]Auto-compaction results in stream disconnected error[/-] [+]Stream disconnected error. Possibly related to auto-compaction.[/+] on Sep 27, 2026
  4. razdyn commented on Oct 6, 2026

    @razdyn
    Author

    Another example of the issue.

    • 01a10e68-229a-72b3-b5e7-be865897a1c1
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

    appIssues related to the Codex desktop appbugSomething isn't workingcomputer-useconnectivityIssues involving networking or endpoint connectivity problems (disconnections)contextIssues related to context management (including compaction)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