Repository navigation
Description
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-controldaemon,auth_mode = chatgpt, single personal account (no workspace/SSO) - Host connectivity: remote-control websocket to
wss://chatgpt.com/backend-api/wham/remote/control/servershows Connected throughout (server_idsrv_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:
- ChatGPT app → Settings → Remote control → screen says "Allow this phone to access ChatGPT on your computer?" with an Authorize this phone button.
- Tapping it opens the browser → OpenAI sign-in → authorization dialog (shows the correct, matching account).
- Approving bounces back into the ChatGPT app — landing on the same "Authorize this phone" screen. No error is ever shown.
- 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/startcycles, all stray app-server processes killed, clean single daemon-managed server verified viaps+ socket inspection. Loop unchanged. - Android App Links: the
tt.chatgpt.comdomain 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:
- ChatGPT app → Settings → Remote control → screen says "Allow this phone to access ChatGPT on your computer?" with an Authorize this phone button.
- Tapping it opens the browser → OpenAI sign-in → authorization dialog (shows the correct, matching account).
- Approving bounces back into the ChatGPT app — landing on the same "Authorize this phone" screen. No error is ever shown.
- 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
github-actions commentedon Jul 31, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Zetarcos commentedon Jul 31, 2026
This is similar, possibly related, but the symptoms, systems and versions seem different.
Zetarcos commentedon Jul 31, 2026
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.
Andingfangt commentedon Sep 4, 2026
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.
mrmaiko commentedon Sep 26, 2026
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.
mmartin-tt commentedon Sep 26, 2026
I am unable to do this because I have Advanced Security enabled with Daybreak access.
mrmaiko commentedon Sep 26, 2026
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
Correlated diagnostic timeline (UTC)
20:32:40.833: Mac desktop log recordsremoteControl/pairing/startwitherrorCode=null.20:32:44: Android opens the authorization flow in a Chrome Custom Tab.20:32:58: Android delivers the browser redirect to ChatGPT’sWebRedirectActivity.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.
lennysogood commentedon Sep 27, 2026
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
up_to_dateReproduction
Already tried, without success
tt.chatgpt.comswitch.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.
4 remaining items
insomnia12270319 commentedon Sep 29, 2026
Additional reproduction on Windows + iQOO (2026-09-29, UTC+8)
Environment
26.924.2738.01.2026.265tt.chatgpt.comlinks.Reproduction
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 pollingremoteControl/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.comapp 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.
amatt76-bit commentedon Sep 29, 2026
I have the exact same issue
6wolf666 commentedon Sep 29, 2026
I’m seeing the same Android Remote Control authorization loop.
Setup:
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.
basilevh commentedon Sep 29, 2026
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.
finlaymcnally commentedon Sep 30, 2026
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.
Molpich commentedon Sep 30, 2026
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....
qhqdkwnj commentedon Sep 30, 2026
2026-09-30에 Windows 데스크톱 앱에서도 같은 Android Remote 승인 반복 증상이 재현됩니다.
환경
재현 순서
Cloud는 이용 가능하지만 휴대폰 목록에 Windows PC 이름이 나타나지 않아 PC의 프로젝트와 기존 로컬 채팅에 접근할 수 없습니다.
확인한 내용
remoteControl/pairing/start요청은errorCode=null로 응답했습니다.codex doctor에서는 데스크톱 앱 초기화, 인증 구성, 일반 HTTP 연결 및 Responses WebSocket 점검이 통과했습니다. 이 점검 결과를 Remote relay 인증 성공으로 해석하지는 않았습니다.승인 후 Android 기기 등록이 완료되지 않는 단계와 지원되는 복구 절차를 확인 부탁드립니다. 현재 정보만으로 클라이언트 콜백 처리 문제인지 서버 기기 등록 문제인지 확정하지 못했습니다.
gpalaciosblanco-ux commentedon Sep 30, 2026
Same problem since last Saturday with Honor V6 magic, looks like is a general issue
mrmaiko commentedon Sep 30, 2026
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.
bhj1101 commentedon Sep 30, 2026
My GPT called me here
gpalaciosblanco-ux commentedon Oct 1, 2026
With the last desktop version upgrade the remote control has been fixed, at least in my device
Dashanchik commentedon Oct 1, 2026
works with beta now
mrmaiko commentedon Oct 1, 2026
It's working for me now as well. I also added a yubikey. Thank heavens
VladimirRadev commentedon Oct 5, 2026
still isn't working, when do you plan to resolve finally ?
VladimirRadev commentedon Oct 7, 2026
finally fixed for samsung s23