Repeated sign-in screen appears after completing a response or opening an existing session
What version of the Codex App are you using (From “About Codex” dialog)?
ChatGPT desktop 26.818.22352 (build 6872)
What subscription do you have?
Pro
What platform is your computer?
Darwin 25.6.0 arm64 arm macOS 26.6.2 (build 25G83) Apple Silicon / arm64
What issue are you seeing?
After updating the ChatGPT desktop app to 26.818.22352 (build 6872), a repeated sign-in screen appears whenever an
assistant response completes or I open an existing conversation.
The issue occurs in either of these situations:
- An assistant response finishes in the currently open conversation.
- I select an existing conversation from the sidebar.
Immediately afterward, the desktop UI switches to a logged-out state and displays the sign-in screen.
Signing in succeeds, but it appears to create another login/device session. The app then loses authentication again
after completing a response or opening an existing conversation. This loop is consistently reproducible.
The same ChatGPT account continues to work through the web and mobile interfaces. Codex CLI authentication also
remains valid:
codex login status
Logged in using ChatGPT
Sanitized desktop log sequence:
desktop_fetch_auth_401 hadToken=true tokenSource=cached willRetry=true
Target request:
GET https://chatgpt.com/backend-api/accounts/:param/settings
Immediately afterward:
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
desktop_fetch_auth_401 hadToken=false skipRetryReason=no_token_attached
Subsequent requests report:
Missing valid access token or actor biscuit
Unauthorized
The desktop logs also repeatedly contain:
Received turn/completed for unknown conversation
A new login temporarily restores authenticatedAccountPresent=true, but the same failure recurs.
What steps can reproduce the bug?
- Install or update ChatGPT desktop to version 26.818.22352 (build 6872) on macOS.
- Sign in with a ChatGPT account.
- Open an existing Codex conversation from the sidebar, or start a conversation and submit any prompt.
- Wait until the assistant response completes.
- Observe that the desktop app switches to a logged-out state and displays the sign-in screen.
- Sign in again using the same account.
- Observe that another login/device session appears to be created.
- Open an existing conversation or complete another response.
- Observe that the app displays the sign-in screen again.
Reproduction rate: consistent during the affected session.
Signing out and signing back in, fully quitting and restarting the app, and signing in through the Codex CLI do not
resolve the desktop authentication loop.
What is the expected behavior?
The desktop app should remain authenticated after completing a response or opening an existing conversation.
If an authenticated request receives a 401 response, the application should refresh or recover the credential without
clearing the active authenticated state, repeatedly displaying the sign-in screen, creating duplicate login sessions,
or making existing conversations unusable.
A valid ChatGPT login that continues to work in Codex CLI and on web/mobile should also remain usable in the desktop
app.
Additional information
Observed around:
- 2026-08-21 06:14–06:21 KST
- 2026-08-20 21:14–21:21 UTC
Additional diagnostics:
- Only one ChatGPT/Codex application bundle is installed.
- Codex CLI authentication with the same ChatGPT account succeeds.
- The locally stored CLI credential was not expired at the time of reproduction.
- Local Codex state database and thread inventory checks completed successfully.
- The behavior started immediately after the desktop client update.
- Web and mobile access continue to work.
- Signing out and signing back in does not resolve the issue.
- Each repeated sign-in appears to create another login/device session.
The log sequence suggests that a cached token-bearing account-settings request receives a 401, after which the desktop
process reports auth_token_missing and does not successfully refresh or reattach a token.
Relevant diagnostic information, including the affected thread context and logs, has already been submitted through
the ChatGPT desktop app's in-app feedback feature.
Feedback thread ID:
01a02106-db17-74c3-8ec3-ae1542802c94
Please use this thread ID to access the previously submitted diagnostics. Additional sanitized logs can be provided if
required.
22 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Update: the issue is no longer reproducing, but the sequence that resolved it suggests an account/onboarding-state interaction rather than corrupted local app data.
Before the issue disappeared, I performed a full clean reinstall and launched the app with none of the previous settings, conversations, databases, or caches restored. The affected account still reproduced the same sign-in loop in that completely fresh state. This makes restored local Codex data unlikely to be the direct cause.
The following sequence resolved the issue:
There was no additional reinstall, cache reset, or data restoration between steps 2 and 5.
This is only a correlation, not a confirmed root cause, but it suggests that the problem may involve a mismatch between TAC entitlement activation, an incomplete or undisplayed onboarding state, and desktop account-state synchronization. Completing the tutorial through the non-TAC account may have initialized shared desktop state or triggered a server-side account-state update.
It may also be related to why the account-settings request returning 401 caused the desktop authentication state to transition to
auth_token_missing, even though the same account remained authenticated and usable through web, mobile, and Codex CLI.It would be helpful to investigate:
The original logs and affected session context were submitted through in-app feedback:
01a02106-db17-74c3-8ec3-ae1542802c94Current status: resolved through the workaround above on this device, but the underlying product issue and root cause are not confirmed.
Related Issue: #39162
I can reproduce the exact same issue on Windows.
The failure sequence is also identical:
desktop_fetch_auth_401 hadToken=true
GET /backend-api/accounts/:param/settings
→ auth_token_missing
→ Unauthorized
Codex CLI remains authenticated and works normally.
Reinstalling the desktop app and updating to the latest available version did not resolve it.
100% what is happening to me, as I use Daybreak and am being forced to set up passkeys, I did so yesterday, and I am now in a login loop. As soon as I start a new chat or read an old one, I get logged out. It is fine in the classic app (not good for Codex) , mobile and browser. Also fine if I use Codex on a different machine. As per usual, OpenAI support has been useless.
This is what i sent to Support:
Codex Desktop on Windows signs me out whenever I create a new conversation. The issue began after moving my OpenAI account to passkey authentication.
All active OpenAI sessions have been revoked and Advanced Account Security has been disabled for troubleshooting.
Codex application state has been fully reset, including the Electron profile and MSIX local state. Native Codex authentication state was also reset by removing and regenerating ~/.codex/auth.json and cap_sid.
A fresh auth.json is successfully generated after login, confirming that authentication itself completes successfully.
Creating a new Codex conversation immediately causes the client to lose authentication again.
Codex logs show repeated requests to /backend-api/wham/tasks/list failing with HTTP 401 and specifically:
desktop_fetch_auth_401 hadToken=false
skipRetryReason=no_token_attached
tokenSource=cached
willRetry=false
followed by:
errorMessage={“detail”:“Unauthorized”}
There are no CODEX_ACCESS_TOKEN or OPENAI_API_KEY environment variables configured.
This appears consistent with the existing Codex Desktop authentication bridge issue where valid ChatGPT authentication exists on disk but the desktop client fails to attach the access token to ChatGPT backend requests.
Affected Codex package: OpenAI.Codex_26.818.2441.0_x64__2p2nqsd0c76g0
Windows platform, x64.
Same issue. Daybreak Red + TAC = Login screen loop/cli works just fine
Installed the Beta app and it works.
Additional reproduction detail from another affected macOS user:
This appears consistent with the observed sequence in related reports: thread resume succeeds first, then a desktop account/settings request returns 401, followed by
auth_token_missingand forced sign-out.A useful A/B control here is: leave Desktop open but do not open any thread -> Remote Control remains usable; open a thread in Desktop -> logout occurs.
Additional data point from a newer macOS build:
ChatGPT desktop 26.818.41705, released Aug 22, 2026.
The issue is still reproducible.
One potentially useful difference in my logs is that the first observed auth-state transition was triggered by
/wham/tasks/listwhile the client still reportedhadToken=true:After signing in again, login and account lookup succeeded, but about 8 seconds later
/accounts/{account_id}/settingsreturned 401 and produced the already-reportedhadToken=true → auth_token_missing → authenticatedAccountPresent=falsesequence.One other observation may help distinguish the affected layers:
While the ChatGPT desktop GUI on this Mac is showing the login screen, a remote Code session hosted by this same Mac remains fully operational.
In fact, I performed this entire diagnostic investigation remotely from the ChatGPT iPhone app through that Code session. It was able to access the Mac filesystem, read the local logs under
/Users/<username>/Library/Logs/com.openai.codex/, inspect multiple log files, and correlate the failure sequence above while the desktop GUI considered the account unauthenticated.So the Mac-hosted Code/remote-execution layer remains functional at the same time that the desktop account/UI layer reports no authenticated account.
I have not cleared Keychain or local Codex/Work state. macOS unified logs showed Keychain reads around the incident, but no logged
SecItemDeleteorSecItemUpdate.I can provide additional sanitized log excerpts if useful.
Additional macOS reproduction with a possible Advanced Account Security correlation.
Environment:
The issue has reproduced repeatedly from August 21 through August 23, including after:
~/.codex/auth.jsonA fresh login initially succeeds and the account is shown as authenticated. Opening or resuming an existing Codex thread then causes the desktop app to return to the sign-in state.
Sanitized sequence from the latest reproduction on 2026-08-23 (UTC):
As a control test immediately after a fresh login, the same unexpired access token received:
/backend-api/accounts/:account_id/settingsThis suggests that the account-settings 401 is causing the desktop client to discard an otherwise usable authentication state and then immediately attempt a refresh that fails with
refresh_token_invalidated.The timing strongly suggests a correlation with Advanced Account Security: the authentication loop began immediately after it was enabled.
Disabling Advanced Account Security is not a viable workaround because the account UI warns that doing so will remove access to some advanced models.
This appears closely related to #39696, but is reproducible on the current macOS production build 6971.
Reverting to version ChatGPT-26.810.7004.0 restores normal functionality; the cause of the login loop issue remains unclear.
I am experiencing the same issue on macOS with ChatGPT desktop version 26.818.41509 (build 6962).
The latest reproduction occurred on August 24, 2026 at approximately 00:42 China Standard Time (UTC+8). The desktop logs show
Failed to retrieve authentication token, status 432, andaccount_info_token_unavailable. The app displayed the sign-in screen while Codex tasks continued running. After fully quitting and reopening the app, it recovered immediately without requiring another login.I also observed multiple duplicate Codex login sessions in ChatGPT web settings. Signing out all sessions and signing in again did not prevent the issue from recurring.
In-app feedback ID:
01a02e09-6311-7433-8199-0f27a30a7d0cHaving exactly same issue after enabling advanced security as required by OpenAI by Sep 1st in order to stay compliant to retain access to "DayBreak Blue".
But as soon as advanced security is enabled, my MacOS codex desktop app (latest as of 8/24/2026) ended up in repeated authentication loop as soon as I click on an existing codex thread, note that authentication flow can complete normally in the advanced security flow using security key, the issue only surfaces when I try to click on a codex session.
Issue persists after clean reinstall which suggests the issue at openAI server end.
also, As soon as I disable advanced security, this issue is gone...
OpenAi pls fix this issue asap before Sep 1st, so that we can stay compliant as you requested, otherwise if I enable advanced security, my desktop codex turns un-usable because of the endless login loop.
Thanks.
same issue. please upvote OP
One additional data point that may help narrow the suspected Advanced Account Security correlation:
This affected account is not enrolled in Advanced Account Security. In the desktop app I can only see its status; in online account management the available action is to Enroll, which I have not done.
So in my case, the login loop occurred while AAS was disabled/not enrolled. That suggests AAS may be a trigger for some affected accounts, but it is not a prerequisite for the bug and may not be the root cause.
Additional macOS reproduction:
26.818.41509(build6962)Logged in using ChatGPT; the local authentication file remained present.Sanitized sequence:
The app was also repeatedly reconnecting to an unavailable Remote Control environment when
getAuthStatusbegan timing out.No
account/login, browser-launch, orrefresh_token_reusedevent appeared in the affected window. No authorization URL reached the default browser, so the displayed sign-in UI could not begin a supported browser login.This supports a desktop auth-bridge/UI-state failure rather than credentials actually being absent. A workspace-only settings 401 or unavailable remote connection should not replace an otherwise authenticated desktop session with the sign-in screen.
Raw logs are intentionally not attached because they contain account, device, thread, and environment identifiers.
Additional reproduction on the current macOS desktop release:
26.818.61809(build7019)Sanitized log sequence after login:
Earlier logs also showed a revoked Remote Control token:
To rule that out, I:
remote_control_enrollments..codex-global-state.json.SELECT COUNT(*) FROM remote_control_enrollments;returned0.After that cleanup, the Remote Control
token_revokederrors stopped, but the main desktop login loop remained withauth_token_missing.Other troubleshooting already completed:
This confirms the current failure is not caused by the persisted Remote Control enrollment or a stale app installation. A successful login is being converted to
auth_token_missingas soon as the first Codex conversation request is made.I’m seeing what appears to be the same issue on macOS, ChatGPT Desktop
26.818.61809.In my case, Home, Chat, Settings, and the Work home screen remain stable. However, opening an existing Work thread or starting a new Work causes authentication to fail within seconds.
The relevant log sequence is:
desktop_fetch_auth_401 hadToken=true ... /accounts/:param/settings
hasToken=false nullReason=auth_token_missing refreshToken=true
failureType=account_info_token_unavailable
Subsequent requests have hadToken=false.
Possible trigger / workaround: I had “Prevent sleep while running” enabled when this started happening. After disabling that setting, Work threads are currently stable again and the repeated sign-in loop has stopped.
I have not re-enabled the setting to confirm causality because the login loop makes Work effectively unusable for me, so I’m treating this as a suspected trigger rather than a confirmed root cause.
Each re-authentication also created a new
Codex / macOSentry under ChatGPT Active Sessions.Update: still stable after ~17 hours and multiple Work threads with “Prevent sleep while running” disabled.
Adding a data point — feedback ID
no-active-thread-01a03e9b-3c8e-7183-8c24-8f4d2f274e87, macOS, app 26.820.60940.Captured the renderer console on the bounce. Opening a conversation fires:
GET /backend-api/accounts/{id}/settings→ 401 "Missing valid access token or actor biscuit"→ auth_status_result nullReason=auth_token_missing
→ chatgpt-account-lookup: authenticatedAccountPresent=false, failureType=account_info_token_unavailable
→ conversation view unmounts to sign-in.
Deminified client
fetchAuthToken()shows the app-server returns{authMethod:'chatgpt', authToken:null}— it can't produce the account-scoped token; the client caches null and the newer builds gate the
conversation view on it. auth.json is never cleared (token stays valid on disk).
May not affect all accounts — could correlate with an account carrying some
non-default server-side entitlement flags.
(Details are attached to the feedback ID above if someone from OpenAI wants to check.)
26.810.52044 works; 26.814.41407, 26.818.x, and 26.820.60940 all broken with the identical chain.
Ruled out locally: fresh login, env vars, config.toml/MCP, and every remote (SSH + cloud) connection — no change.
Downgrade to 26.810 is the only fix I've found.
Also, I tried disabling all keep-awake like settings, closed and re-opened the app and that did not resolve my issue unfortunately.
Data point on the AAS theory: my account is enrolled in Advanced Account Security and still hits this — combined with the earlier non‑enrolled report, AAS looks orthogonal, not causal. Common factor across reports is the app version (26.814+), not an account flag.
On Monday I rolled back to 26.803.81509 which fixed everything and was less painful then installing the beta build others recommended. It's been working fine ever since so if you're using MacOS use this build for now.
Try the steps mentioned in [this issue](https://github.com/openai/codex/issues/40541):
~/.codex/auth.json.It worked for me and stayed stable.
macOS 26.6.2, ChatGPT 26.820.60940
Logging out of all sessions via "Settings > Security and login > Sesstions > Active sessions > Log out all" on chatgpt.com resolved the issue.