Skip to content

Remote stops working after switching between personal and work accounts #39698

Open

Description

@JonEcho

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

Latest Windows Codex app available as of August 20, 2026. Exact build number unknown.

What platform is your computer?

Windows 11

Phone: Android 17 / Samsung One UI 9

What issue are you seeing?

Codex Remote worked normally between my Windows PC and Android phone.

After I switched between my personal and work accounts, Remote stopped connecting. I have been unable to reconnect for more than two weeks.

The Windows app still shows my PC under Remote and shows the correct recent access time, but my Android phone never completes the connection.

What steps can reproduce the bug?

  1. Install Codex on Windows and Android.
  2. Set up Remote and connect successfully.
  3. Switch from one Codex account to another. In my case, I believe I switched the Windows app first.
  4. Switch the Android app to the same account.
  5. Try to reconnect to the Windows PC.
  6. The connection does not complete.

What is the expected behavior?

Once both devices are signed into the same account and Remote is enabled, the Android phone should connect to the Windows PC again.

Additional information

I have tried:

  • Logging out on Android
  • Logging out on Windows
  • Logging out on both devices
  • Switching both devices to the same account
  • Reinstalling the Android app
  • Removing Remote access on the PC
  • Removing the PC
  • Disabling and re-enabling the PC in the Android app
  • Setting up Remote again
  • Using a VPN
  • Turning the VPN off
  • Using Wi-Fi
  • Using LTE/mobile data

The only major thing I have not tried is reinstalling the Windows Codex app.

The problem started after switching between my personal and work accounts.

Possibly related:

Activity

  1. added
    bug
    app
    windows-os
    auth
    connectivity
    on Aug 20, 2026
  2. axusnetworks commented on Sep 26, 2026

    @axusnetworks

    Findings from a reproduction on Linux desktop + Android (ChatGPT Desktop 26.924.22138, ChatGPT Android 1.2026.265). The loop is not resolved yet; these are the stale records found and cleared so far.

    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 (not yet confirmed to fix the loop):

    1. With account B's credentials: DELETE /backend-api/wham/remote/control/environments/{env_id} for the stale environment whose installation_id matched the desktop now used by account A (HTTP 204). GET .../wham/remote/control/environments lists them with installation_id and online.
    2. Removed account B's rows from the desktop's local remote_control_enrollments table (state_5.sqlite in the Codex home), after a backup.
    3. Removed the stale pending_enrollment clients (DELETE .../wham/remote/control/clients/{client_id}).

    Ruled out along the way: 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.

  3. axusnetworks commented on Sep 26, 2026

    @axusnetworks

    Additional technical detail for the same reproduction (still unresolved):

    • Two enrollments per failed attempt, one per success: every failed "Authorize this phone" attempt creates two pending_enrollment clients 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.com link domain as legacy_failure. All other ChatGPT and OpenAI domains are verified. The browser redirect still reaches the app's WebRedirectActivity and then WebAuthenticationActivity, 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/start succeeds, and while the QR code is shown the desktop polls remoteControl/client/list about 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-control process 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.
    • Device: a Google-certified stock Android 17 phone (Play Integrity is not a factor). ChatGPT itself and all other features work normally.
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

    appauthbugconnectivityremotewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions