Skip to content

[macOS 26.1007.30912+] Remote Control websocket ignores macOS system proxy; pairing times out (regression from 26.1007.21159) #53992

Open

Description

@LinkRogers

What version of the Codex App are you using?

ChatGPT macOS app 26.1007.71326 (also reproduced on 26.1007.30912). Bundled app-server 0.162.0-alpha.17.2.
Last working version: 26.1007.21159.

What subscription do you have?

ChatGPT Pro (account-independent; this is a network-path issue)

What platform is your computer?

macOS 26.6.2, arm64 (Mac mini)

What issue are you seeing?

On a network where chatgpt.com is only reachable through a local HTTP proxy (configured as the macOS system HTTP/HTTPS proxy, 127.0.0.1:<port>), Remote Control stopped working after the app auto-updated from 26.1007.21159 to 26.1007.30912.

Settings → Connections → Remote Control shows:

无法获取配对码:Timed out waiting for remote control to connect

Everything else in the app works through the system proxy (chat, model calls, plugin sync), so the proxy itself is fine.

~/.codex/logs_2.sqlite (target codex_app_server_transport::transport::remote_control::websocket) shows every attempt failing:

failed to connect to app-server remote control websocket
  websocket_url=wss://chatgpt.com/backend-api/wham/remote/control/server
  error=timed out connecting to remote control websocket at `wss://chatgpt.com/backend-api/wham/remote/control/server` after 30s
  error_kind=TimedOut reconnect_attempt=36

and also:

remote control server token refresh failed
  refresh_url="https://chatgpt.com/backend-api/wham/remote/control/server/refresh"
  error=... error sending request for url (...) error_kind=TimedOut

lsof on the codex app-server process shows most of its sockets going to the local proxy port, but the remote-control connection is a direct TCP connection to chatgpt.com's resolved IP (stuck in SYN_SENT), i.e. it bypasses the system proxy.

Timeline from the same log DB:

Time App version Remote Control
2026-10-12 07:29 (local) 26.1007.21159 connected (last success)
2026-10-12 08:04 auto-updated to 26.1007.30912 —
2026-10-14 19:47 → 21:10 30912 / 71326 every attempt TimedOut (36+ retries)

Confirmation / workaround

Launching the app with proxy env vars fixes it immediately:

open -b com.openai.codex --env HTTPS_PROXY=http://127.0.0.1:<port> --env HTTP_PROXY=... --env ALL_PROXY=...

→ connected to app-server remote control websocket within ~5 seconds, and pairing / mobile Remote work.

A/B test on 26.1007.71326, same machine and network, minutes apart:

  • app-server launched without proxy env → TimedOut after 30s
  • app-server launched with HTTPS_PROXY env → connected in ~5s

Separately, the desktop's durable host connection (Electron main process, hostKind=durable) has also failed continuously since 2026-10-13 with WebSocket was closed before the connection was established / failureReason=open_timeout, and that one is not fixed by the env vars. lsof shows the ChatGPT main process making a direct (non-proxied) connection in SYN_SENT at the same time. Possibly related to #53825.

What steps can reproduce the bug?

  1. On macOS, set a system HTTP/HTTPS proxy and block direct egress to chatgpt.com (or use a network where it is only reachable via proxy).
  2. Launch ChatGPT 26.1007.30912+ normally (Dock/Finder, so no HTTPS_PROXY in env).
  3. Settings → Connections → set up Remote Control.

What is the expected behavior?

The Remote Control websocket and token refresh should honor the macOS system proxy like the rest of the app does, and like 26.1007.21159 did. Requiring users to inject HTTPS_PROXY into the app's launch environment is not discoverable.

Additional information

Related but distinct: #31947 (proxy comment), #53825 (durable / "Reconnecting… waiting for network" on 26.1007.30912).

Activity

  1. added
    bug
    app
    connectivity
    on Oct 14, 2026
  2. PlainWilder commented on Oct 25, 2026

    @PlainWilder

    Confirmed workaround on macOS with V2rayU — pairing succeeded after a refresh

    I would like to share an additional successful case on ChatGPT/Codex Desktop version 26.1016.61520.

    Environment

    • Mac mini running macOS
    • ChatGPT/Codex Desktop 26.1016.61520
    • V2rayU local HTTP proxy: 127.0.0.1:1087
    • SOCKS proxy: 127.0.0.1:1080
    • ChatGPT Plus, MFA enabled
    • iPhone with ChatGPT app

    Initial symptoms

    1. Remote Control setup initially failed with "Unable to check security requirements. Please try again."
    2. Switching V2rayU between PAC and Global proxy modes did not resolve the issue.
    3. Desktop logs contained Workspace routing is unavailable, status 432, on /wham/remote/control/mfa_requirement.
    4. Requests to remoteControl/client/list also failed.

    What I tried

    I completely quit the desktop application and launched it from Terminal with explicit proxy environment variables:

    env \
    HTTP_PROXY=http://127.0.0.1:1087 \
    HTTPS_PROXY=http://127.0.0.1:1087 \
    http_proxy=http://127.0.0.1:1087 \
    https_proxy=http://127.0.0.1:1087 \
    NO_PROXY=localhost,127.0.0.1,::1 \
    /Applications/ChatGPT.app/Contents/MacOS/ChatGPT

    Result

    • The Remote Control setup progressed past the previous security-check failure.
    • The first attempt to generate a pairing code timed out with "Timed out waiting for remote control to connect".
    • I refreshed the pairing screen without changing the proxy settings.
    • A valid QR code was generated.
    • I scanned it with my iPhone and successfully paired the device.
    • I then sent a task from the iPhone to my Mac mini, and Codex successfully executed it.

    Additional observations

    • In this successful session, I did not explicitly set ALL_PROXY.
    • The second pairing attempt succeeded after refreshing.
    • I have not yet tested whether the workaround survives an ordinary application restart or a system reboot.

    This is consistent with a proxy-handling issue in the desktop or app-server connection path, although I cannot conclusively identify the root cause from this single successful test.

    Thanks to everyone who documented the proxy workaround in this issue and the related discussions.

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

    appbugconnectivityremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions