Skip to content

Dot tasks fail to open in desktop when the cloud WebSocket requires a proxy #49829

Open

Description

@xc1427

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

  1. Use a network where direct access to codex-cloud-backend.chatgpt.com times out but an approved proxy works.
  2. Configure system/app proxy settings, including HTTPS_PROXY and NODE_USE_ENV_PROXY=1.
  3. 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_URL on 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.

Related proxy-handling reports: #23504, #29385.

Activity

  1. added
    bug
    app
    connectivity
    app-server
    on Oct 1, 2026
  2. xc1427 commented on Oct 1, 2026

    @xc1427
    Author

    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.

  3. anye2627 commented on Oct 1, 2026

    @anye2627

    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:

    • The Electron main process (ChatGPT.exe) makes direct TCP connection attempts correlated with the durable WebSocket retries to codex-cloud-backend.chatgpt.com. They remain in SYN_SENT, followed by approximately 15-second open_timeout failures and close code 1006.
    • During the same observation window, Chromium's network-service process accesses the same hostname through the configured proxy. The local codex.exe app-server also uses the proxy normally.
    • The live processes all contain the expected HTTP_PROXY, HTTPS_PROXY, and ALL_PROXY values; NO_PROXY does not match the destination. Missing environment inheritance does not explain this case.
    • Installed-code inspection indicates that the public durable WebSocket uses Node ws without an explicit proxy agent, whereas the corresponding cloud HTTP path uses Electron net.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.

  4. lcxhh521 commented on Oct 1, 2026

    @lcxhh521

    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 Node ws package 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 with session.resolveProxy and 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 code 1006, retrying every ~35 s, 600+ attempts a day).

    Additional findings from the installed bundle and the network:

    1. Proxy selection for this transport is a hostname check, not a proxy lookup. For the durable host, a SOCKS agent (socks5h://127.0.0.1:1080) is attached only when the WebSocket hostname ends with .internal.api.openai.org; for codex-cloud-backend.chatgpt.com no agent is attached at all. So HTTPS_PROXY, NODE_USE_ENV_PROXY, the system proxy and Chromium's proxy configuration are never consulted on this path, which matches the createConnection bypass described above. CODEX_APP_SERVER_WS_URL is also skipped for the durable host (only non-durable hosts read it).
    2. The same host already works over HTTP in the same app, because the durable transport's HTTP reads (the "ASB HTTP read" path) use net.fetch. Only the WebSocket half fails.
    3. On networks like this one, direct access cannot work even with correct DNS. Local DNS returns unrelated addresses for 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.
  5. added
    dots
    on Oct 2, 2026
  6. fj974279207-tech commented on Oct 3, 2026

    @fj974279207-tech

    Additional macOS evidence: system-proxy WSS routing, cancellable Agent prototype, and native-list comparison

    Environment

    • macOS 27.0.1, arm64.
    • Installed ChatGPT desktop version 26.930.31428, build 12913; bundled Chromium 154.0.8037.98 and Node 24.19.0.
    • Existing system HTTP/HTTPS/SOCKS proxy enabled through a loopback proxy. No virtual network interface enabled for this experiment; global network settings unchanged.
    • No installed application patch, credential extraction, certificate-validation override, or tool-eligibility bypass was performed.

    Observed behavior

    Dot durable AppServer connections repeatedly fail before initialization with open_timeout and initialized=false. An earlier controlled list request failed immediately after caller thread/read reported remote_unavailable; the app tool returned -32000 with 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_projects and list_threads(limit:1), while the same desktop logs continued recording durable open_timeout and initialized=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 ws without 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.
    • HTTPS on the same host → HTTP PROXY loopback proxy.
    • WSS localhost → DIRECT.

    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

    1. Confirm whether Dot's public durable transport follows the same effective Electron session system/PAC policy as desktop HTTP, and which proxy protocols are supported.
    2. If not, provide a supported fix or desktop diagnostic/development build that resolves the actual WSS URL and passes an explicit, cancellable transport Agent while preserving authentication and TLS identity checks.
    3. Provide redacted correlation between tool call, caller thread/read, durable route decision, connection, TLS, WebSocket open, and initialized state; do not include tokens, message bodies, or raw PAC content.
    4. Confirm supported configuration or diagnostic entry points for the installed desktop release. CLI command network-proxy configuration should not be assumed to apply to native desktop transport.

    Acceptance requires a real Dot-origin connection reaching open and initialized, 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_proxy as under development and currently disabled. However, no reference to that flag was found in the inspected desktop JavaScript bundle, and the current public Rust codex-http-client documentation 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.

  7. kkkzbh commented on Oct 4, 2026

    @kkkzbh

    Additional Linux evidence: authenticated proxy connection succeeds; Outputs remains pending while the durable host is disconnected.

    Environment

    • Fedora Linux 44, KDE Plasma Desktop, x86_64; kernel 7.2.7-200.fc44.x86_64.
    • Installed official RPM: chatgpt-26.928.20755-1.x86_64 (package metadata; About dialog version was not independently collected).
    • The running desktop is a locally staged Linux build from that RPM. Read-only inspection found the same relevant proxy-selection and WebSocket-agent logic in the untouched RPM payload and the active staged build. The staged bundled CLI is byte-identical to the RPM's paired CLI.
    • Existing loopback HTTP proxy; ordinary desktop HTTP traffic uses it.

    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:

    Failed to resume chat
    Codex app-server is not available
    

    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:

    2026-10-04T16:14:10.432Z code=1006 failureReason=open_timeout hostKind=durable transport=websocket
    2026-10-04T16:14:45.449Z code=1006 failureReason=open_timeout hostKind=durable transport=websocket
    2026-10-04T16:14:45.457Z failureReason=remote_unavailable method=thread/resume
    2026-10-04T16:14:45.457Z vmEvent=thread_resume_failed vmProduct=orbit
    

    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:

    • WebSocket upgrade returned HTTP 101 Switching Protocols in approximately 0.57 seconds, with TLS certificate verification enabled.
    • App-server initialize succeeded.
    • Read-only cloud thread metadata and turn-history requests succeeded.

    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 public codex-cloud-backend.chatgpt.com endpoint. The inspected public durable path does not consult the system proxy or proxy environment variables. Its Node ws transport attaches a SocksProxyAgent only when a proxy URL is supplied.

    The Outputs query (aeon-output-threads) is enabled only when the selected host's connection state is connected. 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.

  8. scosmiclia commented on Oct 5, 2026

    @scosmiclia

    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

    • macOS 15.7.3 (24G419), Apple Silicon.
    • App version above was read from installed metadata, not the About dialog. Bundled local app-server: 0.160.0.
    • Existing local mixed HTTP/SOCKS proxy on loopback port 7890.
    • The app was launched with HTTP_PROXY, HTTPS_PROXY and ALL_PROXY (uppercase and lowercase) pointing to the local HTTP proxy, plus Chromium's --proxy-server pointing to its SOCKS endpoint. These environment variables were confirmed in the running main process and children. NODE_USE_ENV_PROXY was not set in this test.
    • TUN and macOS system proxy settings were initially off.

    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 in SYN_SENT, followed by approximately 15-second open_timeout failures. 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:

    The app tool call ended before producing a result
    

    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:

    State Observation
    TUN off Repeated direct connection attempts and durable open_timeout.
    TUN on, 16:14:56–16:17:56 Durable connected at about 16:15:26. A connection from the existing main process was matched to the proxy core's TUN traffic.
    During that connected interval The same Dot test task successfully called list_threads, get_usage_limits, and read_thread at about 16:17:29–31. Recorded execution durations were 1344 ms, 787 ms, and 436 ms respectively. read_thread returned the expected local task result.
    TUN off again The durable connection closed at about 16:18:23; subsequent attempts returned to direct SYN_SENT and open_timeout. Local-context App tool calls still succeeded. Dot-origin calls were not repeated in this off interval.
    Second valid TUN-on interval, 16:22:34–16:24:36 Durable connected again at about 16:22:50.

    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 ws path supplies createConnection, 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_thread call 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.

  9. weijiayua11y commented on Oct 5, 2026

    @weijiayua11y

    Additional Windows evidence for the public durable WebSocket proxy problem.

    Environment:

    • Installed Windows package: OpenAI.Codex_26.930.4958.0.
    • Bundled app-server/CLI session metadata: 0.160.0.
    • Windows system proxy enabled; HTTP_PROXY, HTTPS_PROXY and ALL_PROXY point to an existing loopback proxy.
    • TUN mode disabled.
    • Local Codex tasks and local app-server tools work.

    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:

    • hostId=durable, method=thread/resume, failureReason=remote_unavailable, JSON-RPC code=-32000.
    • Repeated "WebSocket was closed before the connection was established", open_timeout and close code 1006.
    • A later durable websocket_error at 09:26:45.974 UTC contains ECONNREFUSED.
    • Destination IPs, thread IDs and credentials have been omitted.

    Read-only observations from the installed application bundle:

    • The public durable endpoint is wss://codex-cloud-backend.chatgpt.com/.
    • The durable transport selection supplies its explicit SOCKS proxy for internal .internal.api.openai.org hosts, while the public durable hostname receives no proxy URL.
    • The WebSocket constructor options attach SocksProxyAgent only when socksProxyUrl is non-null.
    • The related cloud HTTP path uses Electron net.fetch.
    • This matches the proxy-integration mechanism already reported here. No bundle was patched.

    Bounded, unauthenticated connectivity check against the actual public durable hostname:

    • Direct HTTPS request with proxy explicitly disabled: connection timed out after about 5.006 seconds; TLS handshake not completed; HTTP status 000.
    • HTTPS request with the existing loopback HTTP proxy explicitly selected: TLS completed in about 0.706 seconds; HTTP 403 returned in about 0.829 seconds.
    • Normal certificate verification was retained.
    • The 403 demonstrates transport reachability only. It does not establish authorization or a successful WebSocket handshake.

    Limits:

    • No authenticated standalone WebSocket test was performed, no credentials were extracted, and TUN was not enabled as part of this investigation.
    • The direct/proxy comparison does not separately isolate DNS from routing.
    • Another local chat also restored inconsistent permissions, but no causal link between this network failure and the permission change has been established.

    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".

  10. developerisnow commented on Oct 5, 2026

    @developerisnow
    Image
  11. lurenyi2025 commented on Oct 7, 2026

    @lurenyi2025

    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?

  12. masonjian commented on Oct 8, 2026

    @masonjian

    Additional macOS reproduction on ChatGPT desktop 26.1002.52244 (build 13536), observed October 8, 2026.

    Environment

    • macOS 26.6.2, Apple Silicon (arm64).
    • Desktop version/build verified from installed application metadata.
    • The local app-server reports version 0.162.0-alpha.2.
    • macOS HTTP, HTTPS and SOCKS system proxies are enabled through an existing loopback proxy.

    Symptom and sanitized logs

    Dot repeatedly displays the equivalent of “Failed to restore conversation”, with the exact English detail:

    Codex app-server is not available
    

    At 2026-10-08T00:21:53.429Z (08:21 UTC+8), a thread/resume request failed with JSON-RPC code -32000 and failureReason=remote_unavailable.

    The same desktop run repeatedly records:

    hostId=durable
    transport=websocket
    failureReason=open_timeout
    closeCode=1006
    initialized=false
    

    Later attempts report ECONNREFUSED to 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 local turn/start request 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:

    • Proxy explicitly disabled: connection failed before TLS; HTTP status 000.
    • Existing HTTP proxy explicitly selected: TLS completed in approximately 0.98 seconds; HTTP 403 returned.

    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.

  13. ZXCYFR commented on Oct 8, 2026

    @ZXCYFR

    补充一个 Linux 上的情况:我用 Ubuntu 24.04 + Clash Verge,CLI 在系统代理下正常,但桌面版需要开 TUN 才能聊天。

    后来给桌面单独加了代理环境变量和 --proxy-server,关掉 TUN 后本地对话就能用了。配置放在这条回复里。

    不过 durable 连接还是会报 ETIMEDOUT / 1006,所以这个办法只解决了我这边的本地对话,没解决这里的云端连接问题。菜单冷启动时的登录状态也还在观察。

  14. DKalien commented on Oct 9, 2026

    @DKalien

    Additional Windows reproduction on October 9, 2026, with runtime TCP observations supporting the proxy-integration problem described here. Also related to #50561.

    Environment

    • Windows x64; Microsoft Store package OpenAI.Codex_26.1002.7124.0, verified from the running executable path.
    • Clash Verge Rev in rule mode; Windows system proxy enabled through an existing loopback HTTP proxy; TUN disabled.

    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 conversation entries.

    Representative sequence on 2026-10-09 (timestamps below are UTC):

    11:58:27.903Z  hostKind=durable code=1006 failureReason=open_timeout
    11:58:27.904Z  reconnectAttempt=170 delayMs=20000
    11:58:27.920Z  method=thread/resume failureReason=remote_unavailable
                   error=-32000 "Codex app-server is not available"
    11:58:27.940Z  Failed to resume conversation
    

    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, netstat showed the desktop main process (ChatGPT.exe) directly connecting to port 443 at the address returned by local DNS for codex-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:

    • Proxy explicitly disabled (--noproxy '*'): curl error 35, Recv failure: Connection was aborted.
    • Existing HTTP proxy explicitly selected: proxy CONNECT 200, followed by target HTTP 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.request without 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.

  15. rdcamelot commented on Oct 10, 2026

    @rdcamelot

    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.0 and bundled app-server 0.162.0-alpha.2, with an existing loopback HTTP proxy.

    Observed failures included durable WebSocket open_timeout, initialized=false, and caller thread/read returning remote_unavailable, followed by the generic Codex 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:443

    During a short enable/withdraw test, without restarting the desktop app:

    • The desktop's durable connection reached initialized=true and connected.
    • The desktop process was observed connecting to the relay.
    • The native read_thread tool successfully read the same previously failing cloud conversation.
    • After withdrawing the relay and restoring hosts, durable open_timeout failures 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.

  16. YuanZheng01 commented on Oct 10, 2026

    @YuanZheng01

    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:

    transport=websocket code=1006 failureReason=open_timeout
    reason=hydration_failed wallDurationMs=64008
    

    Between 18:27Z and 18: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:

    • Chromium NetworkService sent ordinary desktop HTTPS traffic through the Windows-selected system proxy; representative room/history requests returned HTTP 200 in about 0.34–1.12 seconds.
    • The ChatGPT.exe main process separately attempted direct public TCP connections for wss://codex-cloud-backend.chatgpt.com/. Those attempts stalled before WebSocket initialization or were refused.
    • An unauthenticated transport probe to the same backend completed through the configured proxy in about 0.27–0.48 seconds, while direct TCP attempts timed out. This establishes route reachability only, not an authenticated WebSocket session.
    • HTTP_PROXY and HTTPS_PROXY were 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:

    1. Resolve the original wss:// URL through Electron's session proxy resolver (for example, session.resolveProxy) rather than deciding from the hostname alone.
    2. Translate the ordered PAC result (PROXY, HTTPS, SOCKS/SOCKS5, or DIRECT) into an explicit Agent or createConnection implementation for Node ws.
    3. For HTTP/HTTPS proxies, issue CONNECT using the target hostname so name resolution can occur on the selected proxy path. Use remote-name resolution for SOCKS routes where appropriate.
    4. Preserve PAC ordering, authentication, cancellation, target TLS verification, and bounded connect/open timeouts. Attempt a direct socket only when the effective proxy decision explicitly returns DIRECT; do not silently bypass a selected proxy.
    5. Share this routing policy with the desktop HTTP path instead of maintaining separate proxy-selection logic for durable WebSocket and net.fetch.
    6. Emit privacy-safe diagnostics such as 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:

    • direct DNS and direct outbound port 443 are unavailable;
    • the operating-system-selected proxy can reach the backend; and
    • the PAC/system policy selects that proxy for the original WSS URL.

    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 open and initialized, 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.

  17. dexielitao-svg commented on Oct 11, 2026

    @dexielitao-svg

    Additional Windows desktop/web comparison on October 11, 2026.

    Environment:

    • Desktop About version 26.1007.21434, build 13901; Windows Store package 26.1007.2314.0.
    • Bundled local runtime 0.162.0-alpha.17.2.
    • Existing Windows system proxy enabled; TUN and VPN disabled.
    • The desktop's configured updater reports up_to_date.

    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.

  18. weijiayua11y commented on Oct 11, 2026

    @weijiayua11y

    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 available

    Version 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.

  19. yuc26331-eng commented on Oct 12, 2026

    @yuc26331-eng

    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

    • Desktop version 26.1007.21434, build 13901, prod channel, as reported by the app's update checker. It reported up_to_date.
    • Windows package version: OpenAI.Codex_26.1007.2314.0.
    • An existing Windows system proxy is enabled, and its local listener is running.

    Affected workflow

    1. Open an existing draft under Settings → Codex Cloud → Environments.
    2. The setup conversation continues to show “Loading model”, preventing the user from sending setup instructions.
    3. The user switched the existing proxy application from selective routing to its global mode and returned to the same draft. The loading state persisted. This does not establish whether the proxy's global mode captures the affected transport.

    Sanitized observations on October 12, 2026

    • At 07:33:11 and 07:33:14 UTC+8, new AppServerConnection log entries reported ECONNREFUSED and WebSocket close code 1006.
    • Earlier entries reported open_timeout and “WebSocket was closed before the connection was established”.
    • At 07:34:41 UTC+8, passive TCP sampling observed the desktop main process attempting a remote port-443 connection in 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.

  20. zerosignal666 commented on Oct 13, 2026

    @zerosignal666

    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_PROXY and HTTPS_PROXY configured in ~/.codex/.env

    Symptoms:

    • 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:

    hostKind=durable
    transport=websocket
    failureReason=open_timeout
    code=1006
    errorCode=ECONNRESET

    Test results:

    Configuration Result
    Original US node + TUN + Rule Failed
    Original US node + TUN + Global Worked
    Different US node + TUN + Rule Worked
    Different US node + TUN + Rule, after restart Worked

    In Rule mode, Clash reported that connections to codex-cloud-backend.chatgpt.com:443 were routed through the selected proxy node rather than DIRECT.

    I also observed both HTTPS (TCP) and Tun (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.

  21. jackchen191919-wq commented on Oct 14, 2026

    @jackchen191919-wq

    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 an open_timeout after approximately 15 seconds, close code 1006, 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:

    1. Is there a supported proxy configuration that applies specifically to the desktop durable WebSocket?
    2. If so, where is it configured, what traffic does it affect, and must the app be exited and reopened?
    3. If this has been fixed, what is the exact fixed Windows desktop version?
    4. Which credential-free diagnostic fields would best establish the effective proxy choice and whether failure occurs at DNS, TCP, TLS, WebSocket handshake, or initialization?

    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.

  22. nguyen-ammonite commented on Oct 14, 2026

    @nguyen-ammonite

    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:

    • Windows desktop package: 26.1007.9446.0
    • Local app-server version: 0.162.0-alpha.17.2
    • A local proxy is in use.
    • The active TOML configuration parses successfully, and features.respect_system_proxy = true is present.

    Observed behavior:

    • After restoring that setting, the computer reports Connected and local delegated commands actually execute successfully. A project environment check passed 11/11 with exit code 0.
    • The desktop UI still shows Failed to resume chat / Codex app-server is not available.
    • In the web UI, the affected local-task page displays its existing history, but reports Failed to resume chat / Something went wrong and remains at Loading model….
    • Rebooting and reinstalling the desktop app did not resolve the resume issue. We have not established whether reinstalling caused the setting to disappear.

    Sanitized log findings from approximately 19:54–19:59 UTC:

    • model/list initially succeeded with errorCode=null.
    • Later model/list calls failed with remote_unavailable.
    • hostKind=durable, WebSocket close code 1006, failureReason=open_timeout recurred.
    • thread/resume waited approximately 35 seconds, then failed with remote_unavailable.
    • The UI subsequently reported 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.

  23. ydluffy commented on Oct 17, 2026

    @ydluffy

    我也出现了类似的问题
    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。

  24. wannnngkl commented on Oct 29, 2026

    @wannnngkl

    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.com and remained in SYN_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.

  25. BulgakovMilan commented on Nov 14, 2026

    @BulgakovMilan

    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):

    • Official Windows MSIX OpenAI.Codex version 26.1106.6628.0; the app and local Codex processes are running.
    • A local proxy listener is available at 127.0.0.1:10981, and a PAC service is listening at 127.0.0.1:10982.
    • Windows proxy settings include a PAC URL served from 127.0.0.1:10982; an additional fail-closed proxy value 127.0.0.1:9 is configured. This is an intentional proxy-routed setup.
    • Codex ~/.codex/.env includes HTTP_PROXY, HTTPS_PROXY and ALL_PROXY pointing at the local proxy on port 10981, as well as NODE_USE_ENV_PROXY=1.
    • An unauthenticated HTTPS probe to https://codex-cloud-backend.chatgpt.com/, explicitly routed through 127.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 enabled respect_system_proxy = true and system_proxy_fallback = true in [features]. The installed codex.exe features list confirmed 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.

  26. BulgakovMilan commented on Nov 14, 2026

    @BulgakovMilan

    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=true and features.system_proxy_fallback=true and fully restarting the desktop app, confirms that Cloud still displays "Loading model" indefinitely.

    The active desktop log records repeated:

    2026-11-14T14:24:33.981Z [AppServerConnection]
    hostId=durable
    currentState=connecting
    next=error
    initialized=false
    connectionError.code=connection-failed
    connectionError.message="Unexpected server response: 403"
    

    This 403 is a different failure mode from an open_timeout and 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 with Content-Type: application/json and server: cloudflare (no cf-mitigated response 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appapp-serverbugconnectivitydots

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions