Skip to content

[Android] "Authorize this phone" loops forever after ChatGPT app reinstall — web auth completes, app never consumes the approval, host receives zero pairing claims #36268

Open

Description

@Zetarcos

What version of the Codex App are you using (From “About Codex” dialog)?

codex-cli 0.146.0 on MAC and 1.2026.209 (12) Android App

What subscription do you have?

Free

What platform is your computer?

MAC for codex running remote-control and Android for ChatGPT app

What issue are you seeing?

[Android] "Authorize this phone" loops forever after ChatGPT app reinstall — web auth completes, app never consumes the approval, host receives zero pairing claims

Environment

  • Phone: Android, ChatGPT app (installed fresh today, 2026-07-30, latest Play Store build)
  • Host: macOS 26.5.1 (Apple Silicon M4), Codex CLI 0.146.0 (standalone), codex remote-control daemon, auth_mode = chatgpt, single personal account (no workspace/SSO)
  • Host connectivity: remote-control websocket to wss://chatgpt.com/backend-api/wham/remote/control/server shows Connected throughout (server_id srv_e_6a6b..., registered as host name)

Summary

After uninstalling and reinstalling the ChatGPT Android app (done to fix the Remote entry missing from the sidebar), the device-authorization step loops indefinitely:

  1. ChatGPT app → Settings → Remote control → screen says "Allow this phone to access ChatGPT on your computer?" with an Authorize this phone button.
  2. Tapping it opens the browser → OpenAI sign-in → authorization dialog (shows the correct, matching account).
  3. Approving bounces back into the ChatGPT app — landing on the same "Authorize this phone" screen. No error is ever shown.
  4. Repeat forever. The pairing-code entry step is never reached; Settings → Remote control shows disconnected, no paired connections.

Before the reinstall, remote view was reachable on this phone via push notification, so the account/host/feature were provably working.

What the host logs prove

Across ~10 authorize attempts over ~2.5 hours, the host's app-server logs show remoteControl/pairing/start for each locally minted code and zero pairing-claim / device-connect events — the phone's approval never produces any backend interaction with the host. The remote-control websocket stayed Connected the whole time.

Ruled out (each verified, in order)

  • Stale mobile app: full uninstall + fresh install (this is what started the loop).
  • Server-side device/session state: chatgpt.com → Security → Log out of all devices, fresh sign-ins on both phone and host (codex login). Loop unchanged.
  • Host daemon state: codex remote-control stop/start cycles, all stray app-server processes killed, clean single daemon-managed server verified via ps + socket inspection. Loop unchanged.
  • Android App Links: the tt.chatgpt.com domain was found disabled in Open-by-default supported links (plausibly reinstall fallout) and was manually enabled. Loop unchanged — and the flow does return to the app, so the callback link itself works.
  • Stale app UI state: force-quit + reopen after authorize. Loop unchanged.
  • Phone reboot: done. Notably, the reboot restored the missing Remote entry in the app sidebar (the original symptom that prompted the reinstall) — but the authorize loop is unchanged, from both the sidebar Remote flow and the Settings → Remote control flow. The two symptoms evidently have different causes.
  • Clock skew: phone date/time on automatic.
  • Fresh pairing codes minted on the host for every attempt (all unused — flow never reaches code entry).

Separate host-side bug found while debugging (worth its own look)

When the remote-control daemon's socket is down, running any codex CLI command (including codex remote-control stop/pair) triggers the CLI's auto-boot fallback, which pkill -9s existing app-servers and boots a generic (non-daemon-managed) app-server on the control socket. Subsequent codex remote-control start then fails with:

Error: app server is running but is not managed by codex app-server daemon

…so the natural recovery commands re-break the daemon in a loop. Workaround found: kill all codex.*app-server processes, then run codex remote-control start immediately, before any other codex command. (CODEX_SSH_SKIP_APP_SERVER_BOOT=true also defuses the auto-boot.)

Expected

Approving the browser auth dialog should complete device authorization and advance the app to the pairing-code step (or paired state).

Actual

App returns to "Authorize this phone" with no error; backend never registers the device; host never sees a claim.

What steps can reproduce the bug?

After uninstalling and reinstalling the ChatGPT Android app (done to fix the Remote entry missing from the sidebar), the device-authorization step loops indefinitely:

  1. ChatGPT app → Settings → Remote control → screen says "Allow this phone to access ChatGPT on your computer?" with an Authorize this phone button.
  2. Tapping it opens the browser → OpenAI sign-in → authorization dialog (shows the correct, matching account).
  3. Approving bounces back into the ChatGPT app — landing on the same "Authorize this phone" screen. No error is ever shown.
  4. Repeat forever. The pairing-code entry step is never reached; Settings → Remote control shows disconnected, no paired connections.

What is the expected behavior?

pairing completes and shows the connected remote computer on the remote section of the ChatGPT app.

this was working but while trying to debug why the Remote selection on the ChatGPT app side bar was not showing we removed the connection and then could not recover and re-pair.

Additional information

No response

Activity

  1. added
    app
    on Jul 31, 2026
  2. added
    bug
    CLI
    auth
    on Jul 31, 2026
  3. github-actions commented on Jul 31, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. Zetarcos commented on Jul 31, 2026

    @Zetarcos
    Author

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

    Powered by Codex Action

    This is similar, possibly related, but the symptoms, systems and versions seem different.

  5. Zetarcos commented on Jul 31, 2026

    @Zetarcos
    Author

    Update: I was able to Pair my Windows machine Codex Desktop App 26.721.81911 jul 28 via QR code the the same phone/install/ver of the android app that failed with the Mac CLI version. This after failing multiple times using the Codex CLI app on my Mac via pairing code. Will re-attempt with Mac today.

    Ok now after Pairing my windows machine successfully I re-attempted to pair the Mac and now it worked easily. I am now paired and not bitten by this bug so I can continue working.

    One item to note. My Mac CLI app of codex never asked to enable MFA but the windows Desktop Codex did ask to enable MFA prior to the successful pairing.

    Anyway I cannot repro the bug above any longer.

    Side Note: The original bug I was trying debug when I lost the ability to Pair was an issue where the "Remote" side panel option was not appearing after pairing completed. There was a workaround that the notification panel showed remote connected and clicking that notification would bring up the Remote interface page but this was not robust. I used ChatGPT to try and debug the issue and it led me through so many repair attempts maybe the local/server state got into an undefined condidtion. I don't see a bug about missing Remote on the Github android app.

  6. Andingfangt commented on Sep 4, 2026

    @Andingfangt

    I had the same Android authorization loop when pairing with a Linux Codex CLI host.

    Enabling MFA with an authenticator app on my ChatGPT account, then signing in again and using a fresh pairing code, resolved the issue for me. Remote Control is now working normally.

    This may be a useful workaround for others experiencing the same loop.

  7. mrmaiko commented on Sep 26, 2026

    @mrmaiko

    Im seeing the same “Authorize this phone” loop while pairing my Samsung Galaxy S25 Ultra with my MacBook.

    After I scan a fresh QR code on the MacBook, ChatGPT opens an in-app browser and asks me to log in. I sign in and approve access, but I’m returned to the phone’s Allow/Authorize screen. Tapping Authorize opens the in-app browser at the ChatGPT login screen again. Pairing never completes, and I don’t see an error message.

    This started after the September 25 Codex outage, though I can’t tell whether it’s related. I’ve updated the apps, uninstalled and reinstalled ChatGPT on the phone, and cleared active sessions. I also enabled both “Open supported links” and the individual "tt.chatgpt.com" supported address in Android settings, then tried a fresh QR code. The loop persists.

    Phone: Samsung Galaxy S25 Ultra, Android 16, ChatGPT for Android 1.2026.265.
    Host: MacBook running the ChatGPT/Codex desktop app.

    Please let me know if there are specific client logs or diagnostics I can provide to help identify why the completed browser authorization isn’t being accepted by the Android app.

  8. mmartin-tt commented on Sep 26, 2026

    @mmartin-tt

    I had the same Android authorization loop when pairing with a Linux Codex CLI host.

    Enabling MFA with an authenticator app on my ChatGPT account, then signing in again and using a fresh pairing code, resolved the issue for me. Remote Control is now working normally.

    This may be a useful workaround for others experiencing the same loop.

    I am unable to do this because I have Advanced Security enabled with Daybreak access.

  9. mrmaiko commented on Sep 26, 2026

    @mrmaiko

    Adding additional information:

    I cannot pair ChatGPT on my Samsung Galaxy S25 Ultra with ChatGPT/Codex Desktop on my Mac. After scanning a fresh QR code, I tap Authorize this phone, complete the browser sign-in and approval, and return to the ChatGPT Android app. The app still shows Authorize this phone. Pairing never reaches code entry or shows an error.

    Environment at reproduction, September 26, 2026

    • Phone: Samsung Galaxy S25 Ultra (SM-S938U), Android 16, ChatGPT 1.2026.265
    • Mac: macOS 26.6.2, Apple Silicon, ChatGPT Desktop 26.924.22138 (build 11645), bundled Codex CLI 0.158.0-alpha.2.1
    • Advanced Account Security is enabled for Daybreak access.

    Correlated diagnostic timeline (UTC)

    • 20:32:40.833: Mac desktop log records remoteControl/pairing/start with errorCode=null.
    • 20:32:44: Android opens the authorization flow in a Chrome Custom Tab.
    • 20:32:58: Android delivers the browser redirect to ChatGPT’s WebRedirectActivity.
    • 20:33:01: Another authorization page opens. The phone remains unpaired on Authorize this phone.

    The Mac can start pairing, and Android delivers the browser redirect to the ChatGPT app. The Android production log does not expose a decisive HTTP response or enrollment error, so I cannot determine whether the app rejects the result or the backend declines device enrollment.

    I have tried updated apps, reinstalling ChatGPT on Android, clearing active sessions, enabling Android’s supported links including tt.chatgpt.com, fresh QR codes, and the desktop/web sign-out and sign-in sequence described in [#40611](#40611 (comment)). The loop persists.

    Please inspect the Android client enrollment and post-approval authorization exchange for this account around 2026-09-26 20:32:58 UTC, including any Advanced Account Security policy check. Can you identify why the redirect returns to the app without advancing pairing? I can provide further sanitized diagnostics through a secure support channel if you specify what is needed.

  10. lennysogood commented on Sep 27, 2026

    @lennysogood

    I can reproduce the same Android authorization loop with a Windows desktop host on 2026-09-27 (Taiwan time), so this does not appear limited to a macOS or Linux host.

    Environment

    • Phone: Samsung Galaxy S26 Ultra (SM-S9480)
    • ChatGPT Android app: 1.2026.265 (26), current version offered by Google Play
    • Host: Windows ChatGPT/Codex desktop app 26.924.22138 (build 11645, production channel); in-app update check reports up_to_date
    • Same ChatGPT account on both devices

    Reproduction

    1. On Windows, open Settings → Connections → Control this PC and generate a fresh pairing QR code.
    2. Start pairing from ChatGPT Remote on Android and scan the code.
    3. The app opens a browser sign-in/authorization flow.
    4. After signing in, Android returns to ChatGPT and displays “Authorizing”.
    5. When that finishes, it opens the browser sign-in page again. The cycle repeats. The phone never appears in the desktop connected-device list.

    Already tried, without success

    • Restarted the desktop app.
    • Confirmed both mobile and desktop apps are current.
    • Enabled Android “Open supported links”, including the separate tt.chatgpt.com switch.
    • Tried opening the authorization page in an external browser.
    • Signed out of the Android app, force-stopped it, cleared its cache (not app data), signed back in, and retried with a fresh QR code.

    Expected: authorization completes and the Android device is paired.
    Actual: browser → app “Authorizing” → browser sign-in loop; desktop device list stays empty.

    No QR codes, account identifiers, or authentication URLs/tokens are included here. Please investigate the Android post-authorization / pairing handoff for this current app version; let me know if sanitized diagnostics would be useful.

  11. 4 remaining items

  12. insomnia12270319 commented on Sep 29, 2026

    @insomnia12270319

    Additional reproduction on Windows + iQOO (2026-09-29, UTC+8)

    Environment

    • Windows Codex Desktop: 26.924.2738.0
    • ChatGPT for Android: 1.2026.265
    • Phone: iQOO
    • MFA is enabled.
    • The phone and desktop are confirmed to use the same ChatGPT account.
    • Android is allowed to open supported tt.chatgpt.com links.
    • Remote Control starts successfully on the desktop.

    Reproduction

    1. Scan the pairing QR code generated by Codex Desktop.
    2. ChatGPT shows “Authorize this phone.”
    3. Tap it, complete sign-in and authorization in the browser, and return to ChatGPT.
    4. The app again shows “Authorize this phone.” The cycle repeats and pairing never completes.

    Host-side observations
    At 2026-09-29 09:18:47 (UTC+8), the desktop log recorded remoteControl/pairing/start. About two seconds later, it began polling remoteControl/client/list; 37 polls continued through 09:20:04. No corresponding pairing claim or successful device-registration event was observed in the available local desktop logs. Whether the service has a pending enrollment has not been verified.

    I found no second independent Codex Desktop instance and no clear local multi-account conflict. A separate HTTP proxy connectivity issue on the PC was resolved, but the Android authorization loop remains.

    Already tried without success: updating ChatGPT for Android, confirming the same account, enabling the tt.chatgpt.com app link, completing authorization in Chrome, enabling MFA, signing back into the Android app, generating a fresh QR code, and switching networks.

    Could maintainers investigate the Android post-authorization enrollment/claim flow and advise what sanitized diagnostics could determine whether enrollment reached the service or remained pending?

    Related: #48555

    No raw logs, QR codes, access tokens, cookies, MFA secrets, or account identifiers are included.

  13. amatt76-bit commented on Sep 29, 2026

    @amatt76-bit

    Adding additional information:

    I cannot pair ChatGPT on my Samsung Galaxy S25 Ultra with ChatGPT/Codex Desktop on my Mac. After scanning a fresh QR code, I tap Authorize this phone, complete the browser sign-in and approval, and return to the ChatGPT Android app. The app still shows Authorize this phone. Pairing never reaches code entry or shows an error.

    Environment at reproduction, September 26, 2026

    • Phone: Samsung Galaxy S25 Ultra (SM-S938U), Android 16, ChatGPT 1.2026.265
    • Mac: macOS 26.6.2, Apple Silicon, ChatGPT Desktop 26.924.22138 (build 11645), bundled Codex CLI 0.158.0-alpha.2.1
    • Advanced Account Security is enabled for Daybreak access.

    Correlated diagnostic timeline (UTC)

    • 20:32:40.833: Mac desktop log records remoteControl/pairing/start with errorCode=null.
    • 20:32:44: Android opens the authorization flow in a Chrome Custom Tab.
    • 20:32:58: Android delivers the browser redirect to ChatGPT’s WebRedirectActivity.
    • 20:33:01: Another authorization page opens. The phone remains unpaired on Authorize this phone.

    The Mac can start pairing, and Android delivers the browser redirect to the ChatGPT app. The Android production log does not expose a decisive HTTP response or enrollment error, so I cannot determine whether the app rejects the result or the backend declines device enrollment.

    I have tried updated apps, reinstalling ChatGPT on Android, clearing active sessions, enabling Android’s supported links including tt.chatgpt.com, fresh QR codes, and the desktop/web sign-out and sign-in sequence described in [#40611](#40611 (comment)). The loop persists.

    Please inspect the Android client enrollment and post-approval authorization exchange for this account around 2026-09-26 20:32:58 UTC, including any Advanced Account Security policy check. Can you identify why the redirect returns to the app without advancing pairing? I can provide further sanitized diagnostics through a secure support channel if you specify what is needed.

    I have the exact same issue

  14. 6wolf666 commented on Sep 29, 2026

    @6wolf666

    I’m seeing the same Android Remote Control authorization loop.

    Setup:

    • One ChatGPT/OpenAI account only (no account switching)
    • Android phone + Mac host
    • Remote Control shows “Authorize this phone”
    • Browser authorization succeeds
    • After returning to the ChatGPT app, it immediately shows “Authorize this phone” again

    I also enabled MFA/authenticator and retried the flow, but it did not help. Repeating the authorization with a fresh attempt produces the same loop.

    So in my case this does not appear to be caused by multiple accounts or missing MFA.

  15. basilevh commented on Sep 29, 2026

    @basilevh

    Same here. Android Remote Control authorization loops after Google sign-in and entering the 2FA code, returning to “Allow this phone to access ChatGPT on your computer?” Chrome is already used.

  16. finlaymcnally commented on Sep 30, 2026

    @finlaymcnally

    I have this issue as well

    Android Remote Control authorization loops after Google sign-in and entering the 2FA code, returning to “Allow this phone to access ChatGPT on your computer?” Chrome is already used.

  17. Molpich commented on Sep 30, 2026

    @Molpich

    Same issue here on Poco F8 Ultra. On my previous / 2nd phone the setup worked but I have the same authorization loop on the new phone. Enabling MFA also didn't resolve the issue unfortunately....

  18. qhqdkwnj commented on Sep 30, 2026

    @qhqdkwnj

    2026-09-30에 Windows 데스크톱 앱에서도 같은 Android Remote 승인 반복 증상이 재현됩니다.

    환경

    • Windows 11 Professional, x64
    • 데스크톱 앱: 26.928.2636.0
    • 번들 Codex CLI: 0.159.2
    • 구독: ChatGPT Pro
    • 휴대폰: Android. ChatGPT 앱은 2026-09-30 오전에 업데이트했으며, 정확한 모바일 버전 번호는 아직 확인하지 못했습니다.

    재현 순서

    1. PC 앱의 ‘이 PC 제어’ 설정에서 새 QR을 발급합니다.
    2. 휴대폰으로 QR을 스캔하면 “이 휴대폰이 컴퓨터의 ChatGPT에 액세스하도록 허용할까요?” 화면이 표시됩니다.
    3. ‘이 휴대폰 승인하기’를 누르면 auth.openai.com 로그인 화면이 열립니다.
    4. 로그인 후 Codex Remote에 사용할 계정 확인 화면에서 ‘승인’을 누릅니다.
    5. 연결이 완료되지 않고 위 로그인·승인 화면들이 반복됩니다.

    Cloud는 이용 가능하지만 휴대폰 목록에 Windows PC 이름이 나타나지 않아 PC의 프로젝트와 기존 로컬 채팅에 접근할 수 없습니다.

    확인한 내용

    • PC에 저장된 ChatGPT 계정과 휴대폰의 승인 화면에 표시된 계정이 일치합니다.
    • Android의 ‘지원되는 링크 열기’는 이미 켜져 있습니다.
    • VPN이나 광고 차단 앱은 사용하지 않습니다.
    • 휴대폰 네트워크를 Wi-Fi에서 LTE/5G로 바꿔도 동일합니다.
    • PC의 최근 remoteControl/pairing/start 요청은 errorCode=null로 응답했습니다.
    • codex doctor에서는 데스크톱 앱 초기화, 인증 구성, 일반 HTTP 연결 및 Responses WebSocket 점검이 통과했습니다. 이 점검 결과를 Remote relay 인증 성공으로 해석하지는 않았습니다.

    승인 후 Android 기기 등록이 완료되지 않는 단계와 지원되는 복구 절차를 확인 부탁드립니다. 현재 정보만으로 클라이언트 콜백 처리 문제인지 서버 기기 등록 문제인지 확정하지 못했습니다.

  19. gpalaciosblanco-ux commented on Sep 30, 2026

    @gpalaciosblanco-ux

    Same problem since last Saturday with Honor V6 magic, looks like is a general issue

  20. mrmaiko commented on Sep 30, 2026

    @mrmaiko

    The desktop app received an update and the authorization loop persists after updating and reinstalling both apps. My earlier diagnostics show the browser callback reaches ChatGPT, but pairing does not complete. Reports #49271 and #48777 show the same failure boundary, including an unclaimed pairing code on a connected host. Please provide a private diagnostic method or correlate my account’s post-approval device-enrollment request to identify the actual rejection reason. Advanced Account Security is enabled; please confirm whether its policy affects this request.

  21. bhj1101 commented on Sep 30, 2026

    @bhj1101

    My GPT called me here

  22. gpalaciosblanco-ux commented on Oct 1, 2026

    @gpalaciosblanco-ux

    With the last desktop version upgrade the remote control has been fixed, at least in my device

  23. Dashanchik commented on Oct 1, 2026

    @Dashanchik

    works with beta now

  24. mrmaiko commented on Oct 1, 2026

    @mrmaiko

    It's working for me now as well. I also added a yubikey. Thank heavens

  25. VladimirRadev commented on Oct 5, 2026

    @VladimirRadev

    still isn't working, when do you plan to resolve finally ?

  26. VladimirRadev commented on Oct 7, 2026

    @VladimirRadev

    finally fixed for samsung s23

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

    CLIappauthbugremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions