Repository navigation
Description
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
github-actions commentedon Jul 10, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
CarrettaRiccardo commentedon Jul 13, 2026
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
r55w8pyy4h-design commentedon Jul 17, 2026
I bought Macbook neo and its working fine on the same network and the same account i think its a windows serves issue
USVET11B commentedon Jul 27, 2026
I can reproduce the same Windows host-enrollment failure on a newer build.
Pairing code unavailable: Remote control failed to connect, then the app displaysCouldn't update remote control availabilityand switches Allow connections back off.Local evidence:
remoteControl/enablereturns without an app-server error, but immediately afterward repeatedremoteControl/client/listcalls 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-41fdc314991dI have a 36-second screen recording showing the full failure and can provide it if needed.
USVET11B commentedon Jul 27, 2026
Thanks. I will run the requested isolated-network test before resetting the Windows app again.
Already completed before this request:
Current host checks:
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.
USVET11B commentedon Jul 27, 2026
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 rantailscale downsuccessfully 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/enablecompleting without an app-server error, immediately followed byrefresh_remote_control_completed ... nextConnectionCount=0and repeatedremoteControl/client/listcalls 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.
ottovonreiter commentedon Jul 28, 2026
MacOS reproduction: Remote Control pairing unavailable after host enrollment
Environment:
Reproduction:
Pairing code unavailable: remote control pairing is unavailable until enrollment completes.Observed backend/app-server behavior:
Connectedand reportshas_enrollment=true.remoteControl/pairing/startstill returns enrollment incomplete.WebSocket protocol error: Connection reset without closing handshake.Controls already tested:
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.
ottovonreiter commentedon Jul 29, 2026
Fresh macOS retry after restoring a strict single-host state:
Allow connectionsis enabled and Phone is selected.remoteControl/pairing/startreturned error-32600:remote control pairing is unavailable until enrollment completes.fe5f4473-7dad-4299-b3db-fface37c7760.This reproduces after removing the duplicate host condition, so the remaining failure is still the server-side enrollment gate rather than host contention.
YanDevDe commentedon Aug 18, 2026
I'm having exactly the same issue on Windows. With macOS it works smoothly without any issue.
t-boy000 commentedon Aug 27, 2026
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:
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.
julianovmartins commentedon Aug 30, 2026
I encountered the same error while trying to control Codex on my Windows PC from the Codex app on my MacBook:
Environment:
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.
sr4dev commentedon Sep 4, 2026
I was seeing the exact same issue:
Pairing code unavailable: remote control pairing is unavailable until enrollment completes.
Environment
I managed to fix it by going to Windows Settings → Time & language → Date & time, then:
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.
p1r473 commentedon Sep 4, 2026
Fixed by updating my Windows time synchronization
YanDevDe commentedon Sep 4, 2026
Unfortunately with the Time Synchronization Set hasnt fixed at my end yet still. :/
N30-PH commentedon Sep 8, 2026
Windows clock correction restored Codex Remote Control pairing
Confirmed another occurrence of:
remote control pairing is unavailable until enrollment completesEnvironment: 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, butremoteControl/pairing/startstill 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
Measure the actual clock offset, rather than checking only the displayed time zone:
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.
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.
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.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.
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.
1985darti commentedon Sep 9, 2026
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 disconnectedlines 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 theUI 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), capturedimmediately after toggling Allow connections:
There is no 401, 403, 409, or timeout anywhere in the remote-control logs.
codex doctorv0.153.4 reports22 ok · 1 idle · 1 note · 1 warn · 0 fail:The only warning is an unrelated note about verifying Microsoft Defender
exclusions.
One possibly relevant mismatch:
codex doctorreports the desktop app versionas 26.903.8094.0, while every
app_server.client_versionfield in the logsreads 26.903.61454.
Additional steps I tried beyond the original list, none of which changed the
behavior:
remote_control_enrollmentsinstate_5.sqlite.codex-mobile-has-connected-devicein addition to theelectron-remote-control-*andcodex-mobile-setup-completedkeys from.codex-global-state.json.installation_idfile to a fresh UUID.codexprocesses before each attempt.Note on the rotation: before rotating
installation_id, deleting the localenrollment row and re-enabling remote control returned the same
server_idand
environment_idas before, which suggests the backend re-issues theexisting environment record keyed on installation identity rather than creating
a fresh one. Rotating the UUID did not help either.
Given that the transport reports
Connectedwhile the UI reports incompleteenrollment, 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.
Dalosuuu commentedon Oct 1, 2026
Windows 11 trying to connect from phone, syncing the computer time fixed it.
anna66123813-netizen commentedon Oct 5, 2026
Additional Windows + iPhone reproduction, still present on the current Windows package as of 2026-10-05.
Environment:
Behavior:
Troubleshooting already performed:
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.
Snozas1983 commentedon Oct 18, 2026
I can reproduce a very similar Remote Control enrollment/pairing failure on a Windows PC (October 18, 2026).
Environment
Allow members to discover and control devices remotely) is enabledReproduction
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.