Skip to content

Android 1.2026.307: manual Remote pairing fails after browser authorization with headless Linux CLI 0.167.0 #60348

Open

Description

@richardwkj

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-daemon sessions. Session visibility and the phone pairing failure are separate observations.

Reproduction

  1. Run an app server with Remote Control enabled on the Linux host.
  2. Run command codex remote-control pair to generate a fresh manual pairing code, bypassing the Orca shell function.
  3. Enter the manual code in the Android ChatGPT Remote/Codex flow.
  4. Complete the browser authorization/login step.
  5. 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/read returned status: connected and a non-null environment ID.
  • remoteControl/client/list for that environment returned an empty list.
  • A fresh codex remote-control pair --json successfully returned both a pairing code and a manual pairing code with an expiry.
  • remoteControl/pairing/status for that manual code returned claimed: 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 start through Orca failed because its shell function injected --no-daemon. Using command codex bypassed 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

  1. added
    bug
    CLI
    auth
    app-server
    on Nov 9, 2026
  2. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. grtninja commented on Nov 9, 2026

    @grtninja

    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:

    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

  4. oddessentials commented on Nov 9, 2026

    @oddessentials

    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?

  5. richardwkj commented on Nov 10, 2026

    @richardwkj
    Author
  6. nssanta commented on Nov 10, 2026

    @nssanta

    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.

  7. oddessentials commented on Nov 11, 2026

    @oddessentials

    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?

  8. aitorps commented on Nov 20, 2026

    @aitorps

    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).

    1. Generate a fresh pairing code on the host with codex remote-control pair.
    2. 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.
    3. Enter the OTP and finish authorizing the ChatGPT account in the browser.
    4. 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?

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

    CLILinuxapp-serverauthbugremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions