Windows Desktop app repeatedly logs out after sending one message when Advanced Account Security is enabled (401 Missing valid access token or actor biscuit)
Open 💬 6 comments Opened Aug 20, 2026 by RainyMarks
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the Codex App are you using (From “About Codex” dialog)?
26.818.2441.0
What subscription do you have?
ChatGPT Plus / Team / Pro
What platform is your computer?
Windows 11 x64 (Package: OpenAI.Codex_26.818.2441.0_x64__2p2nqsd0c76g0)
What issue are you seeing?
Summary
After enabling Advanced Account Security on my ChatGPT account, the Windows ChatGPT / Codex Desktop app logs out and returns to the sign-in screen immediately after sending a single message. Logging back in allows sending one message, after which it immediately gets kicked back to the login screen again (login loop).
Symptoms & Behavior
- Launch Windows ChatGPT Desktop app and sign in with ChatGPT successfully.
- Send a message to start or continue a conversation.
- The response is generated, but immediately upon turn completion / background sync, the desktop app loses authentication and drops back to the "Log in to ChatGPT" screen.
- Signing in again succeeds temporarily, but sending the next message triggers the exact same logout behavior.
Relevant Log Excerpt
From %LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\:
warning [electron-fetch-wrapper] desktop_fetch_auth_401 hadToken=true skipRetryReason=null target="GET https://chatgpt.com/backend-api/accounts/:param/settings" tokenSource=cached willRetry=true
warning [WindowContext] Thread catalog sync failed errorMessage="App server account changed"
warning [AppServerConnection] app_server_connection.auth_status_result authMethod=chatgpt cacheWrite=null hasToken=false nullReason=auth_token_missing refreshToken=true tokenExpiryState=missing
warning [electron-message-handler] sa_server_request_failed attachAuth=true attachIntegrityState=true status=401 errorMessage="{\"detail\":\"Missing valid access token or actor biscuit\"}" url=/accounts/<account_id>/settings
warning [electron-fetch-wrapper] desktop_fetch_auth_401 hadToken=false skipRetryReason=no_token_attached target="GET https://chatgpt.com/backend-api/wham/:param/:param" tokenSource=cached willRetry=false
warning [electron-message-handler] sa_server_request_failed attachAuth=true attachIntegrityState=true status=401 errorMessage={"detail":"Unauthorized"} url=/wham/onboarding/context
What steps can reproduce the bug?
- Enable Advanced Account Security on ChatGPT account settings.
- Open Windows ChatGPT/Codex Desktop app (
OpenAI.Codex_26.818.2441.0). - Complete sign-in.
- Send a prompt to ChatGPT.
- As soon as the generation completes and background sync is performed, the app is redirected back to the login screen.
What is the expected behavior?
The desktop app should maintain authentication and valid actor cookies/session tokens after turn completion, even when Advanced Account Security is enabled.
Additional information
- Web version (
chatgpt.com) works without issues under the same account. - Issue specifically started immediately after enabling Advanced Account Security.
- The root cause in logs indicates a 401 on
/accounts/<id>/settingswith"Missing valid access token or actor biscuit", which dropshasTokento false and triggersaccount/login/start.
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I can consistently reproduce this issue on the Windows Codex/ChatGPT desktop app, and the behavior changes immediately depending on whether Advanced Account Security (AAS) is enabled.
AAS enabled
AAS disabled
So in my environment, the comparison is very clear:
AAS enabled → opening any Project/thread triggers logout
AAS disabled → Projects and project files work normally
I did not need to reinstall the application, recreate the Projects, or change the project files. Simply disabling AAS restored normal behavior.
This strongly suggests that the issue is related to the authentication/session handling used by the Windows desktop app when Advanced Account Security is enabled, rather than corruption of an individual Project or local project data.
I can reproduce this issue consistently on the latest Windows desktop app version 26.820.7780.0.
Environment:
The login succeeds normally. My account, projects, and conversations load correctly.
However, after I open a new Work chat and send a message, the app suddenly loses authentication and returns to the “Sign in to ChatGPT” screen without displaying any error.
The ChatGPT web app works normally with the same account. This only happens in the Windows desktop app.
I also performed a complete clean reset:
.codexdirectory includingauth.json,cap_sid, sessions, state, and local project metadataThe first-time onboarding was shown again after reinstalling, confirming that the old local state had been removed.
Despite this, the logout issue still occurs.
I have also reproduced the issue in a screen recording. The recording shows a successful login, opening a Work chat, sending a message, and then the app automatically returning to the login screen approximately 50 seconds later with no visible error.
So this issue is still reproducible on 26.820.7780.0.
Update: account-session reset resolved the authentication loop in my environment
After further troubleshooting, I found an account-session reset that resolved the Windows Codex Desktop authentication loop in my environment.
Original failure
ChatGPT browser authentication completed successfully and the Codex Desktop UI initially appeared. However, sending a message or opening an existing project caused the app to receive a
401response, lose its local authentication token, and return to the sign-in screen.The relevant log sequence was:
The issue reproduced consistently after resetting the desktop profile, using a separate
CODEX_HOME, and fully reinstalling the Windows package. The Codex IDE extension continued to work with the same ChatGPT account.Workaround
Verification completed
Outcome log
| Date/time (JST) | Test | Result | Notes |
|---|---|---|---|
| 2026-08-27 | Logged out all active ChatGPT sessions, then signed in to Codex Desktop again | Pass | Immediate authentication loop no longer reproduced |
| 2026-08-27 | Sent messages and opened projects/conversations | Pass | No unexpected logout |
| 2026-08-27 | Full Codex Desktop restart | Pass | Authentication loop did not recur |
| 2026-08-27 | Windows restart | Pass | Codex Desktop remained operational after reboot |
| 2026-08-27 | Codex Desktop update followed by normal use | Pass | Continued working normally after the update |
| 2026-08-27 | Signed in through ChatGPT web and the mobile app | Pass | The original Codex Desktop session remained operational |
| 2026-08-27 | Signed in on a separate PC while continuing to use the original PC | Pass | Multi-device sign-in did not reproduce the authentication loop |
Why this result is significant
Desktop-side recovery steps did not resolve the issue, while invalidating all account sessions did. This suggests that stale or inconsistent account-side session state may have been involved rather than only local cache corruption or a damaged installation.
This does not establish the exact root cause. One possible interpretation is that the desktop authentication flow received credentials that were accepted during browser login but rejected by the subsequent account-settings request. Invalidating every active session may have forced the account and desktop app to establish a fully fresh session.
Relevant account context
The authentication loop began shortly after changes under the account's Security / Login settings, including adding a password and enabling SMS MFA. The timing does not prove causation, but it may be relevant to the account-side session state.
This should be treated as an account-specific workaround, not a universal fix. Similar-looking authentication failures may have different causes, and signing out all active sessions has not resolved every related report.
If the issue recurs, I will record the exact time, the operation immediately preceding the logout, whether the log again shows
hadToken=true -> 401 -> hasToken=false, and whether the same account-session reset resolves it a second time.Adding another independently reproduced data point for this issue.
I can reproduce the same Windows desktop authentication failure on a newer build, after enabling Advanced Account Security.
Environment
OpenAI.Codex_26.820.9563.0_x64__2p2nqsd0c76g026.820.71523Reproduction
I can trigger the failure in two different ways:
testprompt, see the response begin generating, and then get returned to the Sign in to ChatGPT screen.This does not appear to be a conventional process crash. The desktop process remains alive, but its usable ChatGPT authentication state is lost.
Captured auth sequence
After the first 401, subsequent requests are made with
hadToken=false/no_token_attachedand continue returning 401s.The timing is notable because this began shortly after Advanced Account Security was enabled. I am treating that as correlation rather than proof of root cause, but the failure signature closely matches the original report here.
I also captured screenshots and a sanitized diagnostic evidence packet containing the package/build information, PowerShell output, and the full auth-failure sequence. Personal/account identifiers, local usernames, conversation titles, request/session IDs, UUIDs, and other unnecessary correlation metadata were redacted from the public copy.
ChatGPT_Windows_Desktop_Auth_Evidence_2026-08-27_PUBLIC_REDACTED.pdf
Update: account-wide session reset appears to resolve the loop on Windows 26.820.9563.0
Following the workaround reported above, I tested an account-wide session reset on the same Windows machine where I had previously captured the reproducible auth failure.
Procedure used:
Result: the authentication loop appears to be resolved so far. The desktop app remains signed in instead of falling back to the login screen after conversation activity.
Environment is unchanged from my earlier report:
OpenAI.Codex_26.820.9563.0_x64__2p2nqsd0c76g026.820.71523Before the reset, the failure was consistently:
The fact that desktop-side resets/reinstalls were not required, while invalidating all account sessions changed the behavior, makes stale or inconsistent account-side session state a plausible factor. This is only a workaround/observation, not proof of root cause.
I’ll continue using the app normally and will update again if the failure returns.