VS Code Codex extension stuck with "refresh token already used" – cannot re-authenticate (WSL, Google login)
What version of the Codex App are you using (From “About Codex” dialog)?
26.304.20706 (VS Code extension)
What subscription do you have?
ChatGPT Pro
What platform is your computer?
Windows 11 with WSL Ubuntu VS Code running in WSL mode
What issue are you seeing?
The Codex VS Code extension is stuck with the error:
"Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again."
However, there is no way to log out or re-authenticate.
The extension never asks to log in again and remains permanently stuck in this state.
<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/c2433fc2-e88f-4ac6-9bb7-4d452edb8621" />
<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/c71b1885-23ce-4a73-9bbd-d146b2077719" />
What steps can reproduce the bug?
- Install Codex extension in VS Code
- Use Google login to authenticate
- Open the Codex sidebar
- Codex displays the refresh token error
After that the extension cannot recover.
It never asks for login again.
What is the expected behavior?
Codex should allow the user to log out and authenticate again when the refresh token becomes invalid.
Additional information
Environment:
VS Code
Windows 11
WSL Ubuntu
Codex extension installed only in WSL
Troubleshooting already attempted:
- reinstall Codex extension
- remove .vscode-server
- restart VS Code
- restart computer
- ensure Codex only installed in WSL
- clear VS Code storage
The issue persists.
This prevents using Codex entirely inside VS Code.
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This seems identical to issues #13238 and #12755.
Environment:
Windows 11
VS Code
WSL Ubuntu
Google login
Codex extension installed in WSL
The extension never prompts for login again and remains stuck with:
"Your access token could not be refreshed because your refresh token was already used."
You can log out using the last menu item under the gear icon. Then log in again. That should clear this problem.
If this occurs again, please use
/feedbackto upload your logs and post the thread ID here. That will help us diagnose the root cause of this issue.The issue is now resolved.
Solution:
Open the Codex sidebar → click the gear icon → select the last menu item (Log out) → then sign in again.
This cleared the refresh token error:
"Your access token could not be refreshed because your refresh token was already used."
Thank you for the help.