Skip to content

Android Codex Remote pairing loops back to login after "Authorize this phone" #49179

Open

Description

@artursbalcers-dot

Summary

Codex Remote pairing from the ChatGPT Android app to a Windows desktop repeatedly loops back to authentication and never completes.

Environment

  • Phone: Google Pixel (fully updated)
  • ChatGPT Android app: 1.2026.265
  • Desktop: Windows
  • ChatGPT account originally created with Continue with Google
  • MFA: already enabled
  • I have previously switched between ChatGPT accounts on the mobile app
  • I reinstalled the Android app after encountering the issue

Reproduction steps

  1. Open Remote in the ChatGPT Android app.
  2. Tap I'm signed in on desktop.
  3. The embedded auth.openai.com WebView correctly shows the intended ChatGPT account.
  4. Tap Authorize for Codex Remote.
  5. The app shows Pairing....
  6. The app then displays Allow this phone to access ChatGPT on your computer?
  7. Tap Authorize this phone.
  8. auth.openai.com opens again inside the ChatGPT app WebView, but instead of continuing the existing authenticated session, it shows Log in or sign up.
  9. Signing in again repeats the flow instead of completing pairing.

Expected behavior

After tapping Authorize this phone, the authenticated session should be preserved and the phone should finish pairing with the Windows desktop.

Actual behavior

The second authorization step loses the authenticated session and returns to the login screen, creating an authentication loop.

Troubleshooting already attempted

  • Confirmed the same ChatGPT/OpenAI account is being used on phone and desktop
  • Reinstalled the ChatGPT Android app
  • Cleared/reset app state
  • Chrome set as default browser
  • Retried with a fresh pairing request
  • Tried opening auth in Chrome instead of the embedded WebView
  • MFA is already enabled
  • Phone and apps are fully updated

Additional clue

I have switched accounts in the ChatGPT mobile app in the past. This may be relevant if stale device/account enrollment state can survive account switching or pairing attempts.

I can provide screenshots showing:

  1. Remote setup screen
  2. Account confirmation on auth.openai.com
  3. Pairing screen
  4. "Authorize this phone" screen
  5. The unexpected login screen that appears immediately afterward

Activity

  1. added
    bug
    auth
    windows-os
    on Sep 29, 2026
  2. conorbronsdon commented on Sep 30, 2026

    @conorbronsdon

    I am experiencing the same authorization-loop failure on a Google Pixel when trying to connect remotely to my Windows desktop: after "Authorize this phone," the flow returns to login and pairing does not complete. This prevents me from continuing my desktop Codex session from my phone.

    Pixel model, Android version, and app versions have not yet been recorded for my device.

  3. NamanJain1902 commented on Sep 30, 2026

    @NamanJain1902

    The host is successfully connected to Remote Control before pairing. The failure occurs only when completing Android device authorization. The host receives remoteControl/pairing/start, but the WebSocket connection is reset before the device enrollment/claim completes.

    Host:
    Ubuntu 24.04
    Codex CLI: 0.159.2
    App-server daemon: 0.159.2
    Authentication: ChatGPT login
    MFA: enabled
    
    Host remote-control status:
    status: connected
    timedOut: false
    
    Pairing: Samsung A73, Chatgpt latest version: : 1.2026.265, updated on 27th Sept 2026
    1. `codex remote-control pair`
    2. Enter manual pairing code on Android
    3. Browser opens
    4. Authenticate with the same ChatGPT account
    5. Tap "Authorize this phone"
    6. Android briefly shows "Pairing..."
    7. Returns to "Authorize this phone"
    8. Repeats indefinitely
    
    Host logs during the failed attempt:
    
    remoteControl/pairing/start connection_id=ConnectionId(26)
    
    websocket receive error:
    WebSocket protocol error: Connection reset without closing handshake
    
    dropping message for disconnected connection:
    ConnectionId(26)
    
    remoteControl/pairing/start connection_id=ConnectionId(27)
    
    websocket receive error:
    WebSocket protocol error: Connection reset without closing handshake
    

    I also tried:

    fresh pairing codes
    restarting the Remote Control daemon
    clearing ChatGPT Android app data and signing in again
    enabling MFA
    enabling tt.chatgpt.com under Android supported links
    confirming the host remains status: connected

    So the observed sequence appears to be:

    Android authorization
            ↓
    remoteControl/pairing/start reaches host
            ↓
    WebSocket connection reset
            ↓
    connection disconnected
            ↓
    Android returns to "Authorize this phone"
    
  4. chriscummings100 commented on Sep 30, 2026

    @chriscummings100

    I am seeing this also, and as with the other users I have tried every possible combination of time/date syncing, MFA options, reinstalls, restarts etc. The attached analysis is output from codex after connecting with adb and capturing logcat output + browser output during the login flow with several attempts.

    Sideloading the older ChatGPT 1.2026.237 on the android app fixed the issue - this is a recent regression. The analysis includes details on what changed in logcat when using the older, functioning build.

    Codex summary:
    Update: pairing works with an older Android app build.

    • Fails: ChatGPT 1.2026.265 (2626541).
    • Works: ChatGPT 1.2026.237 (2623716), uploaded to APKMirror on 31 August 2026.
    • Clearing local app data on the newer version did not resolve the issue. Uninstalling it and installing the older build did.
    • Same phone, Android version, account, workspace and Chrome version.
      Comparing the logs, both builds receive the browser authentication callback and successfully perform Android Keystore operations. However, the failing build deletes its Codex remote-control device key 2.076 seconds after callback delivery, then returns to the pairing button. The working older build has no matching key deletion during the captured period and proceeds to successful device authentication.
      The Chrome classpath-mismatch and file-sync errors appear in both attempts, including the successful one.
      This suggests a regression in the newer Android build’s handling of pairing after the browser callback. The key deletion appears consistent with cleanup after failure; the underlying token-exchange or pairing error is not exposed in the available logs.

    codex-android-pairing-filtered.txt

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

    authbugremotewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions