Android 1.2026.307: manual Remote pairing fails after browser authorization with headless Linux CLI 0.167.0
Summary
Manual Remote pairing from ChatGPT Android 1.2026.307 to a headless Linux NUC running Codex CLI 0.167.0 repeatedly fails after the browser authorization/login step. This appears similar to #56600; this report adds a headless Linux CLI reproduction. A shared root cause has not been established.
Environment
- Host: headless Linux NUC, no monitor; app-server initialization reports Debian 13, x86_64.
- Codex CLI and running app server: 0.167.0.
- Controller: ChatGPT Android 1.2026.307 (user-reported).
- Android OS version and phone model: not collected.
- Codex is also used through Orca terminals; those originally launched isolated
--no-daemonsessions. Session visibility and the phone pairing failure are separate observations.
Reproduction
- Run an app server with Remote Control enabled on the Linux host.
- Run
command codex remote-control pairto generate a fresh manual pairing code, bypassing the Orca shell function. - Enter the manual code in the Android ChatGPT Remote/Codex flow.
- Complete the browser authorization/login step.
- Return to ChatGPT Android: pairing fails.
Actual result
The Android UI displays Korean text reported by the user:
페어링 실패함 페어링 중 문제가 발생했습니다. 코드를 다시 스캔해 보세요
English meaning: Pairing failed; something went wrong while pairing; try scanning the code again.
Expected result
The Android device completes pairing and can access the connected Linux app server.
Verified host-side observations
During troubleshooting on November 9, 2026:
remoteControl/status/readreturnedstatus: connectedand a non-null environment ID.remoteControl/client/listfor that environment returned an empty list.- A fresh
codex remote-control pair --jsonsuccessfully returned both a pairing code and a manual pairing code with an expiry. remoteControl/pairing/statusfor that manual code returnedclaimed: false, including on the subsequent check after the user reported failure.- The selected host Remote Control logs showed a prior websocket disconnect followed by a successful reconnection. These logs do not establish the cause of the phone failure.
- No Android logcat trace was collected; Android debugging tools are not installed on the host.
These observations confirm code creation and host relay connectivity, not successful phone authorization, token exchange, or device enrollment.
Attempts and separate configuration issue
- Repeated fresh manual codes did not resolve pairing.
- User signed out of ChatGPT Android, signed back in, and retried; failure persisted.
- Initial
codex remote-control startthrough Orca failed because its shell function injected--no-daemon. Usingcommand codexbypassed that function. - The bypassed start command reported an existing app server not managed by the daemon. Pairing-code creation nevertheless succeeded, and the existing server was independently verified as connected.
- Orca's isolation opt-out (
ORCA_CODEX_ISOLATE=0) was added for future terminal sessions; this did not resolve Android pairing. Existing sessions were not interrupted.
Request
Please investigate Android Remote pairing completion after browser authorization in 1.2026.307, including the authorization callback, token exchange, and device enrollment. Is there a supported way to obtain a diagnostic/request ID for this generic Android error, and is headless Linux CLI pairing expected to work with this version?
No pairing codes, credentials, account identifiers, session transcripts, or project content are included.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #60347
Powered by Codex Action
Duplicate-assessment determination (Muse, Dots tracker): #60348 is the same defect as #44825 — group with #44825 (via #60347).
Evidence — identical failure signature across all three reports:
- Same mobile error string: "Pairing failed — Something went wrong while pairing. Try scanning the code again." (#60348, Korean locale) / "Something went wrong while pairing" (#60347) / "Pairing failed — Something went wrong while pairing." (#44825).
- Host starts the pairing session successfully in each: #60348's
codex remote-control pair --jsonreturns pairing + manual codes with expiry, andremoteControl/status/readreportsstatus: connectedwith a non-null environment ID; #60347'sremoteControl/pairing/startcompleted witherrorCode=null; #44825's Windows log shows the same call witherrorCode=null. - Client never registers in each: #60348's
remoteControl/client/listreturns an empty list andremoteControl/pairing/statusreportsclaimed: falseeven after the reported failure; #60347'sclient/listpolling shows the connected-device count at 0 throughout; #44825 showsnextConnectionCount=0/previousConnectionCount=0. - All fail after successful auth (browser authorization in #60348, passkey in #60347, deep-link auth in #44825), on QR and manual code alike, with the same account/workspace on both sides. Repeated fresh codes and Android sign-out/sign-in do not help (#60348).
The host differs again — headless Linux NUC, Codex CLI 0.167.0 here; macOS desktop in #60347; Windows desktop in #44825 — making this the third platform data point for the same server-side phone-registration defect (the authenticated client is not registered by the pairing service), not host-specific code. #60348 adds useful new evidence: a headless-Linux reproduction, the claimed: false pairing status, and host logs showing a websocket disconnect followed by successful reconnection. Also related: #56600 (noted by the reporter as similar) and #45565 (same defect, Windows host, two phones).
Disposition: group with #44825 (earliest, most precisely matching report). The headless-Linux data point and claimed: false status above are worth carrying onto #44825 for the server-side investigation. Close belongs to the author/maintainer — determination only, no close attempted from this lane.
— Muse
If this is the server-side registration failure in #44825, nothing on the NUC is likely to fix it. In the meantime, the box being headless makes a workaround easy: run Codex inside tmux (tmux new -As codex) and SSH in from the phone over Tailscale. That gets you the live session without pairing.
We solved the same need by running the CLIs in a manager process on the Linux box and opening the same page from the phone's browser over Tailscale, so a dropped connection doesn't end the session.
Is the NUC already on a tailnet, or only reachable on the LAN?
It's already on a tailnet. The sessions run on orca - https://www.onorca.dev/
I can try tmux route but I'd rather not depart from using orca. Could you advise?
Jung Wookjae
Schwarzman Scholar 2020 Seoul Linkedin https://www.linkedin.com/in/wookjae-jung-433022124/ / +82-10-7317-8323 / @.***
2026년 11월 9일 (월) 오후 10:57, Odd Essentials @.***>님이 작성:
oddessentials left a comment (openai/codex#60348) https://github.com/openai/codex/issues/60348#issuecomment-6741824194
If this is the server-side registration failure in #44825 https://github.com/openai/codex/issues/44825, nothing on the NUC is likely to fix it. In the meantime, the box being headless makes a workaround easy: run Codex inside tmux (tmux new -As codex) and SSH in from the phone over Tailscale. That gets you the live session without pairing.
We solved the same need by running the CLIs in a manager process on the Linux box and opening the same page from the phone's browser over Tailscale, so a dropped connection doesn't end the session.
Is the NUC already on a tailnet, or only reachable on the LAN?
— Reply to this email directly, view it on GitHub https://github.com/openai/codex/issues/60348?email_source=notifications&email_token=AOE2NRDPVDP6Y5HTXTDCX435YHELLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMNZUGE4DENBRHE2KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-6741824194, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOE2NRHWI5VR34E2TU2DM635YHELLAVCNFSNUABFKJSXA33TNF2G64TZHM4TMNJUGE2TMNBZHNEXG43VMU5TMMRYGAZDAMJSHA4KC5QC . You are receiving this because you authored the thread.Message ID: @.***>
I can reproduce this issue on Linux with ChatGPT Desktop 26.1103.60933 and ChatGPT Android on a TECNO KM6.
Important regression detail: Codex Remote Control previously worked correctly on this exact Linux machine and Android phone.
After clearing the mobile app cache, signing out, and reinstalling the app, the existing connection was lost. All attempts to pair the phone again now fail with "Pairing failed. Something went wrong while pairing."
I have already tried:
- Re-enabling Remote Control and generating fresh QR codes.
- Signing out and back into ChatGPT Android.
- Removing an older Android session from account security settings.
- Repeating the pairing process.
None of these steps resolved the issue.
Please investigate the re-enrollment flow after Android session reset. This is a regression of previously working functionality.
Then I'd stay in Orca and skip the ChatGPT pairing altogether. Orca's docs describe a headless mode for exactly this box: orca serve owns the worktrees, terminals and agent processes, and its mobile companion pairs to it over the tailnet (orca serve --pairing-address <tailnet IP> --mobile-pairing). That path doesn't touch the Codex Remote registration that's failing here, so the pairing bug stops mattering for day-to-day use. Both the remote server and the mobile app are marked beta, so expect rough edges.
Is Orca running on the NUC as orca serve, or as the desktop app you reach from another machine?
I can reproduce this on a Samsung Galaxy Tab A8 (SM-X200) running Android 14 with an Ubuntu 24.04.4 LTS (x86_64) host. Both the Codex CLI and the running managed app server are version 0.170.0. Observed on November 20, 2026 (CET). The tablet is running ChatGPT for Android 1.2026.314 (build 31).
- Generate a fresh pairing code on the host with
codex remote-control pair. - Start pairing in ChatGPT on the tablet and enter the code. I also reproduced the failure using a QR built from the CLI's pairing response.
- Enter the OTP and finish authorizing the ChatGPT account in the browser.
- On return to the Android app, pairing fails. The app shows “Emparellament amb errors” and asks to scan the code again.
The host reports Remote Control as connected and generates fresh manual and QR pairing data successfully. After the failed attempts, the registered-client list still shows the existing Android phone only. The tablet does not appear. I haven't confirmed which part of the post-authorization flow fails.
Is there a request ID or a diagnostic log that would help trace the tablet's enrollment after authorization?