Skip to content

Codex Desktop gets stuck with refresh-token-revoked auth error during active session #25443

Open

Description

@GGBondBlueWhale

What version of the Codex App are you using (From “About Codex” dialog)?

26.527.31326 (3390)

What platform is your computer?

macOS Tahoe 26.5, MacBook Pro 16-inch, Apple M5 Max, 128 GB RAM

What issue are you seeing?

Codex Desktop can suddenly enter a broken authentication state during an active session. The active chat becomes unusable and the UI shows:

Your access token could not be refreshed because your refresh token was revoked. Please log out and sign in again.

Important clarification: this was not caused by uploading feedback. The feedback was submitted only after this authentication problem had already appeared, in order to report the bug.

Feedback ID for diagnostics only:

019e7d7b-7b3e-7e70-a2b1-e94560dc55a0

This is disruptive because the app loses the ability to continue the current Codex session or submit follow-up changes until the user signs out and signs back in. The current conversation/session context and pending work may be interrupted.

What steps can reproduce the bug?

  1. Open Codex Desktop on macOS.
  2. Work in an active Codex session.
  3. During normal usage, Codex Desktop enters an auth failure state.
  4. The active session/input area shows the refresh-token-revoked error quoted above.
  5. Only after seeing this problem, submit feedback from the feedback dialog to report it.

What is the expected behavior?

Codex Desktop should not suddenly get stuck with a revoked refresh-token state during an active session. If re-authentication is genuinely required, the app should provide an in-app recovery flow that preserves the current conversation/session context and pending work, instead of leaving the session unusable.

Additional information

No screenshots are attached. The feedback ID above is provided only as a diagnostic reference for the already-existing auth failure.

Activity

  1. added
    bug
    app
    auth
    on May 31, 2026
  2. changed the title [-]Codex Desktop auth token becomes revoked after uploading feedback[/-] [+]Codex Desktop gets stuck with refresh-token-revoked auth error during active session[/+] on May 31, 2026
  3. etraut-openai commented on May 31, 2026

    @etraut-openai
    Contributor

    The /feedback code path doesn't require authentication, and it doesn't modify your auth token. I suspect this was a coincidence. Have you seen this more than once? Are you able to repro?

  4. GGBondBlueWhale commented on May 31, 2026

    @GGBondBlueWhale
    Author

    The /feedback code path doesn't require authentication, and it doesn't modify your auth token. I suspect this was a coincidence. Have you seen this more than once? Are you able to repro?

    Thanks for the clarification. Yes, I agree this is likely not caused by /feedback.

    To clarify, the auth error appeared first during the active Codex Desktop session. I submitted feedback only after seeing the error, so the feedback ID is just for diagnostics.

    So far I have only observed this specific “refresh token was revoked” state once in this Codex Desktop session, and I do not yet have a deterministic repro. The visible sequence was:

    1. Codex Desktop was already signed in and working in an active session.
    2. The session suddenly became unable to continue.
    3. The UI showed: “Your access token could not be refreshed because your refresh token was revoked. Please log out and sign in again.”
    4. I then uploaded feedback to report the already-existing auth failure.

    I will update the issue if I see it again or find a reliable way to reproduce it.

  5. ITFinesse commented on Jun 6, 2026

    @ITFinesse

    happens in va code

  6. zdimension commented on Jun 16, 2026

    @zdimension

    Getting this in VS Code, same behavior.

  7. ChinnoDog commented on Sep 22, 2026

    @ChinnoDog

    I hit this in the ChatGPT macOS desktop app after my organization's IdP temporarily deactivated/re-activated my account.
    The app failed at startup with:
    Your access token could not be refreshed because your refresh token was revoked. Please log out and sign in again.
    The problem was that the app could not start far enough to actually log out.
    This fixed it:
    rm -f ~/.codex/auth.json
    Relaunching ChatGPT then prompted for authentication and worked normally.
    Environment: macOS, ChatGPT desktop app.
    It would be useful if the app handled this condition by clearing invalid auth state and returning to the login screen instead of failing startup.

  8. juchong commented on Sep 23, 2026

    @juchong

    Correction after reviewing the actual remote-development architecture and the Desktop logs:

    My earlier comment misdiagnosed this as a local Codex Desktop authentication problem.

    This setup intentionally uses Codex Desktop on macOS as a client for a remote Codex app-server running on TrueNAS over SSH. The relevant path is:

    macOS ChatGPT/Codex Desktop -> SSH -> TrueNAS -> remote Codex app-server

    In that context, the important Desktop log entries are the remote transport failures, including:

    [AppServerTransportSshWebsocket] ssh_websocket_v0.remote_login_shell_command_completed
    stdout="codex-cli 0.154.0"
    

    followed later by:

    [AppServerTransportSshWebsocket] ssh_websocket_v0.proxy_command_failed
    code=255
    ...
    Killed by signal 15
    

    The local OAuth/CLI checks I previously cited only proved that the local macOS Codex client was authenticated and functional. They did not validate the remote TrueNAS Codex app-server connection, which is the path that was actually failing.

    So please do NOT treat my earlier reproduction as evidence that:

    • Daybreak Blue approval caused an auth regression,
    • the local macOS OAuth session was the root cause, or
    • Codex Desktop was blocking turn/start because of stale local auth state.

    The more accurate product concern is that a failure in the remote-server/SSH app-server connection path was surfaced in the Desktop UI as:

    Your access token could not be refreshed because your refresh token was revoked. Please log out and sign in again.
    

    That error message was misleading for this reproduction and sent troubleshooting toward authentication even though the underlying failure was in the remote-server connection.

    I am retracting the auth-root-cause conclusions from my previous comment.

  9. juchong commented on Sep 23, 2026

    @juchong

    Retraction/correction to my previous Daybreak timing note:

    The issue did begin immediately after Daybreak Blue approval, but after reviewing the remote-development setup and logs, I do not have evidence that Daybreak Blue approval, account entitlements, or OAuth provisioning caused the failure.

    The actual failure was in the remote TrueNAS Codex app-server / SSH connection path. The Daybreak timing appears to have been coincidental.

    Please disregard my earlier speculation about Daybreak-related auth/provisioning as the root cause.

  10. thecosmicskye commented on Sep 25, 2026

    @thecosmicskye

    "Your access token could not be refreshed because your refresh token was revoked. Please log out and sign in again." happening over and over

  11. RemiKalbe commented on Sep 25, 2026

    @RemiKalbe

    Same issue... and funny timing here @thecosmicskye. Maybe there is a more global issue?

    Edit: yes

    Image
  12. luisatlive commented on Sep 26, 2026

    @luisatlive

    Was hitting this today until I upgraded to 26.924.20706

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

    appauthbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions