VS Code Codex extension stuck with "refresh token already used" – cannot re-authenticate (WSL, Google login)

Resolved 💬 4 comments Opened Mar 10, 2026 by mkikunda Closed Mar 10, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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?

  1. Install Codex extension in VS Code
  2. Use Google login to authenticate
  3. Open the Codex sidebar
  4. 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.

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 5 months ago

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

  • #13238
  • #12755

Powered by Codex Action

mkikunda · 5 months ago

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."

etraut-openai contributor · 5 months ago

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 /feedback to upload your logs and post the thread ID here. That will help us diagnose the root cause of this issue.

mkikunda · 5 months ago

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.