ChatGPT desktop Codex sign-in loop after successful authentication
Title: ChatGPT desktop Codex sign-in loop after successful authentication
After signing in with ChatGPT, Codex in the macOS desktop app briefly recognizes my account, then immediately returns to the sign-in screen. The bundled Codex CLI remains authenticated and successfully completes prompts.
Environment:
- macOS 26.3.1 (25D2128)
- ChatGPT desktop 26.820.60940 (build 7119), bundle com.openai.codex
- Bundled CLI 0.150.0-alpha.8
- MonoProxy: HTTP 127.0.0.1:8118, SOCKS5 127.0.0.1:8119
Reproduction:
- Sign in using ChatGPT/device authorization.
- CLI login status reports “Logged in using ChatGPT”; an authenticated prompt returns AUTH_OK.
- Launch ChatGPT with proxy variables inherited.
- Open Codex; it returns to the sign-in page.
Key log sequence:
- account lookup succeeds: authenticatedAccountPresent=true
- GET /backend-api/accounts/:param/settings uses cached token but returns 401
- error: “Missing valid access token or actor biscuit”
- auth status then changes to hasToken=false, nullReason=auth_token_missing, refreshToken=true
- account lookup fails with account_info_token_unavailable
- subsequent /wham requests return 401 without an attached token
I reinstalled the official signed app, reset its preferences/caches/containers, logged out/in again, and tested system/global proxy plus explicit proxy variables. The CLI and WebSocket connection now work, but the desktop 401/login loop remains.
Please investigate whether the desktop client or backend is losing the actor biscuit or account/workspace binding. No tokens, auth.json, device codes, or account IDs are included.
1 Comment
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action