[Bug]: Codex usage limits intermittently reset to 100% in T3 Code desktop after refresh #11463
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/desktop
Steps to reproduce#
- Start T3 Code desktop on Windows and use the Codex provider with a ChatGPT Business account.
- Use Codex enough that the account has consumed part of both the rolling 5-hour window and the weekly window.
- Open Usage → Limits and refresh the limits view.
- Repeat the refresh several times while comparing the displayed values with the Codex CLI usage status.
- On the affected account, the correct state is sometimes displayed briefly, then the values change back to a full/default-looking state.
Expected behavior#
The Usage → Limits page should display the latest rate-limit snapshot from the authenticated Codex account consistently. A refresh should not replace valid values with defaults or an older snapshot. The 5-hour and weekly percentages and reset timers should remain aligned with the Codex CLI, and 100% remaining should be shown only when the provider reports 100% remaining.
Actual behavior#
The display is intermittent. In one correct capture, T3 Code shows Session: 17% left and Weekly: 71% left. After refreshing, the correct values can appear for only a fraction of a second, then the page resets to Session: 100% left with a 4h 59m countdown and Weekly: 84% left with a 6d 12h countdown. Other captures show the correct 17% / 71% values again.
The Codex CLI reports the consumed state consistently: 17% left for the 5-hour limit (reset in about 3 hours 26 minutes in the capture) and 71% left for the weekly limit (reset at 17:19 on 19 Sep). Repeated refreshes in T3 Code sometimes show the correct state and sometimes the incorrect 100% / 84% state.
Impact#
Minor bug or occasional failure
Version or commit#
T3 Code desktop Nightly (the exact nightly build is not visible in the screenshots)
Environment#
Windows 11 Pro 24H2, 64-bit, build 26200; T3 Code desktop Nightly; Codex CLI v0.154.0; Codex model gpt-5.6-luna; ChatGPT Business workspace account.
Logs or stack traces#
No raw logs attached. The CLI screenshot was redacted before sharing: the account email, workspace/plan identity, and session UUID were removed. No credentials, tokens, or session identifiers are included below.
Observed values:
| Source | 5-hour/session | Weekly |
| --- | --- | --- |
| Codex CLI, consistent capture | 17% left, resets in about 03:26 | 71% left, resets at 17:19 on 19 Sep |
| T3 Code, correct capture | 17% left, resets in about 2h 8m | 71% left, resets in about 6d 16h |
| T3 Code after refresh, incorrect capture | 100% left, resets in 4h 59m | 84% left, resets in about 6d 12h |
The supplied T3 Code screenshots show both the correct and incorrect states. The terminal evidence has been redacted so it does not expose the account email, workspace identity, or session UUID.
Related tracker items checked:
- #10835 covers two distinct Codex subscriptions sharing one email, which is not established here.
- #10701 covers duplicate subscription rows in /usage-limits, which is not the observed symptom.
- #11136 covers account switching, which is not the observed symptom.
Screenshots, recordings, or supporting files#
Workaround#
Refreshing again may eventually show the correct values, but there is no reliable workaround. The Codex CLI usage display is the dependable reference.
screen-gd(GitHub profile, opens in a new tab) added labelsbug
screen-gd(GitHub profile, opens in a new tab) added labelsneeds-triage
I think this report currently contains two plausible mechanisms that should be separated before patching it:
- Same Codex home, login switched while a live app-server is still running. That is #11136 / PR #11147: Settings can probe the new login while an existing thread process still uses the old credentials.
- Same email, different logical ChatGPT workspace/subscription. That is #10835 / PR #10845, with the stronger identity follow-up in #13992. Email alone cannot distinguish Personal from Business, and plan labels still do not distinguish two same-plan workspaces.
The additional reproduction here (Personal → Business under the same email) could hit either shape.
The most useful next evidence would be, for the incorrect and correct snapshots, the non-secret logical account/workspace identity if available (
chatgpt_account_id), plus whether the account switch happened by:- running
codex loginin the same home, or - selecting a separately configured Codex instance/shadow home.
If the wrong Usage snapshot has the old
chatgpt_account_id, this is account-switch/cache/session state. If two live snapshots share email but have different account ids and the collector collapses them, it is the identity bug. We should avoid using the observed 100%/84% values themselves to infer which account produced them.Note
🤖 Claude Opus 5.5 responding on behalf of Theo
Thanks for the report. One part of this is fixed on main in #18723 and #17711. Please test on the nightly built from main on 2026-10-21, or on the next stable release. One part is still open: login switch in the same Codex home while an app-server keeps old credentials (11147 unmerged). If that part still matters to you, please open a new issue for that part only.
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Additional finding: switching from Personal to Business can show the Personal limits#
There is a second reproduction path that may explain the intermittent values reported above:
In the accompanying CLI capture, the identifying account value is redacted, but the plan is shown as Plus. That capture reports 100% left for the 5-hour limit (reset in about 06:44) and 84% left for the weekly limit (reset at 14:00 on 19 Sep), even though the active T3 Code context had been switched to the Business workspace.
This suggests that the provider/account switch may leave the previous account's limits in the cache, or that limits are being keyed by the shared email without including the subscription/workspace identity. It may be related to #10835, which describes Personal and Business Codex subscriptions sharing an email and being merged in Usage → Limits.
The CLI version in this capture is v0.154.0 and the model is gpt-5.6-luna. The email address, local path, and session UUID are not included.