Skip to content

Codex desktop stream disconnects repeatedly on macOS #52294

Open

Description

@Richardmageai

Bug

On October 8, 2026, Codex desktop on macOS repeatedly disconnected mid-response. Long-running threads often fail; restarting Codex and creating new chats only helps briefly. This interrupted development work for multiple hours.

Errors

  • stream disconnected before completion: error sending request
  • websocket closed by server before response.completed
  • Error running remote compact task: stream disconnected before completion: error sending request

Steps

  1. Use a long-running Codex conversation and send a prompt.
  2. Streaming begins, retries several times, and fails.
  3. Restart app or create another conversation. Failures recur.

Expected

Streams finish successfully, with automatic recovery from transient disconnects.

Diagnostics

App bundles codex-cli 0.162.0-alpha.2. Connection establishment succeeds but WebSocket connections are subsequently closed before completion; several retries were spaced roughly 80 seconds apart. The issue also recurred after successful automatic compaction. The available logs do not establish a root cause. Please investigate repeated streaming disconnects and retry behavior.

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    connectivityIssues involving networking or endpoint connectivity problems (disconnections)
    on Oct 8, 2026
  2. chaojian-zhang commented on Oct 13, 2026

    @chaojian-zhang

    Seriously can someone take care of this? It seemed to fail on some sessions but not others and makes Codex CLI impossible to use at all.

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 workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions