Skip to content

Android 1.2026.265 (27): Codex Remote repeatedly returns to “Authorize this phone” after successful browser authorization #48777

Open

Description

@elkowalski1989

I cannot finish pairing my Android phone with Codex running in WSL. The phone opens the browser login, recognizes the correct ChatGPT account, and asks me to authorize access. After I authorize, it briefly shows “Pairing…” and returns to “Allow this phone to access ChatGPT on your computer.” The same cycle repeats on every attempt.

My environment:

  • ChatGPT Android app: 1.2026.265 (27)
  • Computer: Windows with Codex running in WSL
  • Codex CLI: 0.157.1
  • Running app-server daemon: 0.157.1
  • Subscription: ChatGPT Pro
  • Authentication: ChatGPT login
  • The saved Codex login email matches the account used during phone authorization.

To reproduce:

  1. In WSL, run:

    codex remote-control start
  2. The command reports that the machine is available for remote control.

  3. Generate a pairing code:

    codex remote-control pair
  4. Start the Remote pairing flow on Android.

  5. Tap “Authorize this phone.”

  6. Complete the browser login with the same ChatGPT account used by Codex.

  7. Confirm the account and tap “Authorize.”

  8. The phone returns to the app, briefly shows “Pairing…”, and then displays “Allow this phone to access ChatGPT on your computer” again.

  9. Repeating authorization produces the same result.

I expect authorization to complete and the phone to finish pairing with the computer. Instead, the app repeatedly sends me through the login and authorization flow without completing the connection.

I have confirmed the following:

  • The daemon reports that it is running.
  • The CLI and running daemon both report version 0.157.1.
  • The host successfully generates a pairing code.
  • The saved host login email matches the phone login.
  • The reported authenticator-app MFA workaround did not resolve the loop.

These reports appear related:

I have not established whether my failure is in the Android app, the authorization callback, or backend device enrollment. Similar reports on other host operating systems suggest that WSL may not be the cause.

Please investigate the Android Remote authorization and device-enrollment flow for 1.2026.265 (27). Is there a confirmed fixed build or a supported recovery procedure? Please also specify which sanitized diagnostics would help identify the failed step.

Activity

  1. added
    bug
    CLI
    auth
    on Sep 27, 2026
  2. github-actions commented on Sep 27, 2026

    @github-actions
    Contributor
  3. 14udy commented on Sep 28, 2026

    @14udy

    Exact same issue for me running on windows normally.

    Windows app version: 26.924.22138
    Android App: 1.2026.265 (27)

  4. Dashanchik commented on Sep 29, 2026

    @Dashanchik

    same for me with Android 17 Pixel 9 Pro and Mac 26.7.1
    same account (and login method), latest app versions, tried clearing chatgpt, Chrome cache and Android System Webview.

    Environment

    • Phone: Google Pixel 9 Pro
    • Android: 17
    • Desktop: macOS
    • ChatGPT desktop version: 26.924.22138
    • Bundled Codex CLI: 0.158.0-alpha.2.1
  5. rafal-dunaj-sobera commented on Sep 29, 2026

    @rafal-dunaj-sobera

    Same issue for me: after I authorize in the browser, the Android app shows “Pairing…” briefly, then returns to “Authorize this phone” and repeats. My Android ChatGPT app is the latest version available to me (updated September 25). The host is Linux running Codex CLI 0.159.0; the remote-control daemon is running.

  6. mianmian7 commented on Sep 29, 2026

    @mianmian7

    I am seeing the same repeated authorization/pairing loop with the ChatGPT Android app and the Codex desktop app on macOS, after more than ten attempts.

    An additional observation from ChatGPT Settings → Security → Active sessions:

    • My existing Android app session remains listed under the phone's actual model name and is marked as a trusted device.
    • I have observed a separate Android app session labeled Phone appear twice, with timestamps matching my Remote authorization attempts. These entries are also labeled ChatGPT Android App, but do not show the trusted-device marker.
    • The original trusted session remains present; it is not simply renamed to Phone. Pairing still fails to complete and the authorization flow repeats.

    During a roughly three-minute observation of the desktop logs while retrying, remoteControl/pairing/start returned with errorCode=null, followed by dozens of remoteControl/client/list responses with errorCode=null. No explicit pairing-completion event was observed in the monitored logs. An earlier client-list request had failed, but that error did not recur during this retry. These desktop responses do not establish that phone authorization or pairing succeeded.

    Could the additional generic Phone session help identify where authorization or device enrollment is failing? I cannot tell whether this separate session is expected behavior or related to the loop, and am not claiming that the display-name difference causes it.

    I have omitted the exact phone model, account details, session identifiers, and screenshots for privacy.

  7. CompactAIOfficial commented on Sep 29, 2026

    @CompactAIOfficial

    Same. For me its Ubuntu 24 on the host.

  8. Zarakilian commented on Sep 29, 2026

    @Zarakilian

    I have this issue now too.
    Sent an email to support about it and a video recording.

  9. finlaymcnally commented on Sep 30, 2026

    @finlaymcnally

    I also have this issue

  10. krishnansr commented on Sep 30, 2026

    @krishnansr

    Sharing as another datapoint

    Same issue on a Pixel connecting to a MacBook. Both apps are up to date according to their update checks.
    Scanning the QR code opens Google sign-in, then authorization, but pairing never completes, it keeps repeating the sign-in/authorize flow.

  11. Sawyer007 commented on Sep 30, 2026

    @Sawyer007

    Same issue here — reproducible on two different Android phones.

    Environment

    • Phone: Samsung Galaxy S21 Ultra (SM-G998B), Android 15, ChatGPT app 1.2026.265 (also reproduced on a second Android phone)
    • Host: Windows 11 Pro, Codex Desktop (Store package 26.928.1915.0, app version 26.928.20755), native Windows (no WSL)
    • Account: ChatGPT Plus, Personal workspace, Google sign-in. Same account and workspace on phone and desktop (verified in the phone app settings and in the desktop login token).

    Steps / what happens

    1. Desktop → Settings → Connections → new QR code (remoteControl/pairing/start succeeds, errorCode=null).
    2. Phone scans QR → "Allow this phone to access ChatGPT on your computer?" → Authorize this phone.
    3. Chrome Custom Tab opens auth.openai.com → Continue with Google → correct account → consent page "Confirm this is the ChatGPT account you want to use with Codex Remote" shows the correct email → Authorize.
    4. Chrome redirects back to the app (WebRedirectActivity is launched correctly), briefly shows "Pairing…", then returns to "Allow this phone…" again. Tapping it again opens the login page → infinite loop.
    5. Manual pairing ("Pair manually") fails the same way.

    Host side during the attempts

    • The remote-control websocket is Connected the whole time, no warnings or errors.
    • Desktop polls remoteControl/client/list every ~1.5 s after pairing starts; no client ever appears. No pairing claim or error reaches the host.
    • No error in the Android app's logcat either; the failure is silent.

    What I already tried (none helped)

    • Toggling Remote off/on on the desktop.
    • Deleting the local remote_control_enrollments row (with Codex closed) to force re-enrollment — the backend returned the same server/environment IDs.
    • Signing out and back into Codex Desktop.
    • Enabling MFA (authenticator app) on the ChatGPT account, then re-login on the desktop (note: with Google sign-in the new desktop token's amr is only google, so it's unclear whether MFA assurance is applied at all).
    • Checked Android App Links for chatgpt.com domains (verified); Chrome is the default browser.

    Possibly relevant

    This looks like a backend or app-side issue in completing the pairing after the Authorize step, not a host configuration problem.

  12. diannt commented on Sep 30, 2026

    @diannt

    Additional reproduction with diagnostic evidence on ChatGPT Android 1.2026.265, a Pixel 9 Pro XL, and a native Windows CLI host.

    Uploaded feedback thread: 01a0f10e-d331-7611-84e0-81f36f0b2f23

    Environment

    • Phone: Google Pixel 9 Pro XL, Android 17.
    • ChatGPT Android: versionName 1.2026.265, versionCode 2626541, targetSdk 37.
    • Host: native Windows 11 x64, build 10.0.26200; PowerShell 7.6.6.
    • Codex CLI and managed app-server daemon: 0.159.2.
    • Account: ChatGPT Pro; browser authorization uses the same account as the host.
    • Remote host runs through the persistent CLI daemon using codex remote-control start --json.

    Reproduction

    1. Generate a fresh manual pairing code and enter it in ChatGPT Android's Remote setup.
    2. The app displays Authorize this phone.
    3. Complete browser account sign-in and the passcode step successfully.
    4. The browser shows an authorizing spinner and automatically returns to ChatGPT.
    5. ChatGPT briefly displays Pairing, then immediately returns to Authorize this phone.
    6. Repeating authorization produces the same loop.

    The same result was observed with Chrome and with Brave, which was installed solely for a support-requested browser comparison. Browser substitution did not resolve it.

    Host evidence during the failed attempts

    • The persistent remote-control daemon reports connected.
    • remoteControl/pairing/status reports claimed: false for the attempted fresh code.
    • remoteControl/client/list returns an empty list.
    • An earlier desktop/CLI host conflict (409 Conflict: Remote app server already online) was resolved by disabling desktop remote access before these reproductions. The phone loop persisted with the CLI host connected.

    Android callback evidence

    Reproduction timestamp: 2026-09-30 07:19:08 UTC / 00:19:08 America/Los_Angeles.

    Sanitized Android ActivityTaskManager log excerpts:

    09-30 00:19:08.485 I ActivityTaskManager: START ...
      dat=com.openai.chatgpt://auth.openai.com/...
      cmp=com.openai.chatgpt/com.openai.feature.auth.impl.web.WebRedirectActivity
      from uid 10216 (com.android.chrome) ... result code=0
    
    09-30 00:19:08.505 I ActivityTaskManager: START ...
      dat=com.openai.chatgpt://auth.openai.com/...
      cmp=com.openai.chatgpt/com.openai.feature.auth.impl.web.WebAuthenticationActivity
      with LAUNCH_SINGLE_TASK from uid 10638 (com.openai.chatgpt) ... result code=3
    
    09-30 00:19:08.505 W ActivityTaskManager: Duplicate finish request for ...
      com.openai.chatgpt/com.openai.feature.auth.impl.web.WebRedirectActivity
    

    The browser callback reaches ChatGPT's WebRedirectActivity and is forwarded to WebAuthenticationActivity. This confirms browser-to-app delivery; it does not establish successful authorization or pairing. The duplicate-finish warning is an observation, not an established cause.

    Production Android logs did not expose the authorization/pairing HTTP response or an app exception explaining the failure. No app data, account sessions, passkeys, or MFA settings were cleared during this diagnostic session. An OpenAI support case is already open.

    Please correlate the uploaded feedback thread and timestamp with device authorization and the subsequent pairing claim. Which service response or callback-handling failure causes the app to return to Authorize this phone after the browser callback, while the host code remains unclaimed?

  13. 12 remaining items

  14. Dashanchik commented on Oct 1, 2026

    @Dashanchik

    Works now in beta!

  15. an1uk commented on Oct 1, 2026

    @an1uk

    Works now in beta!

    Confirmed. Just updated to the latest Beta in Google Play App store and pairing worked without issues.

  16. Nevanxx commented on Oct 1, 2026

    @Nevanxx

    Same issue

  17. Phantomthedog commented on Oct 2, 2026

    @Phantomthedog

    Confirming another successful recovery after following the Google Play update advice in this comment. Thank you for sharing it.

    My setup:

    • Samsung Galaxy S25 Ultra (SM-S9380), unmodified system, no root or bootloader unlocking, Play Protect certified.
    • ChatGPT Android before the update: 1.2026.265.41.
    • Windows Codex desktop package: 26.928.3736.0.

    Before updating, entering the pairing code briefly showed Pairing, then returned to the Add/Authorize computer flow. Both devices used the same account, and changing networks did not help. Read-only backend checks showed the desktop online but zero enrolled phone clients.

    After updating ChatGPT through Google Play, pairing succeeded. A subsequent backend check on October 2 confirmed one enrolled Android phone with model SM-S9380. The desktop configuration was kept unchanged during troubleshooting.

    I did not record the exact Android build installed after updating, so I am confirming the update method worked rather than claiming a specific fixed build.

  18. khneisser92 commented on Oct 2, 2026

    @khneisser92

    Additional reproduction with a Vivo device and native Windows Codex Desktop.

    Environment

    • Phone: vivo V2337A
    • Android / vivo OS: 16 / 16.0
    • ChatGPT Android: 1.2026.265
    • Host: native Windows
    • Codex Desktop package: 26.930.2377.0
    • Authentication: same ChatGPT account verified on phone and desktop

    Result

    Both QR and manual-code pairing reach the Codex Remote account-confirmation page successfully. After tapping Authorize, the browser callback returns to ChatGPT, but the app immediately returns to Allow this phone to access ChatGPT on your computer? and the phone never appears on the desktop.

    At the failed callback on 2026-10-02 11:43:18 Asia/Beirut (UTC+03:00), Android logcat recorded:

    E/ActivityThread: Activity com.openai.feature.auth.impl.web.WebAuthenticationActivity has leaked ServiceConnection
    E/ActivityThread: android.app.ServiceConnectionLeaked
        at com.openai.feature.auth.impl.web.WebAuthenticationActivity.g(...:27)
        at com.openai.feature.auth.impl.web.WebAuthenticationActivity.i(...:38)
        at com.openai.feature.auth.impl.web.WebAuthenticationActivity.onResume(...:83)
    

    This is only a temporal correlation, not a claim that the leaked connection is the root cause.

    At the same time, the Windows desktop continued reporting:

    savedRemoteConnectionCount=0 totalConnectionCount=0
    codexManagedConnectionCount=0 discoveredConnectionCount=0 nextConnectionCount=0
    

    Troubleshooting already performed

    • Fresh QR codes and manual pairing codes
    • Same account/workspace verified
    • Chrome restored as default browser
    • chatgpt.com and www.chatgpt.com Android app links verified
    • Tested with another browser
    • Cleared ChatGPT app data and signed in again
    • Tested with the Windows RDP session disconnected and active
    • Confirmed the OAuth callback returns into ChatGPT's authentication activity

    The persistent notification saying Codex is connected to cloud remains active, but it does not correspond to a registered desktop client; the desktop client count remains zero.

    The reports that beta 1.2026.272 resolves this are encouraging. Please include this Vivo/native-Windows datapoint when validating the stable Android rollout.

  19. azysle88 commented on Oct 2, 2026

    @azysle88

    Additional reproduction + successful workaround/fix

    Device: Xiaomi 23127PN0CG
    ChatGPT Android production: 1.2026.265
    Chrome: 154.0.8037.57
    Android System WebView: 153.0.8010.36

    On 1.2026.265, Codex Remote pairing consistently entered the same authorization loop described in this issue: scan fresh QR → Authorize this phone → auth.openai.com authentication succeeds → returns to ChatGPT → authorization starts again indefinitely.

    I confirmed that the host/account were healthy because the same account and same Codex host paired successfully with an iPhone.

    I also reproduced the Android failure after rebooting, switching between Wi-Fi and cellular, disabling VPN/private DNS, clearing Chrome cookies/cache, clearing ChatGPT app data and signing in again, and using fresh QR codes.

    The Android Remote notification showed “Connected to Cloud” while pairing still failed.

    Resolution: I joined the Google Play ChatGPT Beta program and updated the same Android device from 1.2026.265 → 1.2026.272. Without changing WebView or other system settings, I force-stopped/reopened ChatGPT, generated a fresh Remote QR code, and pairing succeeded immediately.

    This strongly suggests the regression affecting my device in 1.2026.265 is resolved or bypassed in 1.2026.272.

  20. letohdoorman-cell commented on Oct 3, 2026

    @letohdoorman-cell

    Successful workaround reported on October 3, 2026 — Galaxy Z Fold8 + Mac Studio

    The phone repeatedly cycled through “Authorize this phone” → browser sign-in / authenticator verification → account approval → back to “Authorize this phone”, sometimes briefly showing “Pairing…”. This loop was also captured in a screen recording.

    The device owner reports that pairing finally succeeded after making these changes together on the phone:

    1. Removed the VPN.
    2. Removed Chrome.
    3. Used Samsung Internet for the authorization flow.

    This was more than just selecting a different default browser while leaving Chrome installed. However, “removed Chrome” is the owner's description; we have not verified whether Android uninstalled or disabled the preinstalled package. The specific VPN product was not recorded for this successful attempt.

    Important limitation: these changes were made together, so this is a successful workaround in one setup, not proof that VPN alone, Chrome alone, or Samsung Internet alone caused or fixed the problem. The owner confirmed the successful connection; the final successful handshake was not independently inspected.

    ChatGPT Android 1.2026.265 (versionCode 2626541) was verified earlier during the failure. A beta update was suggested later, but the exact Android app version at the successful attempt has not been verified, so please do not interpret this as proof of a fix specifically on 1.2026.265.

    Sharing this as an additional recovery datapoint for people still stuck in the same loop. It may help investigation of the network/browser combination during Android Remote enrollment.

    Follow-up from the device owner: on the first attempt using Samsung Internet, the flow went to an email-sending step. The owner initially thought it had failed again, but tried once more, and the next attempt completed the connection successfully. In this case, success was on the second attempt after the changes above, not the first.

  21. Redsnow94-star commented on Oct 3, 2026

    @Redsnow94-star

    Additional diagnostic information:
    I submitted an in-app feedback report from the ChatGPT/Codex desktop host regarding this Android Remote pairing regression.
    Session ID: no-active-thread-01a10284-984f-7a10-8bae-ea4ab3f5fe2a
    A/B result:

    • Android ChatGPT 1.2026.265: reproducible Authorize → Pairing… → browser authentication → repeat loop
    • Android ChatGPT 1.2026.258: pairing succeeds immediately
      Same Galaxy Z Fold7, same account/workspace, same Mac host, same Chrome browser, same network and proxy configuration.
      OpenAI Support has also recorded this Session ID for tracking.
  22. cookiessaa2010 commented on Oct 3, 2026

    @cookiessaa2010

    Additional reproduction: Android manual pairing silently resets after browser sign-in

    A user reports the following while pairing ChatGPT on Android with the installed Codex desktop app on Windows. The PC is powered on, awake, and Codex is running.

    1. Open manual pairing on the phone and enter a pairing code.
    2. The official OpenAI sign-in/authorization page opens in the browser.
    3. Sign in using the account email.
    4. The browser redirects back to the mobile app.
    5. A pairing spinner appears for approximately one second, then disappears.
    6. The computer is not added, no error message is shown, and the pairing flow can be started again.

    Retry: On 2026-10-03, the user repeated the flow with a newly obtained pairing code and reported the same result.

    Expected: Pairing completes and the computer becomes available in Remote, or the app displays an actionable error explaining the failed step.

    Diagnostic limits: Android and desktop app versions were not captured. An app update or installation of beta 1.2026.272 has not been confirmed. The browser returning to the app does not by itself establish that authorization or device enrollment succeeded. No device logs are available.

    This report is submitted at the user's explicit request and summarizes their observations.

  23. smartzan63 commented on Oct 5, 2026

    @smartzan63

    I have the same issue, just here to support the thread!

  24. Farhad-Davaripour commented on Oct 5, 2026

    @Farhad-Davaripour

    Joining the ChatGPT Android beta and upgrading from 1.2026.265 to 1.2026.272 fixed the Codex Remote authorization loop on my Samsung Galaxy S26 Ultra. I had already tried a new passkey, authenticator-app MFA, and enabling supported links, but none worked. After updating to the beta, pairing succeeded.

  25. d64d64 commented on Oct 7, 2026

    @d64d64

    It seems 1.2026.272 is now in general release - at least I am not aware of being in any beta - and this problem was fixed for me by this update.

  26. galaxies2018 commented on Oct 9, 2026

    @galaxies2018

    Sharing a resolution that worked in my case: enabling MFA on my ChatGPT account resolved the authorization loop.

    My setup:

    • Samsung Galaxy Z Fold8, ChatGPT Android 1.2026.272.
    • Codex desktop app on macOS, also connected to a Linux server running Codex CLI through the app’s SSH feature.

    After scanning the QR code, I completed browser sign-in and authorization, returned to ChatGPT, briefly saw “Pairing…”, and was sent through authorization again. Switching from Chrome to Samsung Internet did not resolve it.

    What worked:

    1. I tried the “Control this Mac” setup flow.
    2. This flow explicitly prompted me to enable multi-factor authentication (MFA).
    3. I followed the instructions and enabled MFA. Connecting to the Mac then succeeded.
    4. I retried access to the SSH environment, and that worked too.

    The SSH-related connection flow had been failing without showing the MFA requirement. The actionable message only appeared when I tried “Control this Mac.”

    My iPhone and an older Samsung phone had previously connected without me enabling MFA, but I cannot explain that difference or confirm when the requirement began applying to my setup.

    I see that MFA did not help some other people in this thread, so I am not claiming this explains every authorization loop. However, when MFA is required, all affected setup flows should display that requirement and recovery steps instead of silently looping. This also seems relevant to #27167.

  27. cvkn2k6629-sudo commented on Oct 21, 2026

    @cvkn2k6629-sudo

    Additional confirmed workaround: switching the authorization browser to Google Chrome

    I experienced the same symptom: browser sign-in and authorization completed successfully, then returned to the ChatGPT Android app, but pairing did not finish and my phone never appeared in the Windows connected-device list.

    Environment:

    • ChatGPT Android app: 1.2026.286
    • Device: Google Play Protect certified
    • Install source: APKMirror (Google Play reported that the app was unavailable in my region)
    • Host: Windows with ChatGPT Remote

    Resolution: I switched the browser used for the authorization flow to Google Chrome and retried pairing. The pairing then completed successfully.

    I cannot confirm the underlying cause, but this suggests the browser or its handling of the authorization callback can be relevant in at least some cases. I hope this helps other users experiencing the same loop.

  28. cvkn2k6629-sudo commented on Oct 21, 2026

    @cvkn2k6629-sudo

    Clarification to my earlier workaround report: the browser choice was important.

    In my case:

    • ChatGPT's built-in browser did not complete pairing.
    • The phone's default browser also did not complete pairing.
    • I had to explicitly switch/open the authorization flow in Google Chrome. After completing authorization in Chrome and retrying, Remote pairing succeeded.

    Environment remains ChatGPT Android 1.2026.286 on a Play Protect-certified device, paired with Windows ChatGPT Remote. I cannot confirm the underlying cause, but I wanted to clarify that simply using whichever browser opened by default was not enough in my case.

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

    CLIauthbugremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions