Skip to content

macOS Desktop: "Unable to update remote control state" although remoteControl/enable succeeds #35351

Open

Description

@SamuelXiao

What version of the Codex App are you using (From “About Codex” dialog)?

Codex Desktop 26.721.41059 app-server 0.146.0-alpha.3.1

What subscription do you have?

ChatGPT Pro

What platform is your computer?

macOS 26.5.2

What issue are you seeing?

In Settings > Connections > Control this Mac, enabling “Allow connections” immediately shows the toast:

Unable to update remote control state

The toggle then automatically turns off.

This persists after revoking all previously authorized Android remote-control clients and restarting Codex Desktop.

What steps can reproduce the bug?

  1. Open Codex Desktop.
  2. Go to Settings > Connections > Control this Mac.
  3. Turn on “Allow connections”.
  4. Observe the error toast and that the toggle immediately returns to off.

What is the expected behavior?

“Allow connections” should remain enabled, allowing a mobile device to pair with and control this Mac.

Additional information

he relevant desktop logs use UTC timestamps (China time: UTC+8).

After revoking both authorized Android clients, the service calls reported success:

2026-07-25T13:26:33.503Z info [AppServerConnection] response_routed durationMs=1680 errorCode=null method=remoteControl/client/revoke
2026-07-25T13:26:35.102Z info [AppServerConnection] response_routed durationMs=1597 errorCode=null method=remoteControl/client/list
2026-07-25T13:26:36.910Z info [AppServerConnection] response_routed durationMs=2335 errorCode=null method=remoteControl/client/revoke
2026-07-25T13:26:38.065Z info [AppServerConnection] response_routed durationMs=1153 errorCode=null method=remoteControl/client/list
2026-07-25T13:26:38.389Z info [AppServerConnection] response_routed durationMs=1 errorCode=null method=remoteControl/enable
2026-07-25T13:26:44.014Z info [remote-connections/window-context] refresh_remote_control_started previousConnectionCount=0
2026-07-25T13:26:44.018Z info [remote-connections/window-context] reconcile_completed creationFailureCount=0 nextConnectionCount=0 previousConnectionCount=0
2026-07-25T13:26:44.018Z info [remote-connections/window-context] refresh_remote_control_completed autoConnectConnectionCount=0 nextConnectionCount=0 previousConnectionCount=0

Despite remoteControl/enable returning errorCode=null, the UI reported failure and reset the toggle. No corresponding error was written to the desktop log.

Activity

  1. added
    app
    on Jul 25, 2026
  2. added
    bug
    on Jul 25, 2026
  3. SamuelXiao commented on Jul 28, 2026

    @SamuelXiao
    Author

    Update: proxy handling appears inconsistent

    Environment:

    • macOS
    • ChatGPT Desktop 26.721.41059
    • ClashX Meta enabled

    Normal ChatGPT usage worked correctly, but Remote Connections could not be enabled. The switch kept failing, and the QR code was missing or appeared only intermittently.

    The apparent cause is that the main ChatGPT UI and the bundled Codex/Remote Connections service do not use the same proxy mechanism. The main UI could access the network through the macOS system proxy, while the Remote Connections service, including its HTTPS and WebSocket requests, did not reliably inherit or respect that proxy.

    The feature started working after:

    1. Enabling respect_system_proxy = true in the Codex configuration.
    2. Setting HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, and WSS_PROXY through launchctl.
    3. Fully restarting ChatGPT Desktop.

    Changing Clash nodes alone did not fix the issue.

    It would be helpful if all ChatGPT Desktop components used one unified proxy mechanism—preferably the macOS system proxy—without requiring users to configure process-level environment variables separately. Proxy failures should also be surfaced clearly in the UI and logs instead of appearing only as a failed Remote Connections switch.

  4. tzhou530 commented on Aug 15, 2026

    @tzhou530

    This solved my problem. Thank you!!

  5. securAd commented on Aug 17, 2026

    @securAd

    问题解决了,谢谢!
    大佬你好,我也遇到了这个问题,请问是怎么解决的方便说一下吗

  6. tzhou530 commented on Aug 18, 2026

    @tzhou530

    问题解决了,谢谢!
    大佬你好,我也遇到了这个问题,请问是怎么解决的方便说一下吗

    直接在codex 回复:
    Enabling respect_system_proxy = true in the Codex configuration.
    Setting HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, and WSS_PROXY through launchctl.
    Fully restarting ChatGPT Desktop.

  7. iamthecloverly commented on Aug 19, 2026

    @iamthecloverly

    I traced the Remote Control failure down to the security-check stage. macOS TCC explicitly returns result=true / authValue=2 for kTCCServiceScreenCapture requested by com.openai.codex, and the ChatGPT code signature validates successfully. Accessibility is enabled for Codex Computer Use (com.openai.sky.CUAService), which is also running and correctly signed by OpenAI. The Mac is an M4 Pro with Full Security, SIP enabled, and SSV enabled. ChatGPT backend endpoints are reachable from the Mac. Despite all of this, Control this Mac still returns "Couldn't check security requirements." This looks like a Remote Control enrollment/security-check issue rather than a macOS permission or hardware issue.

  8. Haoyu0124 commented on Aug 21, 2026

    @Haoyu0124

    I’m seeing the same Remote Control failure on a Mac, but it happens before the Set up/Add flow becomes available.

    Environment:

    • ChatGPT Desktop 26.818.21641
    • Bundled Codex: 0.148.0-alpha.21
    • macOS 26.6 (arm64)
    • The same ChatGPT account is signed in on iPhone and Mac

    Reproduction:

    1. Go to Settings > Connections > Control this Mac.
    2. Turn on “Allow connections”.
    3. The toggle fails with: “Couldn’t update remote control availability”.
    4. It returns to off, and Set up/Add is not shown.

    What I verified:

    • Both devices were switched from an old account to the current account.
    • The old local remote-control enrollment was removed; current enrollment count is 0.
    • SQLite integrity check passes.
    • No VPN or system HTTP/HTTPS proxy is enabled.
    • ChatGPT and Codex otherwise work normally.

    This appears to fail during Remote Control availability/enrollment initialization, before QR pairing. Could maintainers confirm whether this is related to #35351 and advise what diagnostics or fix are needed?

  9. qwertynik commented on Aug 29, 2026

    @qwertynik

    Hello Team Codex,
    I am facing a similar issue here. Can you resolve this issue on priority? We are not able to use the Remote version. I captured the feedback id, it is: no-active-thread-01a04cfe-f170-7bc3-b35f-e79d4509d687

    A video walkthrough of the issue is available here:
    https://github.com/user-attachments/assets/5bfa3a47-1fdc-4b10-bae1-fa7468fdd43e

    PS: For the degraded performance, do you plan to compensate the users with reset's' and the extension of their plan's duration since the moment they are facing issues?

  10. qwertynik commented on Sep 5, 2026

    @qwertynik

    The latest Codex update fixed this for me. Prior to this, I had done some cleaning on my Mac to delete the earlier version of ChatGPT. Not sure to what extent that helped.
    That said, to the Open AI support team, a partial reset should be done for all users affected with this issue.
    Anyways, congratulations on the launch of Astra. It was well executed.

  11. tacosandtypescript-debug commented on Sep 10, 2026

    @tacosandtypescript-debug

    Same bug on Linux desktop (not just macOS). Details:

    • Platform: Linux Mint 22.3 (X11), ChatGPT/Codex desktop 26.903.61454 (latest), app-server running features.code_mode_host=true.
    • Subscription: ChatGPT (Codex via desktop app).
    • Symptom: In Settings > Connections, enabling the remote-control toggle shows an error ("Couldn't update remote control availability") and the toggle switches itself back off. The log shows remoteControl/enable succeeds (otel trace rpc.method="remoteControl/enable"), but the app-server can never establish the WebSocket:
    failed to connect to app-server remote control websocket
    websocket_url=wss://chatgpt.com/backend-api/wham/remote/control/server
    installation_id=...
    server_name=ISAAC
    error=failed to connect ... : HTTP error: 503 Service Unavailable
    
    • The client is correctly enrolled: has_enrollment=true, server_id=Some("srv_..."), environment_id=Some("env_...").
    • The reconnect loop retries forever (719 failures over ~2 h in ~/.codex/logs_2.sqlite), always HTTP 503 from the wham backend. Zero successful connections recorded.
    • Token refresh works (refreshing remote control server token runs, remote control auth recovery succeeded), so auth is not the issue.
    • No proxy / no VPN in the path (checked env, GNOME proxy settings, listeners). Plain route to chatgpt.com.
    • CLI Codex (codex binary / chatgpt.com/backend-api/codex/responses) works fine — only the remote-control wham WebSocket returns 503.

    This looks like a server-side issue with the wham/remote/control endpoint rather than the local toggle bug. Happy to provide full redacted logs if useful.

  12. onurkose commented on Oct 3, 2026

    @onurkose

    It happened to me as well, and it's simply resolved by activating MFA in my account.

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

    appbugremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions