You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unavailable — Codex Desktop cannot load account data, so no active Codex session is available for /feedback. #48571
appIssues related to the Codex desktop appauthIssues related to authentication and accountsbugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Additional data point: same symptom on macOS with the latest build — and this account used to receive chatgpt_account_id
Environment
ChatGPT/Codex Desktop 26.1002.52244 (this is the newest build per the official appcast), macOS 15.7.3, Apple Silicon
Bundled app-server: codex-cli 0.162.0-alpha.2
codex doctor reports auth is configured, stored ChatGPT tokens: true, and the desktop app-server initialized successfully
The Codex CLI works normally on the same machine, same account, same network
Symptom
Every account-scoped request fails with a locally generatedError("Workspace routing is unavailable", 432) — /settings/user, /wham/usage, /wham/statsig/bootstrap, /wham/onboarding/context.
Decoding ~/.codex/auth.json before and after a full sign-out + fresh sign-in
id_token carries only organizations: [{id: "org-…", is_default: true, role: "owner", title: "Personal"}] — no chatgpt_account_id, and no chatgpt_user_id either.
So this account previously did receive chatgpt_account_id (the CLI persisted it into tokens.account_id), and no longer does after re-authentication. A fresh login does not restore it — consistent with the report above.
What the bundled app-server actually returns (captured over stdio JSON-RPC)
Note it is null, not absent. That field is driven by auth.json.tokens.account_id: when that value was populated, the app-server returned a complete object with chatgptAccountId, backendOrigin, and accountRoutingOverride. So the app-server side is not the problem.
Where it breaks (from app.asar)
// Ak.get()if(r.kind==='workspace'&&r.workspace.chatgptAccountId!==yo(token)?.accountId)throwError('Workspace routing does not match the authenticated account');// yo(token) reads the JWT claim onlyreturn{accountId: claims['https://api.openai.com/auth'].chatgpt_account_id};
With no chatgpt_account_id in the JWT, yo(token)?.accountId is undefined, the comparison can never match, and the caller wraps the non-abort error into the 432 seen on every request:
catch(e){throweinstanceofError&&e.name==='AbortError'
? e
: newmy('Workspace routing is unavailable',432,e)}
One extra detail that may matter: because workspaceRouting comes back as null (not undefined), the kind: 'legacy' fallback in discover() is skipped too — it only applies when workspaceRouting === undefinedand the app-server version is within [0.141.0, 0.155.0-alpha.5).
Ruled out on this machine
CODEX_CLI_PATH — unset (launchctl, shell env, and shell profiles all clean)
Proxy/VPN — the CLI works on the identical network path
Token expiry — access token valid for 10 days
Account mismatch — auth.json account id and the app-server's workspaceRouting.chatgptAccountId matched exactly when both were present
Runtime residue — removing the downloaded app-server-daemon releases changed nothing
Practical consequence: the only local workaround found is forcing the app-server into the legacy branch by pointing CODEX_CLI_PATH at an older binary (0.154.0), which makes the account UI load again but drops usage/quota/credits features — presumably because the legacy path has no workspace route at all.
We recovered one Windows installation with the same missing-claim pattern on Codex Desktop 26.1021.3705.0 (2026-10-27). ChatGPT in the browser and the CLI could respond, but the desktop could not load the account. Reauthorization through the existing browser session still produced credentials without chatgpt_account_id, chatgpt_user_id, and chatgpt_plan_type.
What worked in this case was official device-code authorization in a fresh Edge InPrivate session, using the same account:
Save work and fully quit the desktop app.
Enable device-code login in ChatGPT's web security settings; managed workspaces may require administrator permission.
Close all existing Edge InPrivate windows after saving their contents, then open a new one.
Run codex login --device-auth under the same Windows user. Keep the terminal open and use the newly generated code.
Open the official URL printed by the terminal in that fresh InPrivate window, sign in to the intended account, and authorize the code.
Wait for the terminal to report Successfully logged in, then reopen the desktop and test a message. Fully quit and reopen again to check that the login persists.
The newly issued credentials contained the missing fields. The desktop then loaded the account, returned a reply, and remained signed in after a full exit and reopen. No desktop binaries, JWT contents, or .env files were modified.
For precision: our diagnostic run first validated the new credentials in an isolated CODEX_HOME, then used those official credentials in the desktop's normal store. The checklist above adapts that method for a setup where the CLI and desktop share the login store; custom homes, credential stores, or managed login policies need separate checking.
This is one observed recovery, not confirmation of the underlying cause or a fix for every login failure. In particular, it does not prove that browser cookies explain all missing-claim cases.
appIssues related to the Codex desktop appauthIssues related to authentication and accountsbugSomething isn't workingwindows-osIssues related to Codex on Windows systems
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
TealtKoder commentedon Sep 27, 2026
My case appears related to this issue, but the Desktop UI does open.
Instead, Codex Desktop shows:
“Failed to load your data”
The Desktop log contains:
failed to read app metadata: ChatGPT account ID not available, please re-run codex loginI reproduced the missing account ID after BOTH:
codex logincodex login --device-authBoth result in:
auth_json_account_id: MISSINGjwt_chatgpt_account_id: MISSINGjwt_chatgpt_user_id: MISSINGjwt_chatgpt_plan_type: MISSINGjwt_user_id: PRESENTOAuth itself succeeds:
oauth token exchange succeededcodex doctorreports healthy auth, healthy databases, WebSocket HTTP 101, and reachable OpenAI endpoints.So the Desktop UI works, but account/workspace metadata cannot be loaded because the ChatGPT account ID is missing from the resulting credentials.
Could this be the same underlying Windows/ChatGPT account identity issue as #47783?
SuperWBY commentedon Oct 8, 2026
Additional data point: same symptom on macOS with the latest build — and this account used to receive
chatgpt_account_idEnvironment
26.1002.52244(this is the newest build per the official appcast), macOS 15.7.3, Apple Siliconcodex-cli 0.162.0-alpha.2codex doctorreportsauth is configured,stored ChatGPT tokens: true, andthe desktop app-server initialized successfullySymptom
Every account-scoped request fails with a locally generated
Error("Workspace routing is unavailable", 432)—/settings/user,/wham/usage,/wham/statsig/bootstrap,/wham/onboarding/context.Decoding
~/.codex/auth.jsonbefore and after a full sign-out + fresh sign-intokens.account_id9e2cbe77-…Noneaccess_token["https://api.openai.com/auth"]keysamr,chatgpt_compute_residency,chatgpt_data_residency,poid,user_idchatgpt_account_idid_tokencarries onlyorganizations: [{id: "org-…", is_default: true, role: "owner", title: "Personal"}]— nochatgpt_account_id, and nochatgpt_user_ideither.So this account previously did receive
chatgpt_account_id(the CLI persisted it intotokens.account_id), and no longer does after re-authentication. A fresh login does not restore it — consistent with the report above.What the bundled app-server actually returns (captured over stdio JSON-RPC)
Note it is
null, not absent. That field is driven byauth.json.tokens.account_id: when that value was populated, the app-server returned a complete object withchatgptAccountId,backendOrigin, andaccountRoutingOverride. So the app-server side is not the problem.Where it breaks (from
app.asar)With no
chatgpt_account_idin the JWT,yo(token)?.accountIdisundefined, the comparison can never match, and the caller wraps the non-abort error into the 432 seen on every request:One extra detail that may matter: because
workspaceRoutingcomes back asnull(notundefined), thekind: 'legacy'fallback indiscover()is skipped too — it only applies whenworkspaceRouting === undefinedand the app-server version is within[0.141.0, 0.155.0-alpha.5).Ruled out on this machine
CODEX_CLI_PATH— unset (launchctl, shell env, and shell profiles all clean)auth.jsonaccount id and the app-server'sworkspaceRouting.chatgptAccountIdmatched exactly when both were presentconfigRequirements/readreturns{"requirements": null}app-server-daemonreleases changed nothingPractical consequence: the only local workaround found is forcing the app-server into the
legacybranch by pointingCODEX_CLI_PATHat an older binary (0.154.0), which makes the account UI load again but drops usage/quota/credits features — presumably because the legacy path has no workspace route at all.Ekko82 commentedon Oct 27, 2026
We recovered one Windows installation with the same missing-claim pattern on Codex Desktop
26.1021.3705.0(2026-10-27). ChatGPT in the browser and the CLI could respond, but the desktop could not load the account. Reauthorization through the existing browser session still produced credentials withoutchatgpt_account_id,chatgpt_user_id, andchatgpt_plan_type.What worked in this case was official device-code authorization in a fresh Edge InPrivate session, using the same account:
codex login --device-authunder the same Windows user. Keep the terminal open and use the newly generated code.Successfully logged in, then reopen the desktop and test a message. Fully quit and reopen again to check that the login persists.The newly issued credentials contained the missing fields. The desktop then loaded the account, returned a reply, and remained signed in after a full exit and reopen. No desktop binaries, JWT contents, or
.envfiles were modified.For precision: our diagnostic run first validated the new credentials in an isolated
CODEX_HOME, then used those official credentials in the desktop's normal store. The checklist above adapts that method for a setup where the CLI and desktop share the login store; custom homes, credential stores, or managed login policies need separate checking.This is one observed recovery, not confirmation of the underlying cause or a fix for every login failure. In particular, it does not prove that browser cookies explain all missing-claim cases.
We documented the steps, scope, and validation here: Windows desktop login recovery guide (English; Chinese version linked). The device-code command and credential storage options are covered in the official authentication documentation.