Repeated reconnect loops on home network make Codex unreliable and sometimes unusable

Open 💬 2 comments Opened Jun 4, 2026 by GGBondBlueWhale

Codex app version

Desktop Codex: 26.601.21317 — released Jun 2, 2026

Platform

  • macOS Tahoe 26.5.1
  • Apple Silicon MacBook Pro
  • Pro plan
  • Network: home network

Related feedback ID

019e8c77-2617-7b23-b61f-18bfe6b565e1

Summary

Codex Desktop repeatedly enters reconnect loops on my home network, making the app unreliable and sometimes impossible to use normally.

This does not happen as a single isolated failure. The problem has happened repeatedly: sometimes Codex works normally, but at other times it repeatedly disconnects and reconnects during an active task.

Observed behavior

During a task, Codex can show repeated reconnect attempts such as:

Reconnecting... 2/5
Reconnecting... 3/5
Reconnecting... 4/5
Reconnecting... 5/5

<img width="2496" height="660" alt="Image" src="https://github.com/user-attachments/assets/e0414372-8f0a-4297-b5ae-6235efc0cf70" />

One visible error was:

stream disconnected before completion: websocket closed by server before response.completed

After this happens, the task becomes unstable. The session may keep trying to reconnect instead of continuing smoothly, and normal work is interrupted.

Expected behavior

Codex should handle temporary network instability more robustly, especially on ordinary home networks. If a websocket or stream disconnect happens, Codex should be able to recover cleanly without repeatedly entering a reconnect loop.

At minimum, Codex should:

  • resume the task reliably after reconnecting,
  • avoid repeated reconnect loops,
  • preserve task state during reconnects,
  • provide a clearer error message when reconnect recovery fails,
  • offer a manual retry/resume option if automatic reconnect cannot recover.

Actual behavior

Codex repeatedly reconnects and may fail to continue the task normally. The user is left waiting while the app cycles through reconnect attempts, and the task becomes unreliable.

Why this matters

This is a serious reliability issue. Codex tasks are often long-running and expensive in time/tokens. If the app repeatedly reconnects on a normal home network, users cannot trust Codex to complete work reliably.

It is especially disruptive because the issue is intermittent: sometimes the same environment works normally, and sometimes Codex repeatedly reconnects. That makes the problem hard for the user to predict or avoid.

Request

Please investigate Codex Desktop's websocket/stream reconnect behavior on unstable or ordinary home-network conditions. Reconnect handling should be more resilient, and task execution should not become unusable when a temporary disconnect occurs.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗