Skip to content

ChatGPT login works in the browser, but the Windows client keeps saying “Failed to load account information” #61123

Open

Description

@longweijin4-maker

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

版本 26.1106.51428

What subscription do you have?

Plus

What platform is your computer?

No response

What issue are you seeing?

打开 ChatGPT Windows 客户端,页面显示:

ChatGPT 遇到了问题
未能加载账户信息。请检查网络连接后重试。

image

点击「重试」没有效果,客户端无法正常进入。

但是存在一个非常奇怪的现象:

  • 浏览器可以正常访问 ChatGPT。
  • 浏览器退出账户后,也可以重新登录。
  • ChatGPT Windows 客户端始终无法加载账户。
  • 更换代理节点后,问题仍然存在。

What steps can reproduce the bug?

结合故障表现和修复结果,我认为最值得怀疑的是客户端的本地认证状态异常。

可能存在以下故障链:

image

最终解决方案:通过 Codex CLI 重新登录

第一步:打开 PowerShell打开 Windows 任务管理器:

Ctrl + Shift + Esc

找到所有 ChatGPT.exe 进程,结束任务。

第二步:打开 PowerShell

按下:

Win + X

选择 Windows PowerShell 或终端。

通常不需要管理员权限。

第三步:执行重新登录命令

复制并执行以下完整代码:

$pkg = Get-AppxPackage -Name OpenAI.Codex

$exe = Join-Path $pkg.InstallLocation 'app\resources\codex.exe'

if (Test-Path $exe) {
    & $exe login
} else {
    Write-Host "未找到 codex.exe:$exe"
}

这段代码的作用:

  1. 查找 OpenAI.Codex 应用包。
  2. 获取应用安装目录。
  3. 定位内置的 codex.exe。
  4. 执行 codex login,重新发起账户认证。

这里没有删除文件,也没有修改 Windows 注册表。

如果提示找不到 codex.exe,说明当前安装包的目录结构可能不同,需要进一步确认。

第四步:在浏览器完成账户认证

命令成功运行后,PowerShell 会启动一个本地登录服务,例如:

Starting local login server on http://localhost:1455

随后会打开浏览器,进入 OpenAI 的认证页面。

按照提示登录 ChatGPT 账户即可。

认证完成后,浏览器显示:

Signed in to Codex

You may now close this page

与此同时,PowerShell 显示:

Successfully logged in

看到这两个提示,说明 Codex CLI 认证已经成功。

第五步:重新启动 ChatGPT

关闭浏览器中的认证完成页面。

确认所有旧的 ChatGPT.exe 进程已经退出,然后从 Windows 开始菜单重新启动 ChatGPT 客户端。

在我的实际测试中:

客户端成功恢复正常,可以加载账户信息并进入 ChatGPT。

整个过程不需要卸载 ChatGPT,也不需要重装 Windows。

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Nov 12, 2026
  2. added
    bug
    windows-os
    auth
    on Nov 12, 2026
  3. changed the title [-]浏览器可以正常登录 ChatGPT,但 Windows 客户端始终提示“未能加载账户信息”[/-] [+]ChatGPT login works in the browser, but the Windows client keeps saying “Failed to load account information”[/+] on Nov 12, 2026
  4. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    English translation:

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

    Version 26.1106.51428

    What subscription do you have?

    Plus

    What platform is your computer?

    No response

    What issue are you seeing?

    When I open the ChatGPT Windows client, the page displays:

    ChatGPT encountered a problem
    Failed to load account information. Please check your network connection and try again.

    image

    Clicking “Retry” has no effect, and I cannot get into the client normally.

    However, there is something very strange:

    • I can access ChatGPT normally in the browser.
    • After signing out in the browser, I can sign back in.
    • The ChatGPT Windows client consistently fails to load the account.
    • The problem persists after switching proxy nodes.

    What steps can reproduce the bug?

    Based on the symptoms and the results of the fix, I believe an abnormal local authentication state in the client is the most likely suspect.

    The following failure chain may be involved:

    image

    Final solution: Sign in again through Codex CLI

    Step 1: Open PowerShell Open Windows Task Manager:

    Ctrl + Shift + Esc
    

    Find all ChatGPT.exe processes and end them.

    Step 2: Open PowerShell

    Press:

    Win + X
    

    Select Windows PowerShell or Terminal.

    Administrator privileges are usually not required.

    Step 3: Run the command to sign in again

    Copy and run the following complete code:

    $pkg = Get-AppxPackage -Name OpenAI.Codex
    
    $exe = Join-Path $pkg.InstallLocation 'app\resources\codex.exe'
    
    if (Test-Path $exe) {
        & $exe login
    } else {
        Write-Host "未找到 codex.exe:$exe"
    }
    

    What this code does:

    1. Finds the OpenAI.Codex application package.
    2. Gets the application installation directory.
    3. Locates the bundled codex.exe.
    4. Runs codex login to initiate account authentication again.

    This does not delete any files or modify the Windows registry.

    If it reports that codex.exe cannot be found, the directory structure of the currently installed package may be different and needs further investigation.

    Step 4: Complete account authentication in the browser

    After the command runs successfully, PowerShell starts a local login server, for example:

    Starting local login server on http://localhost:1455
    

    The browser then opens to OpenAI's authentication page.

    Follow the prompts to sign in to your ChatGPT account.

    Once authentication is complete, the browser displays:

    Signed in to Codex
    
    You may now close this page
    

    At the same time, PowerShell displays:

    Successfully logged in
    

    Seeing both messages means that Codex CLI authentication has succeeded.

    Step 5: Restart ChatGPT

    Close the authentication completion page in the browser.

    Make sure all old ChatGPT.exe processes have exited, then restart the ChatGPT client from the Windows Start menu.

    In my actual testing:

    The client returned to normal, successfully loaded the account information, and opened ChatGPT.

    The entire process requires neither uninstalling ChatGPT nor reinstalling Windows.

    What is the expected behavior?

    No response

    Additional information

    No response

  5. fafada0092 commented on Nov 16, 2026

    @fafada0092

    Additional reproduction report (Windows ChatGPT desktop app, 2026-11-16):

    I have the same exact startup error in the Microsoft Store-installed Windows ChatGPT client:

    ChatGPT encountered a problem — Unable to load account information. Check your network connection and try again.

    Environment and observations:

    • ChatGPT works normally on the phone and in the desktop browser with the same account.
    • Only the Windows desktop client is blocked at the account-loading screen; Retry does not help.
    • The installed package is OpenAI.Codex version 26.1111.2228.0 (x64), confirmed with Get-AppxPackage.
    • Windows Settings > Apps > ChatGPT > Advanced options > Repair did not fix it.
    • Resetting the app did not fix it.
    • The Microsoft Store itself separately displays “Microsoft Store initialization failed”; wsreset.exe and re-registering the Store package did not resolve that Store error.
    • The Store package reports Status: Ok and IsPartiallyStaged: False.
    • Attempting to launch the bundled codex.exe directly from the Store package path via PowerShell returns “Access is denied” / ApplicationFailedException, so the suggested CLI login command could not be run from that executable.

    Please investigate the Windows desktop account-loading failure and provide a supported recovery path. The app currently exposes only Retry and gives no usable sign-out / reauthentication route.

  6. uiwi-leaflyze commented on Nov 19, 2026

    @uiwi-leaflyze

    I ran into the same “Failed to load account information” error in the Windows ChatGPT desktop app (Microsoft Store package OpenAI.Codex, version 26.1106.6628.0). Renaming ~/.codex/auth.json inside WSL had no effect. What worked on my PC was closing the desktop app, renaming %USERPROFILE%.codex\auth.json on the Windows side to auth.json.bak, and reopening the app. Sharing this as a workaround that worked on my machine, not a confirmed root cause.

  7. AureoleNode commented on Dec 1, 2026

    @AureoleNode

    I encountered the same issue with the ChatGPT Windows desktop app installed from the Microsoft Store.

    The app failed to load my account information, while the web version worked normally.

    The following workaround resolved the issue for me:

    1. Completely close the ChatGPT desktop app.
    2. Navigate to %USERPROFILE%\.codex.
    3. Rename auth.json to auth.json.bak.
    4. Relaunch the ChatGPT desktop app.

    After doing this, the app worked normally again.

    Hopefully, this additional confirmation helps the developers investigate the underlying authentication issue.

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