Windows Codex Desktop authentication cannot recover after refresh_token_invalidated (0.150.x)
What version of the Codex App are you using (From “About Codex” dialog)?
0.150.0-alpha.8 (app-server)
What subscription do you have?
ChatGPT Pro
What platform is your computer?
Windows 10 x64
What issue are you seeing?
Summary
After renewing my ChatGPT Pro subscription, Codex Desktop and the local VSCode Codex extension entered a broken authentication state.
Remote VSCode sessions that were already authenticated before the renewal continue to work normally.
However, any new authentication on my local Windows machine fails.
Desktop login eventually reports:
Your access token could not be refreshed because your refresh token was revoked. Please log out and sign in again.
The browser OAuth flow opens successfully, but Desktop never completes authentication.
---
Environment
- Windows 10 x64
- ChatGPT Pro
- Codex Desktop 0.150.0-alpha.8
- VSCode Codex client_version=0.150.0
- Chrome
- Corporate network
---
Reproduction
- Launch Codex Desktop.
- Click "Continue with ChatGPT".
- Browser opens.
- Login succeeds.
- Select Personal Workspace.
- Click Continue.
- Browser remains on the consent page or closes.
- Desktop eventually shows:
Login timed out
or
Your access token could not be refreshed because your refresh token was revoked.
---
Expected
Desktop should complete OAuth and obtain a fresh access token.
---
Actual
Desktop continuously receives HTTP 401 responses.
Authentication never recovers.
Remote VSCode sessions authenticated before the issue continue to work.
Local Windows authentication cannot recover.
---
Evidence
Desktop log:
- auth_token_missing
- hasToken=false
- refreshToken=true
Desktop repeatedly reports:
desktop_fetch_auth_401
VSCode repeatedly reports:
token_invalidated
refresh_token_invalidated
401 Unauthorized
Examples:
GET /wham/tasks/list -> 401
GET /wham/usage -> 401
GET /backend-api/codex/models -> 401
The browser is already logged into ChatGPT Pro.
---
Already Tried
- Restart Desktop
- Restart Windows
- Browser Incognito login
- Clear Codex Local Storage
- Clear Codex Network cache
- Clear Cache
- Delete AppData cache
- Verified localhost callback listener
- Verified DNS
- Verified browser login
- Verified ChatGPT Pro is active
Nothing resolved the issue.
---
Additional Observation
Remote VSCode sessions authenticated before the incident continue working.
Only local Windows authentication fails.
It appears the Desktop client cannot recover after the refresh token becomes invalid.[
Codex_logs_20260826.zip
vscode-codex-output.log
](url)
What steps can reproduce the bug?
- Launch Codex Desktop on Windows 10.
- Click "Continue with ChatGPT".
- Chrome opens the OAuth login page.
- Log in successfully with a ChatGPT Pro account.
- Select "Personal Workspace".
- Click "Continue".
- Browser stays on the consent page (or returns without completing login).
- Codex Desktop eventually reports:
- Login timed out
- or "Your access token could not be refreshed because your refresh token was revoked."
For the VSCode extension:
- Open a local Windows VSCode window.
- Open the Codex sidebar.
- Existing authentication is rejected.
- The extension continuously reports 401/token_invalidated errors.
What is the expected behavior?
Codex Desktop and the VSCode extension should discard the invalid refresh token, complete the browser OAuth flow, obtain a new access token, and recover automatically without entering a permanent authentication failure state.
Additional information
Important Findings
During investigation I collected logs from both Codex Desktop and the VSCode extension.
Desktop initializes successfully and the embedded app-server starts correctly.
After receiving the first authentication failure the client transitions into the following state:
- refreshToken=true
- hasToken=false
- auth_token_missing
After that point the Desktop never performs a successful authentication recovery.
Instead it repeatedly retries authenticated requests without attaching a usable access token.
The application continuously sends requests such as:
- /wham/tasks/list
- /wham/usage
- /backend-api/codex/models
Every request receives HTTP 401.
The VSCode extension also reports:
- token_invalidated
- refresh_token_invalidated
Meanwhile:
- ChatGPT Web works normally.
- The account is ChatGPT Pro.
- Existing remote VSCode sessions authenticated before the incident continue to work.
- Only new authentication on the local Windows machine fails.
The issue does not reproduce in an existing Remote SSH VSCode session authenticated before the incident, but consistently reproduces on new local Windows authentication.
<img width="1905" height="713" alt="Image" src="https://github.com/user-attachments/assets/e2568ff4-a94f-46f1-a12a-58a415dd7a1a" />
Codex_logs_20260826.zip
vscode-codex-output.log
This issue appears to be an authentication state recovery bug rather than an OAuth login failure.
The browser login succeeds, but after the refresh token becomes invalid the Desktop enters a permanent unauthenticated state and never recovers automatically.
Logs and screenshots are attached.
The issue started immediately after renewing my ChatGPT Pro subscription.
I can still use Codex in an existing Remote SSH VSCode session that was authenticated before the renewal.
Only new authentication on the local Windows machine fails.
1 Comment
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action