Skip to content

[Bug][Android Remote] Pairing succeeds in browser but returns to “Authorize this phone” #50248

Open

Description

@Events-Mate-Apps

Summary

Codex Remote pairing on Android does not complete. Authentication/authorization succeeds in the browser, the webview closes, but the ChatGPT Android app returns to the initial “Authorize this phone” pairing screen instead of registering the device.

The same Mac/account works with iOS Remote.

Environment

  • Host: macOS
  • Codex CLI: codex-cli 0.159.3
  • Remote Control: experimental codex remote-control
  • Client: ChatGPT Android app
  • iOS client with the same Mac/account: works

Reproduction

This reproduces with both QR pairing from Codex Desktop and manual pairing from Codex CLI.

CLI/manual-code reproduction

  1. Log into Codex CLI successfully.
  2. Start Remote Control using codex remote-control start.
  3. Run codex remote-control pair.
  4. Enter the generated short-lived pairing code on the Android device.
  5. Complete authorization in the web browser/webview.
  6. Authorization reports success.
  7. The webview closes.
  8. ChatGPT Android returns to “Authorize this phone” instead of completing pairing.

Expected

After successful authorization, the Android device should become paired and show/access the Remote sessions from the Mac.

Actual

The Android client loops back to the beginning of the pairing flow.

Additional signal

Because:

  • the same Mac/account works from iOS, and
  • Android fails identically with both QR pairing and the CLI-generated manual pairing code,

this does not appear specific to QR scanning or Codex Desktop. It appears to be in the Android post-authorization/pairing completion flow.

CLI capabilities confirmed

codex remote-control --help on 0.159.3 exposes start, stop, and pair.

Activity

  1. added
    bug
    auth
    on Oct 2, 2026
  2. aetherxeg-source commented on Oct 2, 2026

    @aetherxeg-source

    A useful integrity distinction in this pairing flow is authorization success != device-binding completion.

    The browser can prove that an account authorized a pairing transaction without proving that the Android client actually consumed that transaction and became bound to the intended host/device relationship.

    I would represent the flow with a single immutable pairing transaction identity:

    pairing request -> user authorization -> client redemption -> device/host binding committed -> client acknowledgement

    Each step should be independently observable. The UI should only leave “Authorize this phone” after the binding commit/acknowledgement, not merely because browser authorization returned success.

    A good negative test is to authorize successfully, then drop/delay the redemption or final acknowledgement. The system should preserve a typed intermediate state and allow safe retry of the same transaction; it must not create a second binding, silently consume the code, or report the phone as paired without a committed binding record.

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

    authbugremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions