Repository navigation
Description
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.
Activity
github-actions commentedon Nov 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
grtninja commentedon Nov 9, 2026
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:
codex remote-control pair --jsonreturns pairing + manual codes with expiry, andremoteControl/status/readreportsstatus: connectedwith a non-null environment ID; Remote pairing fails after successful passkey authentication on Android with macOS host #60347'sremoteControl/pairing/startcompleted witherrorCode=null; [Windows–Android Remote Control] Pairing fails after QR/deep link and client list remains empty #44825's Windows log shows the same call witherrorCode=null.remoteControl/client/listreturns an empty list andremoteControl/pairing/statusreportsclaimed: falseeven after the reported failure; Remote pairing fails after successful passkey authentication on Android with macOS host #60347'sclient/listpolling shows the connected-device count at 0 throughout; [Windows–Android Remote Control] Pairing fails after QR/deep link and client list remains empty #44825 showsnextConnectionCount=0/previousConnectionCount=0.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: falsepairing 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: falsestatus 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
oddessentials commentedon Nov 9, 2026
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?
richardwkj commentedon Nov 10, 2026
nssanta commentedon Nov 10, 2026
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:
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.
oddessentials commentedon Nov 11, 2026
Then I'd stay in Orca and skip the ChatGPT pairing altogether. Orca's docs describe a headless mode for exactly this box:
orca serveowns 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?aitorps commentedon Nov 20, 2026
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).
codex remote-control pair.The host reports Remote Control as
connectedand 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?