[Windows][26.820.9563.0] Codex Desktop repeatedly loses auth after account-settings 401 while ChatGPT Web remains signed in
What version of the Codex App are you using (From “About Codex” dialog)?
26.820.9563.0
What subscription do you have?
Pro
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Codex Desktop on Windows repeatedly loses authentication during normal use and returns to the "Sign in to ChatGPT" screen.
ChatGPT Web remains signed in and functional at the same time.
The Desktop logs repeatedly show the following authentication failure sequence:
GET /backend-api/accounts/{account_id}/settings
→ HTTP 401
app_server_connection.auth_status_result
authMethod=chatgpt
hasToken=false
nullReason=auth_token_missing
refreshToken=true
tokenExpiryState=missing
chatgpt-account-lookup
authenticatedAccountPresent=false
failureType=account_info_token_unavailable
result=failed
sa_server_request_failed
errorMessage="Missing valid access token or actor biscuit"
status=401
Before the authentication state is lost, the account-settings request can show:
desktop_fetch_auth_401
hadToken=true
tokenSource=cached
willRetry=true
Afterward, subsequent requests show:
hadToken=false
skipRetryReason=no_token_attached
and return HTTP 401 Unauthorized.
Signing in again temporarily restores the Desktop session, but the same failure repeats.
Interestingly, Codex background work may still complete and Windows may display a task-completion notification even after the Desktop UI has returned to the sign-in screen.
ChatGPT Web remains authenticated when this occurs.
No account IDs, tokens, email addresses, or other PII are included above.
What steps can reproduce the bug?
- Launch Codex Desktop on Windows.
- Sign in successfully with ChatGPT.
- Use Codex normally by opening an existing conversation or starting a task.
- Wait while Codex remains open and in normal use.
- Codex Desktop eventually performs an account-settings request.
- /backend-api/accounts/{account_id}/settings returns HTTP 401.
- Desktop auth state changes to:
hasToken=false
nullReason=auth_token_missing
refreshToken=true
tokenExpiryState=missing
- Account lookup then reports:
authenticatedAccountPresent=false
failureType=account_info_token_unavailable
- Codex Desktop returns to the "Sign in to ChatGPT" screen.
- ChatGPT Web remains signed in.
- Sign in to Codex Desktop again.
- The issue reproduces again.
This has reproduced multiple times during the same day.
Session ID: Not included because I do not know which identifier is safe and useful for this report. I can provide a sanitized session identifier privately if requested.
Token-limit usage: Not applicable / unknown.
Context-window usage: Not applicable; the logout can occur independently of high context usage.
What is the expected behavior?
After successful ChatGPT authentication, Codex Desktop should remain authenticated during normal use.
A 401 response from the account-settings endpoint should not cause an otherwise authenticated Desktop session to lose its access-token state while a refresh token is still present.
If token renewal is required, Codex should successfully refresh the access token or surface a recoverable authentication error instead of entering a repeated sign-in loop.
ChatGPT Web and Codex Desktop should remain consistently authenticated unless the account session is actually revoked.
Additional information
Environment:
Windows 11
x64
Codex Desktop 26.820.9563.0
Security configuration checked:
Advanced Account Security: Not enrolled
Lockdown Mode: Off
Developer Mode: Off
Authenticator MFA: Off
SMS MFA: Off
Important observations:
ChatGPT Web remains signed in while Codex Desktop signs out.
Re-authenticating Codex Desktop creates another Codex session, but the issue eventually repeats.
Background Codex work may continue and Windows task-completion notifications may still appear after the Desktop UI has returned to the sign-in screen.
The failure has reproduced repeatedly.
Microsoft Store currently offers no newer Desktop update on this machine.
A winget upgrade check also reports no newer available package.
Advanced Account Security is not enrolled, so this reproduction does not require that feature to be enabled.
The observed failure sequence is:
authenticated
→ account-settings HTTP 401
→ auth_token_missing
→ refreshToken=true
→ account_info_token_unavailable
→ Desktop sign-in screen
This appears very similar to existing Windows Codex Desktop authentication issue #39850.
5 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Additional isolation result:
On the exact same Windows PC, same Codex Desktop installation, same network, and same system configuration, a different OpenAI/ChatGPT account works normally.
The issue only occurs with the affected account.
For the affected account:
The Desktop logs show:
/backend-api/accounts/{account_id}/settings
→ HTTP 401
→ auth_token_missing
→ refreshToken=true
→ account_info_token_unavailable
→ Desktop switches to the sign-in screen
also tested:
None resolved the issue.
Because another account works normally on the same machine, this appears account-specific. Please check the affected account’s backend workspace/account-settings routing and Codex Desktop authentication state.
very simple i fixed it by re signing in but with the codex cli and then use the app
because the cli and app uses the same config files
other reason to use the cli : i have problem with auto open browser to signin using app i just copied the url from the cli and used it
note: i used the same account i didn't change it
im sorry i know my english is not good but i want to help
Additional reproduction from another affected Windows Codex Desktop user on 2026-08-28 (Asia/Taipei).
The app version is currently unknown because Codex is now stuck on the authentication screen and I cannot access “About Codex”. I intentionally did not update the app even though an Update button was visible, because I had three long-running Codex tasks active overnight.
Observed failure progression:
Important observations:
.codex, rebooted, or applied the pending update because I wanted to avoid destroying recoverable session/task state.If useful, I can provide a screenshot of the Desktop authentication screen showing the app stuck on “Continue signing in in your browser”. No tokens, cookies, account IDs, or other sensitive authentication material will be shared.
Independent reproduction from another Windows Codex Desktop installation.
Environment:
Sanitized failure chain observed in Desktop logs:
Additional isolation evidence:
desktop_fetch_auth_401events occurred after a clean log baseline. All werehadToken=false / no_token_attached / cached. No new logout event occurred during that short interval, showing that the broken no-token state can continue in the background and is not limited to the Settings UI.Requested fix and regression coverage:
/accounts/{account_id}/settingsas feature/query scoped; it must not invalidate the whole Desktop session.refresh_token_invalidateddeterministically without entering a repeated no-token 401 loop.No tokens, cookies, account IDs, email addresses, thread IDs, session IDs, or local usernames are included. Sanitized logs can be provided if a maintainer requests a specific time window or event sequence.