Windows desktop intermittently prompts for login after getAuthStatus takes ~10 seconds
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- PR merge metrics
- PR metrics pending
Description
Summary
The Codex/ChatGPT Windows desktop app intermittently treats a cached authenticated session as signed out during startup and prompts for browser login again.
The failures correlate with the initial getAuthStatus request taking almost exactly 10 seconds. A successful cold relaunch completed the same request in about 5.2 seconds.
Environment
- Windows desktop app package:
OpenAI.Codex_26.915.4065.0 - Desktop release reported in logs:
26.915.31945 - Platform: Windows x64
- Sign-in method: ChatGPT
Observations
| Local startup time (UTC+8) | First getAuthStatus duration |
Result |
|---|---|---|
| 2026-09-19 23:46:40 | 10,030 ms | App showed signed-out state and started account/login/start |
| 2026-09-20 21:42:48 | 10,031 ms | App showed signed-out state and started account/login/start |
| 2026-09-20 23:00:17 | 5,237 ms | Existing session was accepted; no login flow started |
Additional checks:
- The successful test was a new app process, not merely reopening the existing window.
%USERPROFILE%\.codex\auth.jsonexisted throughout the controlled exit/relaunch and was unchanged during the successful startup.- The cached access token was not expired and a refresh token was present.
- No actual logout or credential-clear event was found in the preceding seven days of desktop logs.
- The user exits through the app's normal
Exitaction; this did not delete or modify the auth cache during a controlled test. - Completing browser login succeeds and restores access to the existing tasks, but requiring repeated login is unexpected.
Expected behavior
A cached ChatGPT session should be reused or refreshed automatically. An authentication-status timeout should not be converted into a signed-out state.
Suspected behavior
The desktop startup path may have a ~10-second boundary around getAuthStatus. When the check reaches that boundary, the UI appears to treat the result as unauthenticated and begins a fresh login instead of retrying or surfacing a transient authentication-check error.
Reproduction
The issue is intermittent:
- Sign in normally.
- Exit the Windows desktop app using
Exit. - Launch it again after the app has been closed for some time.
- On affected launches, the app presents the signed-out screen and starts a new browser login.
No raw logs, account identifiers, tokens, or conversation contents are included in this report.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin at the Windows desktop startup path that issues the initial getAuthStatus request, and inspect how its ~10-second boundary handles timeout versus unauthenticated results. Compare the 10,030 ms and 5,237 ms cases using desktop logs and the unchanged %USERPROFILE%\.codex\auth.json; account/login/start should not begin when a cached token is valid. Done means transient status delays do not trigger a fresh login and existing sessions are reused or refreshed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- authentication, desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100