Codex Desktop repeatedly disconnects when analyzing images; still reproducible after #32394
What version of the Codex App are you using (From “About Codex” dialog)?
Exact version not available at the time of filing. I am using the current Codex Desktop app available on July 14, 2026. I can provide the exact build number if needed.
What subscription do you have?
ChatGPT Plus
What platform is your computer?
macOS
What issue are you seeing?
During this week, Codex Desktop has repeatedly become unstable when a task involves images. Text-only tasks are comparatively more reliable, but when Codex needs to inspect or analyze an image, the session often enters a reconnect loop and eventually fails with:
stream disconnected before completion: websocket closed by server before response.completed
The behavior appears specifically correlated with image-related tasks rather than normal text-only prompts.
A very similar report was filed in #32394 and later closed after the original reporter suspected a local network issue. However, I am seeing the same behavior independently, and another user also reported continued reproduction after that issue was closed. This suggests the problem may not be limited to one user's network environment.
What steps can reproduce the bug?
- Open Codex Desktop on macOS.
- Start a new or existing conversation.
- Attach an image, or ask Codex to inspect an image used by the project.
- Ask Codex to analyze the image or use it as a visual reference.
- Wait for the task to run.
- Codex frequently enters repeated
Reconnecting...states and may terminate with the WebSocket error above.
What is the expected behavior?
Codex should analyze the image and finish the task normally. If a transient network interruption occurs, the client should recover without leaving the current response or conversation unusable.
Additional information
- Date observed: week of July 13–14, 2026.
- The issue has occurred repeatedly rather than as a one-time failure.
- Related reports:
- #32394 — image analysis causing a reconnect loop in Codex Desktop
- #32868 — WebSocket disconnect after viewing images in a Codex CLI turn
- #33018 — unusually slow image-input turns in Codex Desktop on macOS
Please investigate whether image inputs are increasing the likelihood of server-side WebSocket termination or causing the client to fail to recover before response.completed.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗