Repository navigation
Description
Summary
A local Codex work conversation repeatedly fails with stream disconnected before completion: tls handshake eof and does not produce an assistant answer. Forking the conversation, retrying, switching models, and fully quitting/reopening the desktop app have not resolved the user-visible problem. Another conversation continues to work in the same desktop app.
Please investigate per-thread transport/recovery behavior and remote compaction failure. This report does not establish whether the initiating failure is in the client, a proxy/network path, or the backend.
Environment
- Desktop bundle:
com.openai.codex, currently displayed as ChatGPT. - Desktop version: 26.1016.51333, build 21161.
- Bundled CLI: 0.163.0-alpha.11.
- macOS 27.0.1, Apple Silicon arm64.
- Local execution; ChatGPT authentication; OpenAI provider.
- Affected original thread used
gpt-6-sol/ medium; the fork usedgpt-6.1-sol/ high. The working comparison conversation also usedgpt-6.1-sol/ high. - A Loon tunnel was running. OpenVPN-related processes were also present, but an active OpenVPN tunnel was not verified. No controlled proxy/network A/B test was performed.
Observed reproduction
- Continue an existing local project conversation.
- A turn repeatedly reconnects/fails before an assistant reply appears.
- Stop/retry the turn; fork the conversation and try again.
- The fork has the same problem. A remote compaction attempt also fails.
- The user reports that fully quitting/reopening the app does not resolve it.
- In parallel, another conversation in the same app can answer and run tools.
These are observations from a private project workflow, not a validated minimal synthetic reproducer. The affected prior workflow included document rendering and viewing page images; retained image bytes/request size were not measured in this investigation.
Reviewed diagnostic evidence
Times below are 2026-10-23 UTC (add 8 hours for Asia/Shanghai). Error strings are selected excerpts; private paths, conversation/turn IDs, and business content are omitted.
- 07:24:03, original thread:
failed to connect to websocket: IO error: tls handshake eof
Endpoint:wss://chatgpt.com/backend-api/codex/responses. - The original thread also logs repeated sampling retries with:
stream disconnected before completion: IO error: Broken pipe (os error 32). - 07:27:01, original thread:
falling back to HTTP; subsequent request sending still fails. - 07:34:43, fork: a normal turn logs a sampling retry after
Broken pipe (os error 32). - 07:36:04 and 07:36:38, fork:
remote compaction v2 stream failed; retrying request after delay,
withBroken pipe (os error 32). - 07:36:39, fork: WebSocket TLS handshake EOF, followed by
falling back to HTTP. - The working conversation logs
transport="responses_websocket"andauth_connection_reused="true". - The failing fork logs
auth_connection_reused="false"for failed WebSocket attempts, thentransport="responses_http". - Both conversations' reviewed log entries have the same process UUID. This comparison establishes different connection outcomes, not the cause.
- An independent unauthenticated HTTPS sample to
https://chatgpt.com/had three completed TLS handshakes and one curl exit 35 /SSL_ERROR_SYSCALLacross four fresh connections. Completed requests returned HTTP 403. This is evidence of an intermittent transport symptom, not a successful authenticated inference probe or proof that the user's proxy caused the thread failures.
Expected behavior
A transient connection failure should recover or end with an actionable error. Ordinary turns and remote compaction should not leave one conversation and its forks unusable while another conversation keeps working. A supported recovery action should preserve project work and useful conversation context.
Already tried
- Stop/retry: did not resolve the observed problem.
- Fork: same failure in the fork.
- Different model: transport failures recorded with both models above.
- Fully quit/reopen desktop: user reports no improvement.
Related reports
Potentially related: #52456 (per-thread reconnects and remote compaction failures after document-image workflows) and #38969 (macOS remote compaction failure). The retained-image hypothesis in #52456 has not been established for this case. Please consolidate if appropriate.
Privacy
No raw transcripts, documents, image pixels, credentials, account identifiers, local usernames/project paths, or thread/turn IDs are attached. This report includes only reviewed error excerpts, product/environment versions, and structural connection observations.
Activity
github-actions commentedon Oct 23, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action