Windows Desktop hangs after successful OAuth and incorrectly reports "Your access token could not be refreshed because your refresh token was revoked
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- authentication, desktop
Research direction
Start by reproducing the Sign in with ChatGPT flow on Windows 11 and compare the fresh %USERPROFILE%.codex\auth.json with the desktop behavior; the report says Codex CLI succeeds while ChatGPT.exe hangs. Review the mentioned .codex-global-state.json and the desktop authentication/session initialization path. Done means the desktop completes OAuth and opens normally without the revoked-refresh-token message.
Written by the indexing model from the issue text.
Description
What version of the Codex App are you using (From “About Codex” dialog)?
OpenAI.Codex 26.721.4979.0 ChatGPT.exe 150.0.7871.128 Codex CLI v0.146.0-alpha.3.1
What subscription do you have?
Pro
What platform is your computer?
Windows 11 x64
What issue are you seeing?
Summary
After successfully authenticating through the browser, the Windows ChatGPT/Codex desktop application immediately reports:
Your access token could not be refreshed because your refresh token was revoked. Please log out and sign in again.
However:
Browser OAuth completes successfully.
A fresh %USERPROFILE%.codex\auth.json is created.
Codex CLI authenticates successfully and works normally.
Only the desktop application fails.
Environment
Windows 11 x64
OpenAI.Codex 26.721.4979.0
ChatGPT.exe 150.0.7871.128
Codex CLI v0.146.0-alpha.3.1
ChatGPT Pro subscription
Reproduction
Launch Codex Desktop.
Choose Sign in with ChatGPT.
Browser opens.
Authenticate successfully.
Browser displays "Signed in to Codex".
Return to the desktop application.
Expected
Desktop completes authentication and opens normally.
Actual
Desktop immediately displays:
Your access token could not be refreshed because your refresh token was revoked. Please log out and sign in again.
The desktop app never becomes usable.
Diagnostics
Verified during troubleshooting:
Browser OAuth succeeds.
A fresh auth.json is created.
Codex CLI authenticates successfully and works normally using the same account.
Desktop package was completely uninstalled and reinstalled.
Repair and Reset were both performed.
Windows Event Viewer records:
Application Hang
Event ID: 1002
The program ChatGPT.exe version 150.0.7871.128
stopped interacting with Windows and was closed.
Task Manager shows ChatGPT.exe and multiple Codex helper processes remain running while the UI is hung.
Troubleshooting already attempted
Logout/login
Browser reauthentication
Deleted auth.json
Deleted .codex-global-state.json
Cleared Windows Credential Manager
Repair
Reset
Complete uninstall/reinstall
Windows reboot
Fresh OAuth login
No change.
Additional observation
The same authentication works correctly in the Codex CLI.
This suggests the browser is successfully issuing valid credentials and that the failure is isolated to the Windows desktop application's authentication/session initialization path rather than the refresh token actually being revoked.
What steps can reproduce the bug?
See above
What is the expected behavior?
No response
Additional information
No response
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·