codex icon indicating copy to clipboard operation
codex copied to clipboard

Frequent reconnect loop in Codex App: websocket closed by server before response.completed

Open GGBondBlueWhale opened this issue 7 months ago • 63 comments

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

26.417.41555 (1858)

What subscription do you have?

Pro

What platform is your computer?

macOS

What issue are you seeing?

Over the past few hours, I have repeatedly hit a streaming failure in the Codex App during normal use.

While a response is streaming, the app starts reconnecting multiple times and then fails with:

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

The reconnect sequence I saw included:

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

This has happened many times within a few hours and makes the app feel noticeably slow and unreliable.

What steps can reproduce the bug?

I do not have a fully deterministic repro yet, but this is the pattern I have observed:

  1. Use the Codex App normally for some time
  2. Send a prompt that produces a streamed response
  3. During streaming, the connection drops unexpectedly
  4. The app shows repeated reconnect attempts
  5. The turn fails before response.completed

This happened multiple times over the last few hours during normal usage.

What is the expected behavior?

The stream should stay connected until the response is fully completed, or the app should recover transparently without losing the response.

Additional information

  • The failure appears intermittent, but frequent enough to significantly interrupt normal workflow
  • When it happens, I often have to retry or regenerate
  • I have a screenshot showing the reconnect loop and exact error text if needed
  • I also encountered the Reconnecting... problem multiple times within the same task, not just across separate tasks
  • Based on when I started noticing it, this appears to have been happening since around 1–2 AM US Eastern Time
  • I am reasonably confident this was not caused by my local network, because my internet connection remained stable and usable throughout the same period
  • During this same window, Codex also felt unusually slow overall, even when using GPT-5.4 in fast mode
Image Image

GGBondBlueWhale avatar Apr 22 '26 08:04 GGBondBlueWhale

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #17199
  • #17202
  • #17201
  • #18952

Powered by Codex Action

github-actions[bot] avatar Apr 22 '26 08:04 github-actions[bot]

I reviewed the duplicates suggested by the bot. They look related, but not like exact duplicates of this report.

  • #17199 is about the VS Code extension on Windows
  • #17201 is the closest, but it is a Codex App report on Windows and is much less specific
  • #17202 is a broader stream-disconnect report spanning App and CLI

I’m keeping this issue open because this report is specifically about the Codex App on macOS, repeated reconnects within the same task, a stable local internet connection during the failures, and unusually slow overall responses during the same time window even when using GPT-5.4 fast mode.

GGBondBlueWhale avatar Apr 22 '26 08:04 GGBondBlueWhale

加一

BtcCrush avatar Apr 22 '26 11:04 BtcCrush

最近两天特别严重,UTC+8 的 14:00~18:00

zkw13 avatar Apr 23 '26 07:04 zkw13

+1

CaesarC avatar Apr 23 '26 07:04 CaesarC

suspect it is due to system updates to the expected launch of 5.5 later today, servers are flaky

shanelindsay avatar Apr 23 '26 08:04 shanelindsay

same problem, thread ID thread ID 019dba73-6770-7d90-aac3-6941581fc48b sent feedback twice Codex is becoming unusable for me

Image

optimusprime123x avatar Apr 23 '26 13:04 optimusprime123x

having the same issue for more than a week now. can't use codex at all now, so I switched to other providers.

was trying it with both codex app and cli on macos — the result is the same. so, just adding to that:

I reviewed the duplicates suggested by the bot. They look related, but not like exact duplicates of this report.

I’m keeping this issue open because this report is specifically about the Codex App on macOS, repeated reconnects within the same task, a stable local internet connection during the failures, and unusually slow overall responses during the same time window even when using GPT-5.4 fast mode.

it seems that it doesn't really depend on the usage method or the OS.

kuzkokov avatar Apr 23 '26 13:04 kuzkokov

Really hope someone looks into this wtf...

optimusprime123x avatar Apr 23 '26 14:04 optimusprime123x

same problem, Y ?

lbqdly avatar Apr 24 '26 07:04 lbqdly

and will lose the before threads if i switch to http only mode.....hope can provide a better way as the fallback

kukudeshiyi avatar Apr 26 '26 02:04 kukudeshiyi

the issue broke my weekend, so bad experience. why before is good?

kukudeshiyi avatar Apr 26 '26 08:04 kukudeshiyi

facing same issues today, is this due to network issues from ourside or codex/openai side?

mahesha-quattr avatar Apr 27 '26 12:04 mahesha-quattr

Had the most complicated week trying to navigate my way around this problem - and especially the weekend. Working on multiple big projects with codex and couldn't really move forward with them because of the connectivity problems. The issues continue today. Hope it gets sorted out soon. I have a pro subscription specifically for this service.

ragno7 avatar Apr 27 '26 16:04 ragno7

Continuously facing. More than 97% usage still remaining. This is really annoying. Wasted my whole weekend. I am on windows btw.

Image

manojLuffy avatar May 03 '26 18:05 manojLuffy

Also getting this since GPT 5.5 has been introduced. I haven't used much from my ratelimits but still very annoying. I'm on mac.

leo-pe2 avatar May 03 '26 19:05 leo-pe2

+1. is anyone from the codex team even following this thread? This has been going on for a while! Very frustrating. Will need to drop the app and start using Claude code or just use vscode..

wang-sanity avatar May 05 '26 20:05 wang-sanity

+1, seeing the same using Codex SDK while using https://agor.live/

mistercrunch avatar May 09 '26 17:05 mistercrunch

seeing the same, especially as thread grows over an hour or so, i suspect that Codex generating images or viewing images contributes to this

only solution is creating a new thread

zippoxer avatar May 10 '26 22:05 zippoxer

The same $200 subscription, very often

Forux avatar May 10 '26 22:05 Forux