Frequent reconnect loop in Codex App: websocket closed by server before response.completed
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/5Reconnecting... 3/5Reconnecting... 4/5Reconnecting... 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:
- Use the Codex App normally for some time
- Send a prompt that produces a streamed response
- During streaming, the connection drops unexpectedly
- The app shows repeated reconnect attempts
- 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
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #17199
- #17202
- #17201
- #18952
Powered by Codex Action
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.
加一
最近两天特别严重,UTC+8 的 14:00~18:00
+1
suspect it is due to system updates to the expected launch of 5.5 later today, servers are flaky
same problem, thread ID thread ID 019dba73-6770-7d90-aac3-6941581fc48b sent feedback twice Codex is becoming unusable for me
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.
- VS Code extension: infinite reconnect loop + "stream disconnected before completion" #17199 is about the VS Code extension on Windows
- Im run into this issue, were its trying to reconnect #17201 is the closest, but it is a Codex App report on Windows and is much less specific
- Stream disconnected before completion: An error occurred while processing your request. #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.
it seems that it doesn't really depend on the usage method or the OS.
Really hope someone looks into this wtf...
same problem, Y ?
and will lose the before threads if i switch to http only mode.....hope can provide a better way as the fallback
the issue broke my weekend, so bad experience. why before is good?
facing same issues today, is this due to network issues from ourside or codex/openai side?
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.
Continuously facing. More than 97% usage still remaining. This is really annoying. Wasted my whole weekend. I am on windows btw.
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.
+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..
+1, seeing the same using Codex SDK while using https://agor.live/
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
The same $200 subscription, very often