Repository navigation
Description
Summary
After a desktop app was signed into account B and then back into account A on the same machine, pairing an Android phone with account A loops forever. After scanning the QR code, tapping Authorize this phone and completing the browser sign-in, the app returns to the same "Allow this phone to access ChatGPT on your computer?" screen with no error, and the desktop never receives a claim. This matches #39698 (trigger) and #36268 (symptom); this issue collects all findings in one place.
Environment
- Desktop: ChatGPT Desktop 26.924.22138 on Linux (Ubuntu 26.04), bundled Codex 0.158.0-alpha.2.1
- Phone: ChatGPT for Android 1.2026.265 on a Google-certified stock Android 17 phone (Play Integrity is not a factor; ChatGPT itself works normally)
- Personal accounts; the host's remote-control connection stays connected throughout
Trigger
The desktop app was signed into account B for a while, then signed back into account A (same machine, same Codex home). Phone pairing for account A then looped at "Authorize this phone" (browser sign-in completes, app returns to the same screen, host never sees a claim).
What the backend showed
The desktop's single remote-control installation was registered as an environment under both accounts. Account B still had an offline environment for the same installation ID, left over from when the desktop was signed into B. Account A had its own online environment for that installation. Every failed attempt also left pending_enrollment clients on account A (two per attempt) that never completed.
What was cleared (the loop is not confirmed fixed)
- With account B's credentials:
DELETE /backend-api/wham/remote/control/environments/{env_id}for the stale environment whoseinstallation_idmatched the desktop now used by account A (HTTP 204).GET .../wham/remote/control/environmentslists them withinstallation_idandonline. - Removed account B's rows from the desktop's local
remote_control_enrollmentstable (state_5.sqlitein the Codex home), after a backup. - Removed the stale
pending_enrollmentclients (DELETE .../wham/remote/control/clients/{client_id}).
Ruled out
The number of linked phones (all were removed), DNS filtering and TLS interception, and the host's remote-control connection (connected throughout).
Request to OpenAI
When a desktop installation signs into a different account, the backend (or the app) should retire that installation's environment on the previous account, or the phone authorization should report an explicit account/installation conflict instead of silently looping. Related: #36268, #23112.
Additional technical detail
- Two enrollments per failed attempt, one per success: every failed "Authorize this phone" attempt creates two
pending_enrollmentclients about one second apart. Every successful pairing on the same phone, on both accounts, before and after this regression, created exactly one client. This suggests the Android app starts device enrollment twice and then completes (or fails to complete) the wrong one. - Silent failure after the security re-check: the Android app (1.2026.265) includes handling for a rejected step-up token during Remote enrollment ("Remote-control enrollment requires interactive password and MFA step-up", a step-up-token-rejected exception, and "device-key challenge does not match local enrollment"). The loop looks like one of these failing without any message to the user.
- App-link verification: on the affected phone, Android reports the ChatGPT app's
tt.chatgpt.comlink domain aslegacy_failure. All other ChatGPT and OpenAI domains areverified. The browser redirect still reaches the app'sWebRedirectActivityand thenWebAuthenticationActivity, so the redirect is delivered. Another reporter on [Android] "Authorize this phone" loops forever after ChatGPT app reinstall — web auth completes, app never consumes the approval, host receives zero pairing claims #36268 saw the same state. - Host side: the desktop's
remoteControl/pairing/startsucceeds, and while the QR code is shown the desktop pollsremoteControl/client/listabout once a second. No enrolled client ever appears, and no pairing claim reaches the host. - Second process on the same installation: a headless
codex remote-controlprocess sharing the same Codex home was also registered. It stood by with HTTP 409 ("Remote app server already online") while the desktop held the connection. Pausing it during an attempt did not change the result.
Activity
github-actions commentedon Sep 26, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Neo-niu commentedon Sep 28, 2026
Additional reproduction on macOS + Xiaomi Android, with a successful iPhone control test.
ADB logcat observations during a complete reproduction on 2026-09-28 (relative timing; callback URL, credentials and device identifiers omitted):
This establishes that Chrome's callback reaches the app; it does NOT establish that the step-up token was accepted or enrollment completed. Release-build logcat did not expose an enrollment HTTP response or a specific token/device-key rejection, so the underlying cause remains unconfirmed.
pm get-app-linksreports tt.chatgpt.com as legacy_failure, while chatgpt.com and the other listed OpenAI domains are verified. The observed callback used the com.openai.chatgpt custom scheme and reached the app, so the tt.chatgpt.com result alone does not explain this reproduction.Could maintainers advise how to obtain a sanitized diagnostic for the Android step-up/enrollment result, or check whether account/device enrollment state needs repair? MFA enrollment is not an available workaround for this case because it was already enabled. No raw authentication logs, account identifiers, QR codes, tokens, or serial numbers are attached.
felipesgt commentedon Sep 29, 2026
I can reproduce what appears to be the same issue.
Host
Failing device
Control test
I generated a fresh pairing code from the same Windows host and tried it on an iPhone 16 Pro. The iPhone paired successfully and Remote Control works normally with the same PC.
So the host-side Remote Control connection is functional, while the Android enrollment fails to complete.
I previously verified that the Codex daemon is connected and the Windows host is reachable. During the failing Android attempts, no successfully enrolled Android client appeared.
I can provide additional logs or reproduce the issue while collecting diagnostics if that would help.
kimbad1992 commentedon Sep 29, 2026
I can reproduce the same enrollment loop on Windows, without relying on the cross-account/stale-environment trigger described in the issue.
Environment:
2512BPNDAG)Observed behavior:
Each failed attempt creates exactly two
pending_enrollmentclients approximately two seconds apart.I performed two controlled server-side experiments:
Both variants still returned to “Authorize this phone.” This suggests that duplicate pending rows are a symptom, not merely a backend conflict between the two rows.
Android ActivityTaskManager logs show that the authentication callback is delivered successfully:
WebRedirectActivity.WebAuthenticationActivity.result code=3.Duplicate finish requestforWebRedirectActivity.MainActivityis displayed again.enrolled_device_key.Additional controls that did not change the result:
This reproduction suggests that Android 17/HyperOS exposes an enrollment state/callback lifecycle bug in ChatGPT Android 1.2026.265. The app appears to lose or reject the local enrollment context after the successful step-up callback, before
enroll/finish.It would help if the app surfaced whether the failure is:
step-up-token-rejected,ohjime commentedon Sep 29, 2026
Also running into this Issue. Just got a new Android Phone for my ChatGPT Pro 5x Plan. Feeling very disappointed that I can't use the Remote Feature which is why I got the plan in the first place.
1KOD commentedon Sep 30, 2026
I'm experiencing the same issue when trying to manage/use OpenAI Codex from a mobile device.
During the authorization/login process, the authorization page gets stuck in a redirect loop and never completes successfully. Because of this, I'm unable to finish the authentication process from mobile.
The issue appears to be the same as described here.
It would be great if the Codex team could investigate this, as being able to authorize and manage Codex from mobile is important for remote usage.
Device: Android
Browser / Environment: Mobile browser / ChatGPT mobile environment
I can provide additional logs, screenshots, or reproduction details if needed.
different55 commentedon Sep 30, 2026
Can reproduce on Android with a macOS host.
nickbeth commentedon Sep 30, 2026
Can reproduce on Android with a Linux host as well.
zekikaraca commentedon Sep 30, 2026
I am also stuck in the same loop with Android to MacOS.
bautistaib commentedon Sep 30, 2026
I’m seeing the same “Authorize this phone” loop on Windows, with the same Android app version reported here.
Environment
OpenAI.Codex 26.928.1915.026.928.20755, build12246, production channel; updater reports up to date.1.2026.265, versionCode26265413.0.302Reproduction
Local diagnostics
wss://chatgpt.com/backend-api/wham/remote/control/server.remoteControl/pairing/startreturnserrorCode=null. This establishes that the start RPC succeeds, not that enrollment completes.com.openai.feature.auth.impl.web.WebRedirectActivity, then being forwarded toWebAuthenticationActivity. No app crash was recorded.Two failed attempts have these callback timestamps:
WebRedirectActivity; forwarded at00:44:23.569 UTC.WebRedirectActivity; forwarded at00:49:34.609 UTC.The second attempt used mobile data with Android Private DNS disabled. It produced the same loop.
Callback delivery is observable, but the captured logs do not establish whether the authorization code/token exchange or enrollment request succeeds.
Other unsuccessful tests
I have not verified whether my attempts create duplicate
pending_enrollmentrecords or stale cross-account environments.Could maintainers correlate the UTC timestamps above with the Remote authentication/enrollment backend? Can the duplicate pending-enrollment condition also occur without an account switch?
8 remaining items
ohjime commentedon Oct 1, 2026
@arielgoes Im running Ubuntu as well (26.924.51851). Updating the Android Mobile App is what did it for me.
arielgoes commentedon Oct 1, 2026
@ohjime That's weird. I reinstalled both the Desktop and Mobile apps. Same issue. My mobile app was already using the latest version, and so was the Desktop app.
pmackey2 commentedon Oct 1, 2026
@arielgoes what version of the mobile app are you using?
In the Play store, I'm part of the beta program. I'm possibly running a newer version.
arielgoes commentedon Oct 1, 2026
@pmackey2 I'm not part of the beta program. My version is 1.2026.265. Your mobile version ends with 272. So, there must be a hotfix that was not yet dispatched from dev to production branch I guess
ohjime commentedon Oct 1, 2026
Yeah I guess I'm on the beta as well, because my latest version ends with 272.
Dashanchik commentedon Oct 1, 2026
@pmackey2 works with beta Android 17, Macos 27
different55 commentedon Oct 1, 2026
Beta works.
zekikaraca commentedon Oct 1, 2026
Beta indeed works for me as well. Just connected.
1KOD commentedon Oct 1, 2026
Beta indeed works for me as well. Just connected.
winner1104 commentedon Oct 1, 2026
Chatgpt Codex & OWL 26.928.21956 on win11 26H2 26300.9457
Pixel 10 Pro XL Android 17 QPR2 Beta
when I scan the QR code that chatgpt generated for connecting, my phone just keep looping between authorize this phone >>>log in( I'm using google account for log in) >> authorize >> authorize this phone , nothing like error or something wrong sign shows up during this loop
bautistaib commentedon Oct 1, 2026
Since today, it works on beta (wasn't working on beta yesterday)
winner1104 commentedon Oct 2, 2026
still unable to connect for me.......
even chatgpt desk had an update to 26.928.40906
ahmadfarisfs commentedon Oct 4, 2026
Atill looping here mac os chatgpt26.930.31428
With android app latest
abhinavmusrif commentedon Oct 4, 2026
Additional Windows + Android reproduction, checked on October 4, 2026.
Environment:
Observed behavior:
Local diagnostic findings (summaries only):
We have not verified duplicate pending enrollments, a stale cross-account environment, or a beta-app workaround on this installation. Recent comments suggest newer Android beta builds help some users; could maintainers confirm the fixed Android version and stable rollout, or provide a supported way to obtain the actual post-callback enrollment rejection?
No credentials, tokens, pairing codes, account email addresses, device serial numbers, callback URLs, or raw private logs are included.
Peacemaker228 commentedon Oct 4, 2026
New version available, problem is solved for me. I have OnePlus 15