Skip to content

[macOS][26.1002.52244] Desktop won't load account/usage data — JWT has no chatgpt_account_id, everything returns 432 #52112

Closed

Description

@SuperWBY

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

26.1002.52244. I checked the appcast and this seems to be the newest one. The bundled app-server is codex-cli 0.162.0-alpha.2.

What subscription do you have?

Just a regular ChatGPT account login. The account has one org, titled "Personal", and I'm the owner.

What platform is your computer?

macOS 15.7.3, Apple Silicon.

What issue are you seeing?

The desktop app can't load any account data. Anything that needs a workspace route fails with 432 "Workspace routing is unavailable" — /settings/user, /wham/usage, /wham/statsig/bootstrap, /wham/onboarding/context. In the UI, the account / usage / subscription entries under 设置 → 个人 are just missing.

The CLI works fine on the same machine, same account, same network. codex doctor says everything is healthy (auth configured, tokens stored, desktop app-server initialized successfully). So it's only the desktop app.

What steps can reproduce the bug?

  1. Sign out in the desktop app. I confirmed it actually signs out — ~/.codex/auth.json disappears and codex login status says Not logged in.
  2. Sign back in with the same account.
  3. Same 432s as before.

What is the expected behavior?

The app should load my account info and usage.


I spent a while poking at this, so here's what I found in case it's useful.

The JWT doesn't have a chatgpt_account_id in it. I decoded ~/.codex/auth.json before and after logging out and back in:

Before, tokens.account_id was 9e2cbe77-…. After logging back in it's None.

In both cases the access_token only has amr, chatgpt_compute_residency, chatgpt_data_residency, poid and user_id under https://api.openai.com/auth. No chatgpt_account_id anywhere.

The id_token has organizations: [{id: "org-…", is_default: true, role: "owner", title: "Personal"}] and nothing else account related.

So this account used to get chatgpt_account_id (the CLI had saved it at some point) and now it doesn't. Logging in again doesn't bring it back.

The app-server itself looks fine to me. I ran it directly and asked for account/read, and it returns:

"account": {"type": "chatgpt", "email": "<redacted>", "planType": "unknown"},
"workspaceRouting": null

Back when auth.json still had the account id, that came back as a full object with chatgptAccountId, backendOrigin and accountRoutingOverride. So it's reading that from auth.json, and the app-server isn't where things break.

The bit in the app that fails is this, from app.asar:

if (r.kind === 'workspace' && r.workspace.chatgptAccountId !== yo(token)?.accountId)
  throw Error('Workspace routing does not match the authenticated account');

and yo() only looks at the JWT claim:

return { accountId: claims['https://api.openai.com/auth'].chatgpt_account_id };

Since the JWT has no chatgpt_account_id, yo(token)?.accountId is undefined, so that comparison can never match. Then the caller turns it into the 432:

catch (e) {
  throw e instanceof Error && e.name === 'AbortError' ? e : new my('Workspace routing is unavailable', 432, e)
}

One more thing that might matter: the legacy branch in discover() only runs when workspaceRouting === undefined and the app-server version is within [0.141.0, 0.155.0-alpha.5). Mine comes back as null rather than undefined, so that branch never runs either.

Things I already tried that didn't help:

  • CODEX_CLI_PATH isn't set anywhere (checked launchctl, my shell env and my shell profiles)
  • not the proxy or VPN, the CLI works on the same network path
  • the token isn't expired
  • not an account mismatch, the ids matched exactly back when both were present
  • I'm already on the latest app version
  • configRequirements/read returns {"requirements": null}
  • deleting the downloaded app-server-daemon releases changed nothing
  • restarting the app doesn't help

This looks like the macOS version of #48571. The difference in my case is that auth.json used to contain the account id and the JWT never did, so it seems like the server stopped issuing chatgpt_account_id for this account rather than it never having existed.

Screenshot: 设置 → 个人 only shows 常规 / 外观 / 个性化. The account and usage entries are missing.

Activity

  1. added
    bug
    app
    auth
    app-server
    on Oct 8, 2026
  2. changed the title [-][macOS][26.1002.52244] Account/usage data never loads — JWT is missing chatgpt_account_id, all account-scoped requests fail with 432[/-] [+][macOS][26.1002.52244] Desktop won't load account/usage data — JWT has no chatgpt_account_id, everything returns 432[/+] on Oct 8, 2026
  3. github-actions commented on Oct 8, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

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

    appapp-serverauthbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions