Skip to content

[Windows] Account-loading error offers only Retry; bundled CLI login recovers desktop authentication #60311

Open

Description

@katsumata-m-axis

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

Microsoft Store package OpenAI.Codex, version 26.1103.3517.0 (verified via Get-AppxPackage; About dialog unavailable during failure).
Windows Start menu display name: ChatGPT. Manifest executable: app/ChatGPT.exe.

What subscription do you have?

Not collected. Authentication method: ChatGPT account.

What platform is your computer?

Windows 11 Version 26H2, build 26300.9711, x64. Japanese UI.

What issue are you seeing?

On November 9, 2026 (JST), the desktop app was blocked by this error screen:

ChatGPT で問題が発生しました
アカウントを読み込めませんでした。接続を確認して、もう一度お試しください。

Translation: “A problem occurred in ChatGPT. We couldn't load your account. Check your connection and try again.”

The screen showed only a Retry button (再試行). The user could not find a sign-out or reauthentication route from this state. Fully terminating and restarting the app twice did not resolve the issue.

The same account was accessible in the browser. Task Manager showed all ChatGPT.exe processes running under the intended Windows user.

What steps can reproduce the bug?

This is an observed incident, not a deterministic reproduction:

  1. Launch the already-authenticated Windows desktop app.
  2. Encounter the account-loading error screen with only Retry available.
  3. Fully terminate and reopen the app; the error persists.
  4. Attempt recovery from the error screen: no accessible sign-out/sign-in route was available to the user.

The condition that initially caused the authentication failure is unknown. We did not deliberately expire or invalidate credentials.

What is the expected behavior?

If account loading fails due to invalid or expired authentication, provide an accessible “Sign in again” or “Sign out” action on the error screen, along with an actionable explanation. Recovery should not require discovering a bundled command-line executable or deleting application data.

Additional information

Sanitized local desktop logs before recovery included:

method=account/read errorCode=-32603
desktop_fetch_auth_401 hadToken=true tokenSource=loaded willRetry=true

A related remote-control connection log also contained HTTP 401 with code token_expired and the message “Provided authentication token is expired. Please try signing in again.” This is supporting context; we have not established that this connection error is the direct cause of the desktop account/read failure.

Successful recovery in this incident:

  1. Run the installed application's bundled executable:
    "<installed app resources>\codex.exe" login
  2. Complete browser authentication using the usual account.
  3. The command exits successfully with Successfully logged in.
  4. Launch ChatGPT through its registered Start menu application.

After recovery, desktop logs showed:

method=account/read errorCode=null
[chatgpt-account-lookup] completed authenticatedAccountPresent=true authMethod=chatgpt hasEverErrored=false result=succeeded

The user confirmed that the desktop app recovered.

No manual credential deletion, application Reset, or reinstallation was used. Long-term recurrence has not yet been checked.

Potentially related reports: #51548 (similar account-loading failure, but that report had a Sign out button and CLI reauthentication did not resolve it), #52496 (logout action unresponsive in an API-key session; different authentication method).

No credentials, OAuth URLs, account identifiers, local usernames, or full logs are attached.

Activity

  1. added
    bug
    app
    windows-os
    auth
    on Nov 9, 2026
  2. barkNbark commented on Nov 9, 2026

    @barkNbark

    Confirmed working fix — Windows desktop account authentication unavailable

    Date: November 9, 2026

    Environment:

    • Windows desktop application: OpenAI.Codex 26.1103.4239.0
    • Codex app-server: 0.167.0
    • Authentication: ChatGPT account

    Symptoms:

    The ChatGPT Windows application suddenly stopped loading account information and displayed the error "Account authentication unavailable".

    The application had worked earlier that morning.

    Diagnostics:

    • codex login status returned Logged in using ChatGPT.
    • Codex CLI successfully executed a model request.
    • The desktop application launched codex.exe app-server successfully.
    • Windows reported the application package status as Ok.
    • Switching networks did not help.
    • Restarting app-server did not help.
    • Windows application repair did not help.
    • Installing an external Codex CLI and configuring CODEX_CLI_PATH did not resolve the issue.

    Working solution:

    1. Close the ChatGPT Windows application.
    2. Locate the original codex.exe bundled with the Windows installation under %LOCALAPPDATA%\OpenAI\Codex\bin.
    3. Execute the original binary with the login argument.
    4. Complete authentication in the browser.
    5. Remove the temporary CODEX_CLI_PATH user environment variable to restore the default engine.
    6. Restart the Windows user session and launch ChatGPT.

    Result:

    The user confirmed that the Windows application works again.

    Important observation:

    The CLI reported a valid ChatGPT login before the fix. Reauthentication through the original bundled binary was part of the successful recovery procedure.

    The underlying root cause remains unconfirmed.

    Recommendation:

    Investigate recovery of the desktop application's authentication state when the CLI is already authenticated, particularly synchronization between the desktop client and app-server.

    Consider providing an automatic authentication refresh or repair mechanism without requiring manual CLI intervention.

  3. polestar150 commented on Nov 11, 2026

    @polestar150

    A third recovery path — GUI only, no CLI required

    Environment

    • Windows 11 25H2, build 26200.9711, x64
    • Codex Desktop 26.1103.7773.0 (MSIX, x64)
    • Codex CLI also installed: 0.167.0-alpha.3.2
    • Authentication: ChatGPT account, behind VPN/proxy

    Symptoms (same as reported)

    "Unable to load your account. Please check your network connection and try again." with only a Retry button. Retrying and restarting the app did not help. Logs showed desktop_fetch_auth_401 hadToken=true and the remote-control 401 with token_expired, even though the same account worked in the browser.

    Recovery — no terminal needed

    1. Fully quit Codex; confirm no ChatGPT.exe remains in Task Manager.
    2. Open %USERPROFILE%\.codex, rename auth.json to auth.json.bak. Do not delete the .codex folder.
    3. Launch Codex. The account-loading error is replaced by the login method screen. Choose Sign in with ChatGPT and finish in the browser.
    4. Once sign-in is confirmed, delete auth.json.bak.

    Result

    Account loaded, previous conversations visible, no reinstall or app reset required.

    Why this may be worth adding

    Both fixes already described here depend on the bundled codex.exe login. Moving the stale credential file aside instead forces the desktop client through its own GUI sign-in path, which is the only option for users who cannot locate the bundled binary or who do not want to use a terminal. Note that because the CLI shares %USERPROFILE%\.codex, this approach will likely also sign the CLI out — expected, and the opposite trade-off from the CLI route. This complements the CLI workaround rather than replacing it.

    Caveat

    One incident only; root cause still unknown. It is not a fix for token expiry caused by clock skew or proxy issues.

  4. ryanbest99 commented on Nov 12, 2026

    @ryanbest99

    Additional confirmation — Windows ChatGPT desktop app (November 12, 2026)

    I experienced the same issue with the ChatGPT desktop application on Windows.

    Symptoms

    The application displayed:

    ChatGPT hit a snag
    We couldn't load your account. Check your connection and try again.

    Only a "Retry" button was available.

    Uninstalling and reinstalling the application did not resolve the issue.

    Confirmed working workaround

    I was able to resolve the issue by refreshing the authentication state using the bundled codex.exe executable.

    1. Opened PowerShell.
    2. Located the bundled codex.exe under %LOCALAPPDATA%\OpenAI\Codex\bin.
    3. Executed the following commands:
    $cli = Get-ChildItem "$env:LOCALAPPDATA\OpenAI\Codex\bin" -Recurse -Filter codex.exe -File -ErrorAction SilentlyContinue |
        Sort-Object LastWriteTime -Descending |
        Select-Object -First 1 -ExpandProperty FullName
    
    & $cli logout
    & $cli login
    1. Completed authentication through the browser.
    2. Relaunched the ChatGPT Windows desktop application.

    Result

    The desktop application successfully loaded my account and started working normally again.

    Reinstallation alone did not help, but reauthentication through the bundled CLI resolved the issue.

    This independently confirms the workaround reported in this issue.

    Suggestion

    It would be helpful if the desktop application provided a "Sign in again" option when account loading fails, rather than displaying only a "Retry" button.

    The underlying root cause is still unknown, but this workaround may help other Windows users experiencing the same problem.

  5. IGsng commented on Nov 16, 2026

    @IGsng

    Confirming this workaround worked for me on the ChatGPT Windows desktop app (originally installed as Codex). I was stuck on “We couldn't load your account. Check your connection and try again.” Changing VPN, using Windows app Repair, and reinstalling did not help.

    I closed the app, opened PowerShell, located the bundled codex.exe under %LOCALAPPDATA%\OpenAI\Codex\bin, and ran & $cli login as described above. After signing in through the browser, the desktop app loaded my account successfully. No manual deletion of auth.json was needed.

    Thanks for sharing the fix! This confirms the bundled-CLI reauthentication workaround also works in another case (see #60311 (comment)).

  6. a-pyro commented on Nov 17, 2026

    @a-pyro

    Additional confirmation — Windows desktop, November 17, 2026

    I encountered the same “ChatGPT hit a snag / We couldn't load your account. Check your connection and try again.” screen, with only a Retry button.

    Installed packages (checked with Get-AppxPackage):

    • OpenAI.Codex — 26.1111.2228.0
    • OpenAI.CodexPrimaryRuntime — 26.1116.1220.0

    What did not work:

    • Uninstalling and reinstalling the desktop app.
    • Windows app Reset (Windows indicated the reset completed, but the same error remained).
    • Trying to locate the bundled codex.exe under %LOCALAPPDATA%\OpenAI\Codex\bin using the suggested PowerShell search returned no executable path, so the CLI-login workaround could not be used as described.

    What worked:

    1. Close the app.
    2. Confirm %USERPROFILE%\.codex\auth.json exists.
    3. Rename auth.json to auth.json.bak (do not delete the .codex directory):
      Rename-Item "$env:USERPROFILE\.codex\auth.json" "auth.json.bak"
    4. Reopen the desktop app.

    Result: The application worked again. This independently confirms the auth.json workaround described above, also on newer Windows package versions and after Windows app Reset failed.

    This suggests an authentication-state recovery issue, but does not establish the root cause. A built-in Sign in again / Reset authentication action on the error screen would be preferable to manually renaming a credential file.

    No credentials, local usernames, or private paths are included.

  7. PrayFF commented on Nov 22, 2026

    @PrayFF

    Additional confirmation: recovered on Windows after changing proxy clients (November 22, 2026)

    I experienced the same issue:

    ChatGPT hit a snag — We couldn't load your account. Check your connection and try again.

    The desktop app was stuck on this screen, while ChatGPT and Codex both worked normally in my browser.

    What I tested:

    • My new local HTTP proxy was listening on 127.0.0.1:7892, while the previous proxy had used port 7897.
    • Test-NetConnection confirmed that port 7892 was reachable.
    • curl through the proxy returned HTTP 200 for chatgpt.com.
    • Requests to auth.openai.com initially produced CRYPT_E_REVOCATION_OFFLINE in Windows Schannel. Using --ssl-revoke-best-effort for diagnosis returned HTTP 302.
    • Changing proxy routing rules and enabling a virtual network adapter did not resolve the desktop error.

    What finally worked:

    I opened PowerShell and located the Codex CLI bundled with the desktop installation:

    $cli = Get-ChildItem "$env:LOCALAPPDATA\OpenAI\Codex\bin" -Recurse -Filter codex.exe -File -ErrorAction SilentlyContinue |
        Sort-Object LastWriteTime -Descending |
        Select-Object -First 1 -ExpandProperty FullName
    
    $cli

    Then I ran:

    & $cli login

    After completing authentication in the browser, PowerShell showed:

    Successfully logged in
    

    I then fully restarted the Windows desktop app, and my account loaded successfully!

    Importantly, I did not need to run codex logout, delete or rename auth.json, or reinstall the application.

    Conclusion:

    This independently confirms that reauthenticating with the bundled Codex CLI and restarting the desktop app can resolve this account-loading error.

    The underlying cause remains unconfirmed. In particular, I cannot establish that the proxy change or the certificate-revocation error caused the desktop failure.

    It would be very helpful if the desktop app offered a "Sign in again" option instead of displaying only "Retry".

    Hope this helps others experiencing the same issue!

  8. lnx1995 commented on Dec 1, 2026

    @lnx1995

    I'd like to confirm that this workaround still works on a newer version of Codex Desktop.

    Environment

    • Date: December 1, 2026
    • OS: Windows 11
    • Codex Desktop: 26.1120.6357.0

    Symptoms

    • JavaScript error: Connection for host ID local not found
    • Subsequently, the application failed to load account information.
    • Closing all related processes and restarting did not resolve the issue.

    Successful workaround

    1. Completely close Codex.
    2. Navigate to %USERPROFILE%\.codex.
    3. Rename auth.json to auth.json.bak.
    4. Relaunch Codex and sign in again.

    Result

    Successfully signed in again without reinstalling the application or clearing its cache.

    The underlying root cause remains unconfirmed. Hopefully, this additional case helps other users and the development team.

    Ideally, the desktop application should offer a "Sign in again" option when account loading fails, rather than only displaying a "Retry" button.

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

    appauthbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions