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

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 ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗