Skip to content

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

Closed

Description

@mkikunda

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.

Image Image

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.

Activity

  1. added
    app
    on Mar 10, 2026
  2. added
    bug
    extension
    auth
    windows-os
    on Mar 10, 2026
  3. github-actions commented on Mar 10, 2026

    @github-actions
    Contributor
  4. mkikunda commented on Mar 10, 2026

    @mkikunda
    Author

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

  5. etraut-openai commented on Mar 10, 2026

    @etraut-openai
    Contributor

    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.

  6. mkikunda commented on Mar 10, 2026

    @mkikunda
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appauthbugextensionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions