ChatGPT desktop Codex sign-in loop after successful authentication

Open 💬 1 comment Opened Aug 26, 2026 by ZEN-MAKER-AI
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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:

  1. Sign in using ChatGPT/device authorization.
  2. CLI login status reports “Logged in using ChatGPT”; an authenticated prompt returns AUTH_OK.
  3. Launch ChatGPT with proxy variables inherited.
  4. 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.

View original on GitHub ↗

1 Comment

github-actions[bot] contributor · 2 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #40395
  • #39718
  • #40761
  • #40374
  • #40815

Powered by Codex Action