You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex Desktop gets stuck with refresh-token-revoked auth error during active session #25443
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?
Open Codex Desktop on macOS.
Work in an active Codex session.
During normal usage, Codex Desktop enters an auth failure state.
The active session/input area shows the refresh-token-revoked error quoted above.
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.
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
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?
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:
Codex Desktop was already signed in and working in an active session.
The session suddenly became unable to continue.
The UI showed: “Your access token could not be refreshed because your refresh token was revoked. Please log out and sign in again.”
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.
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.
[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.
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.
Activity
github-actions commentedon May 31, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
[-]Codex Desktop auth token becomes revoked after uploading feedback[/-][+]Codex Desktop gets stuck with refresh-token-revoked auth error during active session[/+]etraut-openai commentedon May 31, 2026
The
/feedbackcode 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?GGBondBlueWhale commentedon May 31, 2026
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:
I will update the issue if I see it again or find a reliable way to reproduce it.
ITFinesse commentedon Jun 6, 2026
happens in va code
zdimension commentedon Jun 16, 2026
Getting this in VS Code, same behavior.
ChinnoDog commentedon Sep 22, 2026
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.
juchong commentedon Sep 23, 2026
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:
followed later by:
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:
turn/startbecause 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:
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.
juchong commentedon Sep 23, 2026
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.
thecosmicskye commentedon Sep 25, 2026
"Your access token could not be refreshed because your refresh token was revoked. Please log out and sign in again." happening over and over
RemiKalbe commentedon Sep 25, 2026
Same issue... and funny timing here @thecosmicskye. Maybe there is a more global issue?
Edit: yes
luisatlive commentedon Sep 26, 2026
Was hitting this today until I upgraded to 26.924.20706