Repository navigation
Description
Environment: ChatGPT desktop 26.928.31416 (build 12553), macOS
Subscription: ChatGPT Pro
Opening a Dot-created task in desktop fails with:
Failed to resume chat
Codex app-server is not available
The same task opens successfully in ChatGPT web.
Reproduction
- Use a network where direct access to
codex-cloud-backend.chatgpt.comtimes out but an approved proxy works. - Configure system/app proxy settings, including
HTTPS_PROXYandNODE_USE_ENV_PROXY=1. - Open a Dot-created task in desktop.
Logs repeatedly show hostKind=durable, failureReason=open_timeout, and WebSocket close code 1006.
Findings
Installed-code inspection suggests the bundled WebSocket library supplies a custom createConnection without a proxy agent, bypassing Node’s environment-aware default agent. A standalone reproduction timed out with that configuration and received a response after adding an explicit proxy-aware agent.
The proxy independently passed full WSS handshake and message-echo tests over both HTTP CONNECT and SOCKS5. An authenticated desktop fix has not yet been tested.
Space Pages
The same Page opens on the web, but desktop ends with “Could not connect to ChatGPT”. The desktop pagesRealtime path uses the same WebSocket library without an explicit proxy agent. The same bypass is suspected; the failing request is not yet confirmed. Please test Space Pages too—a Dot-only fix may leave this broken.
Expected behavior / possible fixes
- Honor configured proxies for the durable WebSocket transport.
- Consider also honoring
CODEX_APP_SERVER_WS_URLon this path. It currently bypasses that override; supporting it could enable an application-scoped relay workaround.
This matters in FDE/client environments requiring approved proxy access without additional system-wide traffic interception.
Activity
github-actions commentedon Oct 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
xc1427 commentedon Oct 1, 2026
Related, but this report pinpoints a proxy bypass in the desktop WebSocket path, supported by a standalone reproduction. The same error message doesn’t establish the same cause. Please keep this open unless that mechanism is confirmed in an existing issue.
anye2627 commentedon Oct 1, 2026
Also reproduced on Windows 11 Pro 25H2, desktop app version 26.928.20755 (from installed package metadata).
Dot repeatedly displays “Failed to restore conversation / Codex app-server is not available”, while local Codex tasks continue working.
Read-only observations:
ChatGPT.exe) makes direct TCP connection attempts correlated with the durable WebSocket retries tocodex-cloud-backend.chatgpt.com. They remain inSYN_SENT, followed by approximately 15-secondopen_timeoutfailures and close code1006.codex.exe app-serveralso uses the proxy normally.HTTP_PROXY,HTTPS_PROXY, andALL_PROXYvalues;NO_PROXYdoes not match the destination. Missing environment inheritance does not explain this case.wswithout an explicit proxy agent, whereas the corresponding cloud HTTP path uses Electronnet.fetch.This supports a desktop WebSocket proxy-integration issue. It does not establish the exact runtime configuration-read sequence, and an authenticated WebSocket fix has not been tested.
Expected: the durable WebSocket should consistently honor the configured proxy, like the working HTTP path, with a clear error if proxy connection fails.
lcxhh521 commentedon Oct 1, 2026
Root cause: this connection does not use Electron's network stack at all. Every other request in the app goes through Chromium's network stack: renderer requests, the main process's
net.fetch, and even the durable host's own HTTP reads. That stack applies the system proxy, PAC and the app's proxy configuration, and lets the proxy resolve hostnames. The durable WebSocket is instead opened with the Nodewspackage on a plain Node TLS socket in the main process. It resolves the hostname itself through the OS resolver and opens its own direct TCP connection, so none of those proxy settings apply. Opening this socket through Electron's networking, or at least resolving the proxy withsession.resolveProxyand passing a matching agent, would bring it in line with the rest of the app.Same issue here on macOS 26.5.1, ChatGPT desktop 26.928.31416 (build 12553), with an HTTP/HTTPS/SOCKS system proxy. Chromium-side traffic in the app works through the proxy; only the durable WebSocket fails (
hostKind=durable,failureReason=open_timeout, close code1006, retrying every ~35 s, 600+ attempts a day).Additional findings from the installed bundle and the network:
socks5h://127.0.0.1:1080) is attached only when the WebSocket hostname ends with.internal.api.openai.org; forcodex-cloud-backend.chatgpt.comno agent is attached at all. SoHTTPS_PROXY,NODE_USE_ENV_PROXY, the system proxy and Chromium's proxy configuration are never consulted on this path, which matches thecreateConnectionbypass described above.CODEX_APP_SERVER_WS_URLis also skipped for the durable host (only non-durable hosts read it).net.fetch. Only the WebSocket half fails.codex-cloud-backend.chatgpt.com. A direct TCP connection to the real address connects, but the TLS handshake is reset. Through the proxy, TLS completes and the server answers. So honoring the configured proxy is the whole fix.fj974279207-tech commentedon Oct 3, 2026
Additional macOS evidence: system-proxy WSS routing, cancellable Agent prototype, and native-list comparison
Environment
Observed behavior
Dot durable AppServer connections repeatedly fail before initialization with
open_timeoutandinitialized=false. An earlier controlled list request failed immediately after callerthread/readreportedremote_unavailable; the app tool returned-32000with no list result. The timestamps are closely correlated, but there is no complete end-to-end request correlation ID.The ordinary desktop HTTP/history path has successful HTTP responses. On 2026-10-03 around 11:10 UTC, a native Codex conversation successfully called
list_projectsandlist_threads(limit:1), while the same desktop logs continued recording durableopen_timeoutandinitialized=false. This does not prove every HTTP chat or cloud source works, and does not constitute a successful Dot-origin tool call.Read-only inspection suggests the public durable WSS branch uses Node
wswithout an explicit proxy Agent, while ordinary desktop HTTP uses Electron networking. This is a candidate transport mismatch, not proof of the final wire route or a complete causal explanation. Transparent routing and authenticated server behavior remain unverified.Independent reproduction evidence
A fresh official Electron 44.5.1 runtime (Chromium 152.0.7977.130, Node 24.21.0), with a separate profile and no login data, resolves the existing native system policy as follows:
wss://codex-cloud-backend.chatgpt.com/→ SOCKS5 loopback proxy.A URL-sensitive PAC configured only in an isolated in-memory test session preserves the WSS branch and ordered SOCKS5/PROXY/DIRECT candidates. It therefore appears important to resolve the original WSS URL, rather than substitute an HTTPS URL. This runtime differs from the installed app; installed-runtime behavior needs confirmation.
An explicit Agent following the resolved SOCKS5 route completed remote-name proxy negotiation and target TLS, then received HTTP 403 for an anonymous WebSocket upgrade. It did not reach WebSocket open or initialization, and sent no protocol/tool messages. The 403 establishes transport reachability only; its service-side reason was not verified.
The independent transport prototype passes 37 local automated tests covering HTTP CONNECT, SOCKS5 remote DNS, HTTPS proxy, ordered fallback, explicit DIRECT, authentication rejection, independent proxy/target TLS trust, hostname/IP validation, stage/total deadlines, cancellation cleanup, graceful close, early protocol-listener registration, and safe diagnostics. No production client acceptance is claimed.
Requested clarification or fix
Acceptance requires a real Dot-origin connection reaching
openandinitialized, successful caller thread/read, and successful native thread/project lists with source, archive, and pagination scope identified. Ordinary chatting and task dispatch must still work; anonymous 403 or native Codex list success is insufficient.Scope of the reported feature workaround
The installed desktop-managed CLI 0.160.0 recognizes
respect_system_proxyas under development and currently disabled. However, no reference to that flag was found in the inspected desktop JavaScript bundle, and the current public Rustcodex-http-clientdocumentation describes it as a policy for the Rust HTTP transport. The Windows reports on #49626 verified local-computer access recovery; they did not establish that this separate Electron/Node durable connection was restored. We have not persisted the feature or restarted the desktop app, and do not claim it cannot help indirectly. Please confirm its actual scope for this connection.Available sanitized artifact
A small archive contains only independently authored prototype source, tests with fixed fake credentials, dependency lockfile, documentation, aggregate test/audit results, and a public-endpoint anonymous probe record. It excludes installed application code, real logs, system profile directories, certificates/private fixture keys, node_modules, and real authentication data. It has not been uploaded.
kkkzbh commentedon Oct 4, 2026
Additional Linux evidence: authenticated proxy connection succeeds; Outputs remains pending while the durable host is disconnected.
Environment
7.2.7-200.fc44.x86_64.chatgpt-26.928.20755-1.x86_64(package metadata; About dialog version was not independently collected).Observed behavior and reproduction
In this network environment, open the Dot conversation or its Outputs panel with the existing proxy enabled. The desktop repeatedly shows:
Outputs stays at the loading skeleton. The local stdio app-server remains alive and handles requests while the cloud durable connection retries.
Representative log fields below preserve timestamps and diagnostic values; identifiers and unrelated fields are omitted:
The resume request reports JSON-RPC
-32000,Codex app-server is not available.Independent authenticated connectivity test
A separate diagnostic client connected to
wss://codex-cloud-backend.chatgpt.com/through the existing HTTP proxy, using the current account's desktop handshake authentication:initializesucceeded.No thread was resumed, no turn was started, and no message was sent by this diagnostic client. Authentication values are excluded from this comment.
A direct HTTPS connection attempt to the same hostname timed out before TCP connection within the 8-second probe window. Local DNS also returned addresses inconsistent with a proxied DNS-over-HTTPS lookup. These observations describe this environment; successful authenticated proxy initialization provides stronger evidence than an anonymous HTTP/403 probe.
Installed-code observations
The original RPM and active build both select a dedicated SOCKS proxy for durable WebSocket hostnames ending in
.internal.api.openai.org, and select no proxy agent for the publiccodex-cloud-backend.chatgpt.comendpoint. The inspected public durable path does not consult the system proxy or proxy environment variables. Its Nodewstransport attaches aSocksProxyAgentonly when a proxy URL is supplied.The Outputs query (
aeon-output-threads) is enabled only when the selected host's connection state isconnected. Together with the observed pending/loading UI, this explains how durable connection failure can leave Outputs waiting without an actionable error.Expected behavior and limits
The public durable WebSocket should follow the effective user-configured proxy policy, preserving configured direct-access exceptions and TLS/authentication checks. Outputs should provide a useful connection error and recovery action when its required host cannot connect.
The authenticated test establishes that this account and endpoint work through the configured proxy. It does not demonstrate a repaired desktop connection or successful Outputs loading: the desktop transport was not patched or restarted during this investigation. A production fix still needs verification of desktop WebSocket initialization, chat resumption, and Outputs loading.
scosmiclia commentedon Oct 5, 2026
Additional macOS evidence on 26.930.41038 (build 13022): enabling TUN restored the real desktop durable connection and successful Dot-origin App tool calls, without restarting the app.
Environment
Observed failure
The desktop main process made direct TCP connection attempts correlated with durable retries to
wss://codex-cloud-backend.chatgpt.com/. The sockets remained inSYN_SENT, followed by approximately 15-secondopen_timeoutfailures. Chromium and the Rust app-server were observed using the configured local proxy during the same investigation.App tool calls from the affected Dot context failed with:
Calls to the same local App tools from a local Codex context succeeded. Installed-code inspection indicates that App tool preflight may first read the calling thread from its durable host; failure there can prevent the local operation from running. This is a source-level explanation, not a complete end-to-end request trace.
Bounded TUN comparison with the existing app session
The following times are UTC on 2026-10-04:
open_timeout.list_threads,get_usage_limits, andread_threadat about 16:17:29–31. Recorded execution durations were 1344 ms, 787 ms, and 436 ms respectively.read_threadreturned the expected local task result.SYN_SENTandopen_timeout. Local-context App tool calls still succeeded. Dot-origin calls were not repeated in this off interval.The main app, local app-server, and proxy-core process IDs remained unchanged. TUN was restored to off after testing. An intervening attempt overwritten by an automatic proxy configuration reload was excluded from this comparison.
Source observations and limits
Read-only inspection of this installed version matches the mechanism already reported here: the durable transport supplies a SOCKS proxy for internal hostnames, but supplies no proxy agent for the public cloud backend. Its bundled
wspath suppliescreateConnection, which is consistent with bypassing Node's default agent when no explicit agent is supplied.The TUN comparison demonstrates a working network-level workaround with real desktop tool execution. It does not test an explicit-agent patch, isolate routing from DNS effects, or establish long-term reliability. No application bundle was modified, no credentials were extracted for a separate client, and no TLS verification was disabled.
Please provide supported proxy handling for the public durable WebSocket, and an actionable transport error when caller-thread preflight prevents an App tool from running. A useful acceptance test is a real Dot-origin
list_threads/read_threadcall succeeding with an explicit proxy and TUN disabled.Related: #50412 reaches an HTTP 403 at the same durable endpoint; this case fails before the handshake, so I am not asserting that its cause is identical.
weijiayua11y commentedon Oct 5, 2026
Additional Windows evidence for the public durable WebSocket proxy problem.
Environment:
Symptom:
Dot repeatedly shows the equivalent of "Failed to restore conversation / Codex app-server is not available".
Relevant sanitized desktop log observations on 2026-10-05:
Read-only observations from the installed application bundle:
Bounded, unauthenticated connectivity check against the actual public durable hostname:
Limits:
Expected: the public durable WebSocket should honor the supported system/explicit proxy configuration consistently with the working HTTP path. Please expose a useful proxy/transport error instead of only "app-server is not available".
developerisnow commentedon Oct 5, 2026
lurenyi2025 commentedon Oct 7, 2026
I’m seeing similar durable connection failures on two Macs running ChatGPT 26.930.61225 (build 13232), bundled CLI 0.160.1.
Local Work access on the Mac mini was restored by enabling respect_system_proxy, but the Dot conversation still repeatedly fails to resume. The project-list tool also fails with MCP -32000. Logs show durable WebSocket ETIMEDOUT or open_timeout, close code 1006, initialized=false, and “Codex app-server is not available”.
On the Mac mini, neither TUN + system proxy nor TUN-only restored the durable connection. TUN-only temporarily interrupted Local Work; restoring the original settings restored local access. The laptop also reproduces the durable/project-list failures with TUN enabled. These are not identical network-configuration comparisons.
An explicit HTTP-proxy curl request reaches HTTPS but receives a Cloudflare 403 challenge; this does not establish WebSocket connectivity. We have not proven an identical root cause to this issue.
In-app feedback ID: no-active-thread-01a114bb-1842-7611-a995-118eb0138226
Is there a supported workaround or a fixed build? What additional sanitized diagnostics would help?
masonjian commentedon Oct 8, 2026
Additional macOS reproduction on ChatGPT desktop 26.1002.52244 (build 13536), observed October 8, 2026.
Environment
0.162.0-alpha.2.Symptom and sanitized logs
Dot repeatedly displays the equivalent of “Failed to restore conversation”, with the exact English detail:
At
2026-10-08T00:21:53.429Z(08:21 UTC+8), athread/resumerequest failed with JSON-RPC code-32000andfailureReason=remote_unavailable.The same desktop run repeatedly records:
Later attempts report
ECONNREFUSEDto an IP address returned by the local resolver. The recorded reconnect counter exceeded 1,400. Meanwhile, the local stdio app-server initialized successfully and accepted a localturn/startrequest while durable connection attempts were failing.Direct/proxy comparison
Two unauthenticated HTTPS HEAD probes targeted
https://codex-cloud-backend.chatgpt.com/, retaining normal TLS certificate verification:000.403returned.The 403 demonstrates transport reachability only. It does not establish a successful authenticated WebSocket handshake or app-server initialization, and the service-side reason for the 403 was not investigated.
Installed-code observation and limits
Read-only inspection of this installed build matches the mechanism reported above: the durable WebSocket branch selects an explicit SOCKS proxy for internal hostnames, but supplies no proxy agent for the public durable hostname. This is supporting implementation evidence; every possible OS/network interception layer was not traced.
No authenticated standalone WSS test, TUN comparison or application patch was performed. These observations do not isolate DNS from routing or establish that all reports with this toast have the same root cause.
Please provide supported proxy handling for the public durable WebSocket, including proxy-side DNS when appropriate, and an actionable recovery error instead of a recurring generic toast.
Private conversation/task identifiers, local paths, destination IP addresses, credentials and screenshots are omitted.
ZXCYFR commentedon Oct 8, 2026
补充一个 Linux 上的情况:我用 Ubuntu 24.04 + Clash Verge,CLI 在系统代理下正常,但桌面版需要开 TUN 才能聊天。
后来给桌面单独加了代理环境变量和
--proxy-server,关掉 TUN 后本地对话就能用了。配置放在这条回复里。不过 durable 连接还是会报
ETIMEDOUT/1006,所以这个办法只解决了我这边的本地对话,没解决这里的云端连接问题。菜单冷启动时的登录状态也还在观察。DKalien commentedon Oct 9, 2026
Additional Windows reproduction on October 9, 2026, with runtime TCP observations supporting the proxy-integration problem described here. Also related to #50561.
Environment
Observed failure
Dot repeatedly showed “Failed to restore conversation / Codex app-server is not available”. Between 19:01:14 and 20:00:48 UTC+8, the same cloud conversation produced 44
Failed to resume conversationentries.Representative sequence on 2026-10-09 (timestamps below are UTC):
The local stdio app-server remained alive as the same process from 18:20 UTC+8 and had initialized successfully; the inspected log contained no subsequent local connection-state transition to disconnected/error.
Runtime routing and connectivity evidence
At 20:09:03, 20:09:08, and 20:09:13 UTC+8,
netstatshowed the desktop main process (ChatGPT.exe) directly connecting to port 443 at the address returned by local DNS forcodex-cloud-backend.chatgpt.com. All three samples showed SYN_SENT, rather than a connection to the loopback proxy.Around 20:08 UTC+8, unauthenticated HTTPS HEAD requests to
https://codex-cloud-backend.chatgpt.com/, retaining normal TLS verification, returned:--noproxy '*'): curl error 35,Recv failure: Connection was aborted.CONNECT 200, followed by targetHTTP 401 Unauthorized.The 401 establishes service reachability through the proxy, not a successful authenticated WebSocket handshake.
Read-only inspection of this installed build matches the reported mechanism: the public durable WebSocket uses Node
ws/https.requestwithout an explicit proxy agent, while the durable proxy-selection branch supplies SOCKS only for specific internal hostnames.Please provide supported proxy handling for the public durable transport, including proxy-side DNS where appropriate, and a diagnostic identifying the failed cloud connection instead of a recurring generic toast.
No application/network settings were changed or services restarted. Authenticated WSS and TUN were not tested; these observations do not separately resolve DNS correctness versus routing. Private conversation IDs, destination IPs, credentials, and local paths have been omitted.
rdcamelot commentedon Oct 10, 2026
Adding a Windows workaround validation with the actual desktop connection, beyond an anonymous connectivity probe.
Initial diagnosis used Windows package
OpenAI.Codex_26.1002.7124.0and bundled app-server0.162.0-alpha.2, with an existing loopback HTTP proxy.Observed failures included durable WebSocket
open_timeout,initialized=false, and callerthread/readreturningremote_unavailable, followed by the genericCodex app tool request failed/ MCP-32000. Some local operations still worked, so this was not a complete loss of connectivity to the computer.Direct connectivity failed, while explicitly using the existing proxy completed TLS and returned HTTP 403. That anonymous response established transport reachability only.
We then tested a fixed-destination TCP relay:
desktop → hosts mapping to loopback relay → existing HTTP proxy CONNECT → codex-cloud-backend.chatgpt.com:443During a short enable/withdraw test, without restarting the desktop app:
initialized=trueandconnected.read_threadtool successfully read the same previously failing cloud conversation.open_timeoutfailures returned.No TUN, application-bundle patch, certificate installation, or TLS-verification override was used. The relay forwards TLS bytes without decrypting them.
I published the independently implemented workaround here:
https://github.com/rdcamelot/codex-durable-relay
It is experimental and changes system-wide resolution for that one hostname; it is not isolated to the Codex process. It also cannot repair an unstable upstream proxy or establish that every MCP -32000 error has this cause.
A supported desktop proxy configuration for the public durable WebSocket would be preferable. Please also expose an actionable transport error when failure to read the caller's cloud thread prevents an App tool from running.
Private task IDs, local paths, credentials, and raw logs are omitted.
YuanZheng01 commentedon Oct 10, 2026
Additional Windows reproduction and proposed client-side fix
I can reproduce the same split-transport behavior on Windows x64 with desktop package
OpenAI.Codex_26.1007.2314.0.Sanitized observations
At
2026-10-10T18:27:17Z, the durable transport recorded:Between
18:27Zand18:37Z, the same session recorded 19 WebSocket errors (16 open timeouts and 3 connection refusals) and 6 hydration failures. Destination IPs and private identifiers are intentionally omitted.The runtime routing comparison showed two different paths:
ChatGPT.exemain process separately attempted direct public TCP connections forwss://codex-cloud-backend.chatgpt.com/. Those attempts stalled before WebSocket initialization or were refused.HTTP_PROXYandHTTPS_PROXYwere already present, so missing environment inheritance does not explain this case.This supports the issue's existing diagnosis: normal Electron/Chromium HTTP traffic and the Node-based durable WebSocket do not apply one effective proxy policy.
Preferred fix: one proxy policy for every desktop transport
The durable WebSocket should use the same effective system/PAC decision as Chromium HTTPS. A client-side implementation could:
wss://URL through Electron's session proxy resolver (for example,session.resolveProxy) rather than deciding from the hostname alone.PROXY,HTTPS,SOCKS/SOCKS5, orDIRECT) into an explicit Agent orcreateConnectionimplementation for Nodews.DIRECT; do not silently bypass a selected proxy.net.fetch.route=proxy|direct, proxy type, stage, and elapsed time, without logging proxy addresses, credentials, destination IPs, tokens, cookies, or request headers.Suggested regression test
Run the Windows desktop client in a test network where:
The test should verify that the main process creates no direct public socket for the durable endpoint, the proxy receives the CONNECT/SOCKS request by hostname, the WebSocket reaches
openandinitialized, and hydration completes without the 64-second failure.No application, proxy, DNS, or routing settings were changed during this diagnosis. No account identifiers, proxy provider details, proxy addresses or ports, location information, destination IPs, credentials, or raw logs are included.
dexielitao-svg commentedon Oct 11, 2026
Additional Windows desktop/web comparison on October 11, 2026.
Environment:
The user can see recent and older Dot tasks and use their conversations in the web application under the same account. Corresponding desktop tasks are absent from the recent list or greyed out, and restoring them fails with “Codex app-server is not available”. Reading an exact existing task ID through the desktop's supported read_thread entry also fails because the durable host is unavailable. No private identifiers are included here.
Local execution has been verified separately. Enabling features.respect_system_proxy restored the local executor's rendezvous connection through the existing system proxy. The user then verified an actual hostname command through Dot with the expected local output and exit code 0. A complete app restart preserved this recovery. This did not restore the desktop durable task connection.
On October 10, paired anonymous checks reached the backend over TLS through the proxy but failed directly, including a direct attempt with proxy-resolved DNS. On October 11, a fresh bounded proxy check again completed normal certificate verification and received HTTP 403. These anonymous results establish transport reachability only, not a successful authenticated durable WebSocket.
Read-only inspection of this installed desktop version matches the public-host proxy-selection problem described in this issue: the public durable connection receives no explicit proxy agent, whereas the internal-hostname branch can select one. Desktop logs contain durable open_timeout and initialization failures. No bundle patch or TLS-validation bypass was used.
The web/desktop comparison demonstrates that the missing desktop list is not, for these observed tasks, evidence of deleted task data. Please provide a supported desktop proxy configuration or identify the release that fixes public durable WebSocket routing. The regression check should verify actual cloud-task hydration and an existing-task read using only the OS-selected proxy when direct public egress is unavailable.
Local GUI execution has a separate unresolved initialization failure; it is not being treated as proof of the same root cause or as restored by the network change.
weijiayua11y commentedon Oct 11, 2026
Follow-up to my earlier report: #49829 (comment)
Still affected on October 11, 2026. Conversations with Dot intermittently stall or fail, sometimes with multiple consecutive failures. The UI title is
恢复对话失败(Failed to restore conversation), with the exact error:Codex app-server is not availableVersion update: the affected user subsequently checked and directly confirmed Windows Codex Desktop 26.1007.21434, build 13901. The user also reports that their update check found no newer version on their current release channel. The older version in my earlier comment should not be treated as current.
Before that user confirmation, a read-only attempt to check the version through the app interface failed with
-32000: Codex app tool request failed.No fresh transport logs were collected, so this update does not establish that the current failures share the proxy-routing cause discussed here or the Windows sandbox issue #51601. No settings were changed during the version check.
yuc26331-eng commentedon Oct 12, 2026
Additional Windows observation: Codex Cloud environment setup remains stuck at “Loading model”. This may be related to the transport issue discussed here, but the exact cause in this case has not been established.
Environment
up_to_date.OpenAI.Codex_26.1007.2314.0.Affected workflow
Sanitized observations on October 12, 2026
AppServerConnectionlog entries reportedECONNREFUSEDand WebSocket close code1006.open_timeoutand “WebSocket was closed before the connection was established”.SYN_SENT. No connection from that main process to the configured local HTTP proxy port was observed during the bounded sample. This alone does not establish the destination hostname or exclude transparent routing.Expected behavior / request
The environment setup conversation should load and accept messages, or display an actionable connection error. Please confirm the supported proxy configuration for the Windows desktop Cloud setup transport and whether this workflow is covered by the issue's proposed fix.
No installed application patch, authentication changes, DNS/hosts changes, or project code changes were made during diagnosis. No private repositories, credentials, IP addresses, session identifiers, screenshots, or raw logs are attached. This is an observation from the affected installation, not a clean-profile reproduction or proof of a specific internal proxy implementation.
zerosignal666 commentedon Oct 13, 2026
I encountered a similar WebSocket connectivity issue with Codex Desktop on Windows.
Environment:
Windows, Codex Desktop 26.1007.2314.0
Clash Verge (local HTTP proxy:
127.0.0.1:7897)TUN enabled
HTTP_PROXYandHTTPS_PROXYconfigured in~/.codex/.envSymptoms:
Send button remains disabled, or messages fail with "Unknown error".
Some conversations and workspace settings fail to load.
ChatGPT works in the browser, but the desktop app experiences connectivity issues.
Relevant logs:
Test results:
In Rule mode, Clash reported that connections to
codex-cloud-backend.chatgpt.com:443were routed through the selected proxy node rather than DIRECT.I also observed both
HTTPS (TCP)andTun (TCP)connection types.Separately, some unauthenticated curl requests triggered Cloudflare challenges. However, I cannot confirm whether Cloudflare was the cause of the desktop WebSocket failures.
Changing the proxy node resolved the issue, but the exact root cause remains unclear.
This may be related to how the desktop application's WebSocket transport interacts with different proxy paths or exit nodes. I hope these observations help with debugging.
jackchen191919-wq commentedon Oct 14, 2026
Adding a sanitized Windows desktop observation to #49829.
The Windows package version is 26.1007.2314.0. The durable WebSocket target is
codex-cloud-backend.chatgpt.com:443. Existing desktop logs show anopen_timeoutafter approximately 15 seconds, close code1006, followed by “Codex app-server is not available.”In an earlier unauthenticated HTTPS comparison, the direct connection timed out. The existing proxy completed TLS but returned HTTP 403. This establishes limited HTTPS reachability through the proxy; it does not demonstrate a successful authenticated WebSocket handshake or durable initialization by the desktop app.
A prior static inspection of the installed code supports the hypothesis that this durable connection does not explicitly use the existing proxy. However, this installation lacks a complete runtime correlation for the same failed attempt—socket-owning process, effective proxy choice, and failure stage. I am therefore not claiming a confirmed proxy-bypass root cause, nor treating a CLI or other network-component fix as a desktop fix.
Could maintainers clarify:
No application, proxy, or network settings were changed for this report. There is no successful authenticated WebSocket result. Acceptance would require the original desktop app to initialize its durable connection and restore the previously failing conversation.
nguyen-ammonite commentedon Oct 14, 2026
Adding a Windows reproduction from October 14, 2026. Restoring the desktop connection did not resolve the chat-resume failure.
Environment verified from the running installation/logs:
features.respect_system_proxy = trueis present.Observed behavior:
Failed to resume chat/Codex app-server is not available.Failed to resume chat/Something went wrongand remains atLoading model….Sanitized log findings from approximately 19:54–19:59 UTC:
model/listinitially succeeded witherrorCode=null.model/listcalls failed withremote_unavailable.hostKind=durable, WebSocket close code1006,failureReason=open_timeoutrecurred.thread/resumewaited approximately 35 seconds, then failed withremote_unavailable.Codex app-server is not available, error code-32000.A read-only connection snapshot showed that some app traffic reaches the local proxy, but we could not attribute the durable socket to either the proxy or a direct connection. The inspected logs did not identify a definitive durable target host. Thus this is evidence of a durable connection timeout, not proof that this particular socket bypassed the proxy. No configuration-parse error was found in the inspected logs, and we have not established a damaged-thread cause.
Is there a supported diagnostic or fix for the durable transport on this Windows build, particularly when the computer connection and local execution work but UI resume still fails?
Privacy: no raw logs, screenshots, usernames, machine names, local paths, private repository details, conversation IDs/URLs, request IDs, or credentials are included.
ydluffy commentedon Oct 17, 2026
我也出现了类似的问题
Windows 桌面端版本:26.1013.40934,build 20770,prod。
客户端更新检查显示 up_to_date,已升级并完整重启。
网页端环境配置聊天可执行命令并完成测试。
桌面端同一环境无法加载消息,模型持续加载,
新消息报 Codex app-server is not available。
已做 Clash 规则/全局模式对照,全局模式下仍失败。
日志持续出现 hostId=durable、open_timeout、closeCode=1006。
普通聊天正常,不能确认具体失败请求是否受到 TLS 检查。
如果故障聊天无法打开“/”反馈菜单,请提供替代诊断提交方式,
并说明需要的是聊天 ID 还是诊断反馈生成的 session ID。
wannnngkl commentedon Oct 29, 2026
Observed a similar issue on macOS with the desktop app and a local proxy, with TUN disabled.
The app’s main process had proxy environment variables, but the durable WebSocket attempted a direct connection to
codex-cloud-backend.chatgpt.comand remained inSYN_SENT. The connection then timed out and repeatedly reconnected. An unauthenticated request through the proxy completed TLS, but received HTTP 403; this does not establish that an authenticated WebSocket handshake succeeds.Could the desktop durable WebSocket honor the configured proxy policy without requiring system-wide TUN? It would also help to surface which connection failed and whether a proxy was used.
BulgakovMilan commentedon Nov 14, 2026
Additional Windows reproduction: Codex Cloud model picker stuck while Local works (2026-11-14)
I am seeing a related problem on a Windows desktop installation: selecting This computer / Local works, but after switching to Cloud the model does not finish loading, so the cloud workflow cannot be used.
Installed software and network diagnostics (checked locally):
OpenAI.Codexversion 26.1106.6628.0; the app and local Codex processes are running.127.0.0.1:10981, and a PAC service is listening at127.0.0.1:10982.127.0.0.1:10982; an additional fail-closed proxy value127.0.0.1:9is configured. This is an intentional proxy-routed setup.~/.codex/.envincludesHTTP_PROXY,HTTPS_PROXYandALL_PROXYpointing at the local proxy on port 10981, as well asNODE_USE_ENV_PROXY=1.https://codex-cloud-backend.chatgpt.com/, explicitly routed through127.0.0.1:10981, succeeded at the HTTP CONNECT layer (proxy status 200); the destination returned 401, as expected for an unauthenticated probe. This does not verify authenticated WebSocket or cloud model initialization.Workaround attempted today:
Backed up
~/.codex/config.toml, then enabledrespect_system_proxy = trueandsystem_proxy_fallback = truein[features]. The installedcodex.exe features listconfirmed both are enabled, and a graceful desktop app restart was requested. The Cloud UI result after restart has not been independently verified, so I am not claiming a fix.Given the existing evidence in this issue that the durable Node WebSocket may not honor Windows PAC/Chromium networking, could maintainers clarify whether these flags affect the desktop durable WebSocket transport in 26.1106, and recommend a supported workaround that preserves mandatory proxy routing? A diagnostic indicator for the actual selected WebSocket route and failure stage would be helpful.
No credentials, private hostnames, raw PAC contents, or sensitive logs are attached.
BulgakovMilan commentedon Nov 14, 2026
Follow-up 2026-11-14: desktop durable WebSocket gets actual HTTP 403 after proxy feature changes (problem persists)
A new diagnostic check on the same Windows installation, after enabling
features.respect_system_proxy=trueandfeatures.system_proxy_fallback=trueand fully restarting the desktop app, confirms that Cloud still displays "Loading model" indefinitely.The active desktop log records repeated:
This 403 is a different failure mode from an
open_timeoutand should not be conflated with it. The log by itself does not show the actual WebSocket response headers, whether it took the proxy route, or whether the rejection came from Cloudflare versus application authentication.A separate unauthenticated WebSocket upgrade probe to
codex-cloud-backend.chatgpt.com, explicitly sent through the existing Happ/Xray local HTTP proxy with a desktop-like User-Agent and ordinary TLS verification, received HTTP CONNECT 200, followed by HTTP 401 Unauthorized withContent-Type: application/jsonandserver: cloudflare(nocf-mitigatedresponse header was present). This shows the proxy path reaches an application-level authentication decision without an observed challenge; it does not validate the actual authenticated desktop handshake.The local proxy listener is running. The machine has no active TUN adapter. There is no evidence yet that the desktop's durable connection used the same route as the proxy probe. I have not changed DNS/hosts, bypassed the proxy, or altered the application bundle.
Could maintainers share a supported diagnostic to capture credential-free durable handshake response headers and identify whether this 403 arises from missing WebSocket proxy integration or server-side authentication/mitigation? A private support request with the same sanitized evidence has also been submitted.