Refresh token already used causes desktop app to stay offline and unable to reconnect
What version of the Codex App are you using (From “About Codex” dialog)?
Codex 26.527.31326
What subscription do you have?
Free
What platform is your computer?
Microsoft Windows NT 10.0.19045.0 x64
What issue are you seeing?
The Codex desktop app became disconnected unexpectedly.
On the mobile ChatGPT app, my Windows machine is detected correctly, but it always shows "Offline".
In the desktop app, Codex is stuck in a reconnect loop and displays the following error:
"Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again."
As a result:
- Mobile app cannot connect to the desktop machine.
- Desktop app remains disconnected.
- Reconnect attempts do not recover automatically.
The machine is powered on and connected to the Internet.
What steps can reproduce the bug?
Use the desktop app normally.
After some time, the desktop app loses authentication.
The desktop app enters a reconnect loop.
Mobile app continues to detect the machine but shows it as Offline.
Desktop app displays:
"Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again."
What is the expected behavior?
The desktop app should automatically refresh authentication tokens without entering a reconnect loop.
If token refresh fails, the application should provide a reliable recovery path and should not remain permanently offline.
The mobile app should either reconnect automatically or clearly indicate that the desktop app requires re-authentication.
Additional information
The mobile app can still discover the Windows machine and display its device information, which suggests that device registration remains intact.
Only the online connection state appears to be broken after the token refresh failure.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗