Skip to content

Codex desktop: unstable websocket reconnection after restart when resuming existing sessions #19703

Open

Description

@GGBondBlueWhale

Summary

After quitting/restarting the Codex desktop app and reopening it, continuing an existing/older session often becomes unstable. The task stream repeatedly reconnects and may disconnect before completion, which makes the session unreliable and seriously affects normal use.

Environment

  • Product: Codex desktop app
  • Version: 26.422.30944 (2080)
  • Platform: macOS desktop app

Steps to reproduce

  1. Use a Codex session normally.
  2. Quit/restart Codex, or close the app and open it again.
  3. Reopen an existing/old session.
  4. Start or continue a task in that session.

Actual behavior

The session connection becomes unstable and repeatedly attempts to reconnect. The UI shows reconnect attempts such as:

Reconnecting... 2/5
Reconnecting... 3/5
Reconnecting... 4/5
stream disconnected before completion: websocket closed by server before response.completed
Reconnecting... 5/5
stream disconnected before completion: websocket closed by server before response.completed

After this happens, the session may keep thinking/reconnecting instead of completing the response normally.

Expected behavior

After restarting or reopening Codex, existing sessions should resume normally and the websocket/stream should remain stable until the task completes.

Impact

This happens specifically after restarting/quitting and reopening Codex, then continuing old sessions. It severely interrupts coding workflows because long-running or active sessions become unreliable after reopening the app.

Additional context

I have screenshots showing the repeated reconnect attempts / websocket error and the Codex version dialog. I can provide them if needed.

Image Image

Activity

  1. added
    bug
    app
    connectivity
    session
    on Apr 26, 2026
  2. etraut-openai commented on Apr 26, 2026

    @etraut-openai
    Contributor

    Please use /feedback to upload logs and session details, then post the thread ID here.

  3. removed
    app
    on Apr 26, 2026
  4. GGBondBlueWhale commented on Apr 26, 2026

    @GGBondBlueWhale
    Author

    @etraut-openai I submitted /feedback from the affected resumed Codex desktop session with current session logs included.

    Thread ID: 019dbc09-f348-7ca0-90b1-c1c9083ed223

    This feedback was captured from the session affected by the reconnect loop after quitting/restarting Codex and then resuming an existing/old session. The session repeatedly showed reconnect attempts and the error:

    stream disconnected before completion: websocket closed by server before response.completed
    
  5. sdraeger commented on Apr 26, 2026

    @sdraeger

    I'm getting the same error. Thread ID: 019dc7d7-8f15-7733-84ec-441defa46f85.

  6. evan2306 commented on Apr 28, 2026

    @evan2306

    me too ...

    019dd393-8b26-77a3-b9fb-65c8109c1e91

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

    bugconnectivitysession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions