Repository navigation
Description
What happened?
Remote Control cannot be enabled in the current ChatGPT/Codex Desktop Windows app. The UI reaches the final Allow devices to control this computer step, then reports:
Unable to enable remote control. Try again.
The local logs show that enrollment already exists and the client can reach the Remote Control WebSocket endpoint, but WebSocket authentication is rejected with HTTP 403 Forbidden. The client refreshes the server token and retries repeatedly, but every retry receives the same 403.
This appears distinct from the known MFA enrollment failure (#23977): in this case has_enrollment=true, and the 403 occurs during WebSocket authentication, not /server/enroll.
Environment
- Windows 11 Pro
- ChatGPT Desktop installed from Microsoft Store
- App version: 26.820.71523 (2026-08-27)
- ChatGPT Plus / Personal account
- MFA is configured (Google Authenticator has been used for sign-in)
- Computer Use is available and enabled when using the supported network path
- App was reset/reinstalled and the PC/app restarted; behavior persists
Steps to reproduce
- Open ChatGPT Desktop on Windows.
- Sign in to the ChatGPT account.
- Open Settings → Connections → device controlling this PC / Remote Control.
- Choose Add device → Start.
- Confirm Allow devices to control this computer.
- Wait several seconds.
- UI reports that Remote Control could not be enabled.
Relevant sanitized logs
INFO ...remote_control::websocket
connecting to app-server remote control websocket
websocket_url=wss://chatgpt.com/backend-api/wham/remote/control/server
reconnect_attempt=9
has_enrollment=true
server_id=Some("<REDACTED_SERVER_ID>")
environment_id=Some("<REDACTED_ENVIRONMENT_ID>")
app_server_client_name=Some("Codex Desktop")
WARN ...remote_control::websocket
failed to connect to app-server remote control websocket
websocket_url=wss://chatgpt.com/backend-api/wham/remote/control/server
installation_id=<REDACTED_INSTALLATION_ID>
error=remote control websocket auth failed with HTTP 403 Forbidden; refreshing server token before reconnect
error_kind=Other
reconnect_attempt=9
has_enrollment=true
server_id=Some("<REDACTED_SERVER_ID>")
environment_id=Some("<REDACTED_ENVIRONMENT_ID>")
INFO ...remote_control::websocket
refreshing remote control server token:
websocket_url=wss://chatgpt.com/backend-api/wham/remote/control/server
refresh_url=https://chatgpt.com/backend-api/wham/remote/control/server/refresh
account_id=<REDACTED_ACCOUNT_ID>
server_id=<REDACTED_SERVER_ID>
environment_id=<REDACTED_ENVIRONMENT_ID>
WARN ...remote_control::websocket
failed to connect ...
error=remote control websocket auth failed with HTTP 403 Forbidden
reconnect_attempt=10
reconnect_delay=30s
has_enrollment=true
The same session can make normal authenticated Codex backend requests successfully (for example /backend-api/codex/models returns 200 OK), so general ChatGPT/Codex authentication and connectivity are working.
Important distinction
This does not look like a TCP/WebSocket routing failure: the Remote Control endpoint is reached and returns an HTTP response.
It also does not match the MFA enrollment 403 documented in #23977:
- Remote control stays offline after switching Business accounts; enrollment fails with MFA required #23977:
/remote/control/server/enroll→ 403 withMulti-factor authentication required - This case: enrollment already exists (
has_enrollment=true), then/remote/control/serverWebSocket authentication → 403 - Refreshing the Remote Control server token does not recover the connection.
Expected behavior
After successful enrollment, the refreshed server token should authenticate the Remote Control WebSocket and the PC should become available for remote control.
Actual behavior
The server token is refreshed, but WebSocket authentication continues to return HTTP 403 indefinitely.
All account IDs, installation IDs, server/environment IDs, cookies, and other identifying values above have been redacted.
Activity
github-actions commentedon Aug 27, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
GuZhuJun commentedon Aug 30, 2026
Additional reproduction on a newer Windows build.
Environment
wss://chatgpt.com/backend-api/wham/remote/control/serverResult
The failure is still reproducible after forcing a fresh local enrollment state.
I verified the local state DB first:
state_5.sqlitepassesPRAGMA quick_checkremote_control_enrollmentsinitially contained exactly 1 rowremote_control_enabled=1Immediately after enrollment, the WebSocket auth still fails with 403:
The retry loop continues with increasing reconnect backoff. The endpoint is reachable and returns an HTTP response, so this does not look like a TCP/TLS/WebSocket routing timeout.
One additional observation: after deleting the local enrollment and enrolling again, the backend returned the same stable server/environment identity as before. That may be expected/idempotent server-side behavior, but the important point is that a fresh local enrollment cycle still leads immediately to the same WebSocket-auth 403.
All account, installation, server, and environment identifiers are redacted.
reclusep commentedon Aug 31, 2026
I can reproduce the same Remote Control WebSocket authentication failure on a newer Windows build.
Environment
Behavior
Remote Control cannot be enabled.
The UI may show:
“Unable to enable remote control. Please make sure only one ChatGPT instance is running.”
I verified the Windows process tree and there is only one root ChatGPT.exe process. The other ChatGPT.exe processes are normal renderer/GPU/utility/crashpad child processes, and codex.exe is the app-server child process of that same root instance.
Relevant sanitized logs
The Remote Control client is already enrolled:
has_enrollment=true
It repeatedly tries to connect to:
wss://chatgpt.com/backend-api/wham/remote/control/server
but authentication fails:
remote control websocket auth failed with HTTP 403 Forbidden
The client then refreshes the Remote Control server token and retries, but continues receiving HTTP 403.
Typical sequence:
connecting to app-server remote control websocket
→ remote control websocket auth failed with HTTP 403 Forbidden
→ refreshing remote control server token
→ reconnect
→ HTTP 403 again
I also observed an occasional refresh failure:
HTTP 503 Service Unavailable
upstream connect error or disconnect/reset before headers
remote connection failure
Connection refused
All account IDs, installation IDs, server IDs, environment IDs, local usernames, and other identifying values have been removed.
This appears to be the same failure mode as this issue, but it is still reproducible on version 26.825.51511.
murtest commentedon Sep 3, 2026
Confirming that this issue still reproduces on a newer Windows build.
Environment
26.901.2854.0Current behavior
The host enrollment succeeds and fresh
server_id/environment_idvalues are created, but the Remote Control WebSocket authentication is rejected repeatedly:Latest reproduced failure:
The application refreshes the Remote Control server token, reconnects, and receives the same
403 Forbidden.Troubleshooting performed
All network paths produce the same Remote Control WebSocket authentication
403.Earlier attempts also occasionally produced the false-positive message asking to ensure that only one ChatGPT instance was running, despite there being only one process tree.
This does not appear to be a DNS, VPN reputation, TCP connectivity, or WebSocket routing problem. The endpoint is reached, enrollment exists, and the failure occurs specifically while authenticating the refreshed server token.
Could this be an entitlement, token claim/audience, selected-account/workspace, or backend enrollment-state mismatch? Please let me know if a sanitized request ID or additional diagnostic fields would help.
aakonovalov commentedon Sep 24, 2026
I can reproduce this on Windows 11 with a newer build as of 2026-09-24.
Environment
The same UI symptom (Remote Control setup does not reach/show the pairing QR) occurs on two Windows 11 PCs. The detailed logs below are from one of them.
Troubleshooting already tried
Relevant sanitized logs
There is a clear contradiction: the desktop app reports a valid ChatGPT account (
authenticatedAccountPresent=true,authMethod=chatgpt), while Remote Control saysremote control requires ChatGPT authentication. Enrollment is already present (has_enrollment=true), but the Remote Control WebSocket is still rejected with HTTP 403.A prior log also contained:
That MFA endpoint error was from an earlier session and may be unrelated; after MFA was enabled and a full sign-out/sign-in with MFA was completed, the 403 behavior remained.
No tokens, account IDs, cookies, installation IDs, or other credentials are included here.
svladimirov978-design commentedon Oct 15, 2026
I am experiencing exactly the same Codex Remote Control issue on Windows.
Environment:
Diagnostics:
has_enrollment=trueI have already enabled MFA, fully signed out of Codex, restarted the app, and signed back in. The error persists.
Could you please investigate this issue and provide a fix or workaround? I need Codex Remote Control to access my local Windows development environment from my iPhone.
lunomaniaolga commentedon Oct 16, 2026
Confirming this is still reproducible on my Windows PC (2026-10-16).
has_enrollment=true. Authentication towss://chatgpt.com/backend-api/wham/remote/control/serverrepeatedly fails withremote control websocket auth failed with HTTP 403 Forbidden; refreshing server token before reconnect. Token refresh does not recover the connection.I submitted diagnostic context via
/feedback:no-active-thread-01a144b0-3ba3-73c2-8f9f-62ece347ab00. Could the team check whether Remote Control is enabled for this account and whether the server-side enrollment or token authorization is rejecting this device?thinganother675-lab commentedon Nov 5, 2026
Additional reproduction on 2026-11-05, matching the enrolled-host WebSocket 403 described here.
Environment:
Observed:
"remote control websocket auth failed with HTTP 403 Forbidden; refreshing server token before reconnect"
Already tried:
Useful comparison: a separate Ubuntu 24.04 VPS using Codex CLI/app-server 0.166.0, authenticated from a copy of this PC's original ChatGPT auth cache, successfully connects to the same phone and has working Remote sessions. This does not prove that the current refreshed tokens are byte-identical, but it suggests that general account access alone does not explain the Windows-host failure.
We have not deleted enrollment rows or reset device identities. No raw auth cache, tokens, account/installation/server IDs, IP addresses, or private logs are included here.
Is there a supported diagnostic or repair for per-host Remote enrollment/server-token authorization in this specific post-enrollment WebSocket 403 case?