Skip to content

Remote Control enrollment never completes on Windows #32164

Open

Description

@r55w8pyy4h-design

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

26.623.101652

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 11 64-bit

What issue are you seeing?

Codex Remote Control enrollment fails on Windows.

The desktop app shows:

“Pairing code unavailable: remote control pairing is unavailable until enrollment completes.”

The enrollment never completes, so no pairing code or QR code is generated.

I tested the following:

  • Multiple ChatGPT accounts, including a new account
  • A completely new Windows user profile
  • Home Ethernet connection
  • Mobile hotspot connection
  • MFA enabled
  • Signing out and signing back in
  • Repairing and reinstalling the ChatGPT/Codex Windows app
  • Clearing the local Remote Control enrollment state from .codex-global-state.json
  • Installing the latest Wi-Fi driver
  • Running the Windows user profile as Administrator
  • Allowing devices to control the computer when prompted

The same error remains on every account and network.

The application logs also showed:

“remote control websocket reader disconnected”
“WebSocket protocol error: Connection reset without closing handshake”
“remote control websocket writer was stopped”

The issue appears to occur while registering this Windows computer as a Remote Control host.

Latest Feedback ID:

no-active-thread-019f4e62-876a-7c51-911a-590ab2f47743

What steps can reproduce the bug?

Feedback ID: no-active-thread-019f4e62-876a-7c51-911a-590ab2f47743

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Jul 10, 2026
  2. added
    bug
    windows-os
    connectivity
    on Jul 10, 2026
  3. CarrettaRiccardo commented on Jul 13, 2026

    @CarrettaRiccardo

    Happening in MacOS too

    Update: it was happening in app after i had set two-factor auth in the web; had to log out from the app and log back in to make the issue disappear

  4. r55w8pyy4h-design commented on Jul 17, 2026

    @r55w8pyy4h-design
    Author

    Happening in MacOS too

    I bought Macbook neo and its working fine on the same network and the same account i think its a windows serves issue

  5. USVET11B commented on Jul 27, 2026

    @USVET11B

    I can reproduce the same Windows host-enrollment failure on a newer build.

    • Codex Desktop: 26.721.4979.0
    • Embedded local app-server reported by the desktop log: 0.146.0-alpha.3.1
    • Trigger: Settings > Connections > Control this PC > Allow connections > Add
    • Actual result: the pairing dialog displays Pairing code unavailable: Remote control failed to connect, then the app displays Couldn't update remote control availability and switches Allow connections back off.
    • The failure occurs before the iPhone can scan or enter a pairing code.
    • SSH connections from the same PC work normally.
    • WinHTTP proxy: direct access, no proxy configured.
    • Reproduced July 27, 2026 at approximately 05:54 to 05:55 Pacific.

    Local evidence: remoteControl/enable returns without an app-server error, but immediately afterward repeated remoteControl/client/list calls and refreshes produce zero remote-control clients. The PC maintains an outbound connection to OpenAI, so this looks like a remote-control enrollment/relay failure rather than a local network or phone issue.

    In-app feedback was uploaded successfully:
    no-active-thread-019fa3c6-f7eb-75a0-b28b-41fdc314991d

    I have a 36-second screen recording showing the full failure and can provide it if needed.

  6. USVET11B commented on Jul 27, 2026

    @USVET11B

    Thanks. I will run the requested isolated-network test before resetting the Windows app again.

    Already completed before this request:

    • Confirmed the Microsoft Store Codex app is current: 26.721.4979.0.
    • Repaired a malformed local Codex configuration and verified it parses correctly.
    • Backed up and cleared the stale local remote-control enrollment once, then restarted Codex. The problem persisted.
    • Updated the SSH-discovered VPS Codex runtime from 0.132.0 to 0.145.0. This did not restore phone pairing, and current failures occur before the phone receives a pairing code.

    Current host checks:

    • WinHTTP proxy: direct access, no proxy configured.
    • Windows user proxy: disabled. I have no TLS-inspection proxy installed or configured.
    • Codex maintains outbound TCP 443 connections to OpenAI while the failure occurs.
    • Windows Firewall does not have a restrictive outbound policy configured for the active profiles.
    • Tailscale is currently running as a network overlay, but it is not configured as an exit-node route. I will temporarily stop it for the hotspot test.

    The remaining test is to connect the PC to an iPhone hotspot, with Tailscale stopped, then retry Settings > Connections > Control this PC > Allow connections > Add. I will report that result here before considering a Windows app Reset and reboot, since Reset clears local application data.

  7. USVET11B commented on Jul 27, 2026

    @USVET11B

    Result of the requested clean-network test: failed identically.

    I connected the Windows PC to an Android cellular hotspot (SSID Verizon-SM-G930V-7E78, 90% signal), then ran tailscale down successfully before reproducing the failure. No proxy, VPN overlay, home router, or TLS-inspection path was active for this attempt.

    At 09:55 to 09:57 Pacific on July 27, Settings > Connections > Control this PC > Allow connections > Add still showed the same pairing-code failure and turned Allow connections back off.

    Fresh logs again show remoteControl/enable completing without an app-server error, immediately followed by refresh_remote_control_completed ... nextConnectionCount=0 and repeated remoteControl/client/list calls with no remote-control client. This rules out the requested network, VPN, and proxy conditions.

    I restored Tailscale afterward. The remaining prescribed local step is a Windows App Reset plus reboot. I will do that next only after confirming it is acceptable because it clears the desktop app cache and sign-in state.

  8. ottovonreiter commented on Jul 28, 2026

    @ottovonreiter

    MacOS reproduction: Remote Control pairing unavailable after host enrollment

    Environment:

    • macOS 15.5 (24F74), Mac Mini
    • ChatGPT Desktop 26.721.41059 (build 5848)
    • Embedded app-server 0.146.0-alpha.3.1
    • Standalone Codex 0.145.0 used only as a diagnostic control
    • iPhone ChatGPT app signed into the same account/workspace

    Reproduction:

    1. ChatGPT Desktop > Settings > Connections.
    2. Enable Allow connections.
    3. Click Add and keep Phone selected.
    4. Pairing dialog spins, then reports: Pairing code unavailable: remote control pairing is unavailable until enrollment completes.

    Observed backend/app-server behavior:

    • Host receives a server ID and environment ID.
    • Desktop remote websocket reaches Connected and reports has_enrollment=true.
    • remoteControl/pairing/start still returns enrollment incomplete.
    • In a standalone-only control run, the pairing request coincides with WebSocket protocol error: Connection reset without closing handshake.

    Controls already tested:

    • Signed out and back into ChatGPT Desktop.
    • Fully quit and reopened the app.
    • Confirmed same account/workspace on Mac and iPhone.
    • Closed the Windows ChatGPT client.
    • Verified direct reachability to ChatGPT/OpenAI endpoints.
    • Installed the official standalone Codex component.
    • Tested with Desktop as the only app-server.
    • Tested with standalone daemon as the only app-server.
    • Removed a duplicate local app-server condition; Desktop then connected successfully, but pairing remained unavailable.
    • Repeated attempts remain identical well beyond 10 minutes.

    No public tunnel, proxy, or VPN is involved in this setup. Chat and other Codex functionality work normally. This appears to be a backend enrollment state where the server/environment records exist and the websocket can connect, but the pairing endpoint does not consider enrollment complete.

  9. ottovonreiter commented on Jul 29, 2026

    @ottovonreiter

    Fresh macOS retry after restoring a strict single-host state:

    • ChatGPT Desktop remains the only app-server/Remote Control host; the standalone diagnostic daemon was stopped before this attempt.
    • ChatGPT's built-in updater reports 26.721.41059 is the newest version available.
    • Allow connections is enabled and Phone is selected.
    • Retried at 2026-07-29T01:03:45Z.
    • remoteControl/pairing/start returned error -32600: remote control pairing is unavailable until enrollment completes.
    • Request ID: fe5f4473-7dad-4299-b3db-fface37c7760.
    • No QR code or pairing code was issued.

    This reproduces after removing the duplicate host condition, so the remaining failure is still the server-side enrollment gate rather than host contention.

  10. YanDevDe commented on Aug 18, 2026

    @YanDevDe

    I'm having exactly the same issue on Windows. With macOS it works smoothly without any issue.

  11. t-boy000 commented on Aug 27, 2026

    @t-boy000

    I am seeing the same issue on Windows 11.

    Remote Control shows:
    “Pairing code unavailable: remote control pairing is unavailable until enrollment completes.”

    I reset the local Remote Control state, including:

    • electron-local-remote-control-installation-id
    • electron-local-remote-control-environment-id
    • electron-remote-control-config-migration-completed
    • codex-mobile-has-connected-device

    After restarting Codex, the state is recreated, but Remote Control still never enrolls.

    Current desktop logs repeatedly show:
    savedRemoteConnectionCount=0
    totalConnectionCount=0
    nextConnectionCount=0
    previousConnectionCount=0
    creationFailureCount=0

    The app continuously logs:
    refresh_remote_control_started
    refresh_remote_control_completed

    but never creates a Remote Control connection.

    Windows 11, Microsoft Store Codex app.

  12. julianovmartins commented on Aug 30, 2026

    @julianovmartins

    I encountered the same error while trying to control Codex on my Windows PC from the Codex app on my MacBook:

    Remote control pairing is unavailable until enrollment completes.

    Environment:

    • Remote host: Windows 11 Pro
    • Windows Codex app version: 26.825.6671.0
    • Controlling device: MacBook running the Codex app
    • Windows time zone: UTC−03:00

    No pairing code was generated, either for a phone or another computer. Updating the app, restarting it, and disabling/re-enabling remote control did not help.

    The Windows clock turned out to be approximately three hours ahead, although the time zone was already correct.

    Windows automatic time synchronization was failing, so I used Codex to correct the system time through the command line, using NTP measurements as a reference. The time zone was not changed.

    After correcting the clock, pairing worked. No reinstall, credential reset, or firewall changes were needed. This was a one-time correction; the automatic time synchronization issue remains unresolved.

    Accurate system time matters for secure connections and authentication because certificates and authentication tokens can have time-based validity checks. A clock that is several hours ahead could interfere with those checks. However, I cannot confirm which internal validation failed in Codex—the observation is that correcting the clock resolved pairing in my case.

    This may not explain every occurrence of this error, but checking the system clock is worth considering. A more specific error message indicating a possible clock mismatch would have made troubleshooting much easier.

  13. sr4dev commented on Sep 4, 2026

    @sr4dev

    I was seeing the exact same issue:
    Pairing code unavailable: remote control pairing is unavailable until enrollment completes.

    Environment

    • Windows 11 Pro 64-bit
    • ChatGPT Plus
    • Codex App: 26.901.31953

    I managed to fix it by going to Windows Settings → Time & language → Date & time, then:

    • Enabled Set time automatically
    • Enabled Set time zone automatically
    • Clicked Sync now

    After doing this and reopening Codex, Remote Control enrollment completed successfully and the pairing code appeared.
    I'm not sure whether the important part was the time zone setting or the clock synchronization itself, but synchronizing the Windows date/time fixed the issue immediately for me.
    This might be worth checking for other Windows users hitting this enrollment error.

  14. p1r473 commented on Sep 4, 2026

    @p1r473

    Fixed by updating my Windows time synchronization

  15. YanDevDe commented on Sep 4, 2026

    @YanDevDe

    Unfortunately with the Time Synchronization Set hasnt fixed at my end yet still. :/

    Image
  16. N30-PH commented on Sep 8, 2026

    @N30-PH

    Windows clock correction restored Codex Remote Control pairing

    Confirmed another occurrence of:

    remote control pairing is unavailable until enrollment completes

    Environment: Codex desktop on Windows, Microsoft Store package 26.901.6511.0; desktop client reported 26.901.51231. MFA was already enabled.

    The remote-control WebSocket reached Connected, but remoteControl/pairing/start still returned error -32600 and no QR code. Restarting the app/computer, toggling remote control, and signing out and back in did not resolve it.

    Clock measurements against both time.windows.com and time.cloudflare.com showed the Windows clock was approximately 1,673 seconds (27 minutes 53 seconds) ahead. Windows Time reported Local CMOS Clock, unsynchronized status, and no successful synchronization. Reconfiguring the NTP peers and restarting W32Time succeeded, but resynchronization still failed with “no time data was available.”

    We applied a one-time clock correction using the measured offset from an elevated PowerShell session. A subsequent NTP measurement showed approximately 0.12 seconds of remaining offset. After reopening Codex and retrying phone pairing, the QR code appeared and the user confirmed success.

    Region-independent troubleshooting (Windows):

    This method applies in any country or time zone when an incorrect system clock is the cause. NTP compares absolute time using UTC; it does not require selecting Brazil, Brasilia, UTC-03:00, or the time zone of the NTP server. Keep the time zone appropriate to your own location and its daylight-saving rules. Do not change an already-correct time zone to compensate for an incorrect clock.

    Microsoft reference: https://learn.microsoft.com/en-us/windows-server/networking/windows-time-service/how-the-windows-time-service-works

    1. Measure the actual clock offset, rather than checking only the displayed time zone:

      w32tm /stripchart /computer:time.windows.com /dataonly /samples:3
      w32tm /stripchart /computer:time.cloudflare.com /dataonly /samples:3
      w32tm /query /status

      These public servers are examples, not region-specific requirements. If they are unreachable on your network, use a trusted reachable time server, or your organization's approved time source on a managed computer. A timeout is not a clock-offset measurement. Compare several samples, ideally from two independent trusted sources.

    2. Open Windows Settings > Time & language > Date & time. Check the date and your local time zone, enable automatic time, and select Sync now. UI labels vary by Windows language. If the time zone was already correct, leave it unchanged.

    3. If automatic synchronization fails, an administrator can apply a one-time correction based on the freshly measured offset. In w32tm /stripchart, a negative offset means the local clock is ahead and needs to move backward; a positive offset means it is behind and needs to move forward. Use the sign and magnitude measured on YOUR computer. Do not copy our 1,673-second correction, add/subtract your UTC time-zone offset, or repeatedly apply the same correction. Decimal separators and output text can differ by Windows language; do not blindly parse localized output. Administrator rights are required to set the system time.

    4. Repeat the measurements: the offset should now be close to zero (ours was about 0.12 seconds; this is an observation, not a documented Codex acceptance threshold). Fully exit and reopen Codex, then retry Settings > Connections > Control this PC > Add > Phone. The QR code should be tested again after the clock correction.

    5. If a one-time correction restores pairing, separately repair automatic time synchronization and check the clock again after a reboot. A small measured offset does not prove that the Windows Time service is synchronized. If the clock is already accurate and pairing still fails, this workaround does not establish the cause; investigate other enrollment/authentication failures.

    Scope: QR-code generation was visibly restored. This does not establish which internal time-dependent validation failed, or that clock correction resolves every instance of this error. Automatic Windows Time synchronization remained unresolved in this case.

    Related report and earlier clock-correction observations: #32164

    Acknowledgements: Thanks to Luiz Ferreira and N30 for their contribution to this troubleshooting effort and confirmation of the successful workaround, and to the earlier issue commenters who reported clock synchronization as a possible remedy.

    No pairing QR code, credentials, account identifiers, or raw private logs are included in this report.

  17. 1985darti commented on Sep 9, 2026

    @1985darti

    Still reproducing on Codex Desktop for Windows 26.903.61454 (Windows 11,
    ChatGPT Personal account, ja-JP). Same UI message, same
    websocket writer was stopped / reader disconnected lines in the logs.

    I want to add one data point that isn't in the original report: on my machine
    enrollment actually succeeds and the websocket reaches Connected, yet the
    UI still refuses to generate a pairing code. So "enrollment never completes"
    may be describing the UI state rather than the backend state.

    Sanitized log sequence from logs_2.sqlite (identifiers redacted), captured
    immediately after toggling Allow connections:

    INFO enroll     no persisted remote control enrollment found
    INFO enroll     persisted remote control enrollment: server_id=<redacted>, environment_id=<redacted>
    INFO websocket  connecting to app-server remote control websocket ... has_enrollment=true
    INFO websocket  connected to app-server remote control websocket
    INFO websocket  remote control websocket status changed previous_status=Connecting next_status=Connected
    INFO remote_control  remote control enable requested desired_state_changed=false current_status=Connected
    

    There is no 401, 403, 409, or timeout anywhere in the remote-control logs.

    codex doctor v0.153.4 reports 22 ok · 1 idle · 1 note · 1 warn · 0 fail:

    • websocket: connected, HTTP 101 Switching Protocols
    • reachability: provider endpoints reachable
    • network: no proxy env vars, no system proxy
    • state: all databases integrity ok

    The only warning is an unrelated note about verifying Microsoft Defender
    exclusions.

    One possibly relevant mismatch: codex doctor reports the desktop app version
    as 26.903.8094.0, while every app_server.client_version field in the logs
    reads 26.903.61454.

    Additional steps I tried beyond the original list, none of which changed the
    behavior:

    • Deleted all rows from remote_control_enrollments in state_5.sqlite.
    • Removed codex-mobile-has-connected-device in addition to the
      electron-remote-control-* and codex-mobile-setup-completed keys from
      .codex-global-state.json.
    • Rotated the installation_id file to a fresh UUID.
    • Confirmed no proxy or VPN is in use.
    • Fully terminated all desktop app and codex processes before each attempt.

    Note on the rotation: before rotating installation_id, deleting the local
    enrollment row and re-enabling remote control returned the same server_id
    and environment_id as before, which suggests the backend re-issues the
    existing environment record keyed on installation identity rather than creating
    a fresh one. Rotating the UUID did not help either.

    Given that the transport reports Connected while the UI reports incomplete
    enrollment, could the gating condition for showing the pairing code be checking
    a different signal than the enrollment/websocket state? A log line naming the
    specific condition that is not satisfied would make this diagnosable.

    Happy to provide a fuller sanitized log if useful.

  18. Dalosuuu commented on Oct 1, 2026

    @Dalosuuu

    Windows 11 trying to connect from phone, syncing the computer time fixed it.

    Image
  19. anna66123813-netizen commented on Oct 5, 2026

    @anna66123813-netizen

    Additional Windows + iPhone reproduction, still present on the current Windows package as of 2026-10-05.

    Environment:

    • Windows x64 host
    • ChatGPT/Codex desktop package: OpenAI.Codex 26.930.3930.0
    • ChatGPT Plus, personal workspace
    • iPhone ChatGPT mobile app
    • Same ChatGPT account/workspace on phone and PC

    Behavior:

    • Settings → Connections → Control this PC → Allow connections
    • Remote Control fails with “Unable/Couldn’t update remote control availability”
    • The availability state does not persist / the connection cannot be established from the phone
    • The user has been seeing this behavior since at least 2026-09-19

    Troubleshooting already performed:

    • Fully restarted the desktop app
    • Changed proxy/VPN nodes
    • Tested global proxy mode
    • Normal ChatGPT/Codex connectivity otherwise works
    • Network/proxy changes did not resolve the Remote Control failure

    This continues to reproduce on 26.930.3930.0, so it does not appear to be resolved by updating to the current Windows build. Please investigate Remote Control enrollment / relay state on Windows. No account IDs, tokens, pairing codes, or other sensitive identifiers are included here.

  20. Snozas1983 commented on Oct 18, 2026

    @Snozas1983

    I can reproduce a very similar Remote Control enrollment/pairing failure on a Windows PC (October 18, 2026).

    Environment

    • Latest installed ChatGPT/Codex Windows desktop app (exact build number not yet captured)
    • ChatGPT Business workspace
    • Remote-control workspace permission (Allow members to discover and control devices remotely) is enabled
    • Local Codex/Work permission is enabled
    • SMS MFA has been successfully configured

    Reproduction

    1. Open desktop app > Settings > Connections > Control this PC.
    2. Turn on Allow connections — it is now enabled and remains on.
    3. Click Add under “Add device to control this PC remotely”.
    4. The Add button shows a loading spinner briefly, then returns to its original state.
    5. No pairing dialog, QR code, eight-character code, or error message appears.
    6. On iPhone, Remote Control requests an eight-character pairing code, which the desktop app never provides.

    This prevents pairing the iPhone even though workspace permissions and MFA are set up. Initially the Allow connections toggle did not react at all; after authentication changes it can be enabled, but Add still fails silently.

    Expected: Clicking Add generates a pairing code / opens the pairing flow, or displays an actionable error.

    Please investigate the Windows Remote Control host enrollment/pairing flow and surface the underlying failure instead of silently resetting the Add button.

    No private account details, security codes, or screenshots with sensitive information included.

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

    appbugconnectivityremotewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions