codex - 💡(How to fix) Fix Weekly usage % jumps 18pp when plan_type flips pro -> prolite despite only 26M tokens [4 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#21216Fetched 2026-05-06 06:24:41
View on GitHub
Comments
4
Participants
2
Timeline
11
Reactions
0
Author
Timeline (top)
commented ×4labeled ×3renamed ×2cross-referenced ×1

Error Message

This changes the likely diagnosis: the anomaly appears related to an account/tier transition rather than a random arithmetic error in one hourly row. The account was reportedly downgraded from Pro 20x to Pro 5x and later restored to Pro 20x; after restoration, the weekly meter returned to 0% with a new weekly reset timestamp.

Root Cause

The original anomaly still looks real. During the prolite interval, the weekly meter behaved as if a much smaller quota/denominator was active. The local logs do not prove the exact denominator was Plus/1x, but the token math still rules out the observed 18pp jump being caused by the recorded token volume.

RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.128.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.5 xhigh

What platform is your computer?

Darwin 25.5.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

VSCode

What issue are you seeing?

All times below are Europe/London (BST).

Update: likely tied to subscription tier flip

After rechecking the local .codex logs, the anomalous jump coincides exactly with the rate-limit metadata changing from plan_type: pro to plan_type: prolite.

Snapshot (Europe/London)plan_type5h usedWeekly usedWeekly reset
2026-05-05 16:44:41 BSTpro1%9%2026-05-12 05:02:46 BST
2026-05-05 16:45:12 BSTprolite13%27%2026-05-12 05:02:46 BST
2026-05-05 17:46:50 BSTprolite1%0%2026-05-12 17:45:25 BST

This changes the likely diagnosis: the anomaly appears related to an account/tier transition rather than a random arithmetic error in one hourly row. The account was reportedly downgraded from Pro 20x to Pro 5x and later restored to Pro 20x; after restoration, the weekly meter returned to 0% with a new weekly reset timestamp.

The original anomaly still looks real. During the prolite interval, the weekly meter behaved as if a much smaller quota/denominator was active. The local logs do not prove the exact denominator was Plus/1x, but the token math still rules out the observed 18pp jump being caused by the recorded token volume.

The Bug

Weekly usage spikes from 9% → 27% (an 18 percentage point jump) between 15:00 and 16:00, but the token count for that hour is only 26,338,028 — roughly 21× too small to explain the jump.

The Numbers Don't Add Up

TimeWeekly UsedTokens (cumulative)
15:009%~279,382,735
16:0027%~279,382,735 + 26,338,028

If 279M tokens ≈ 9%, implied weekly quota ≈ 3.1B tokens.

An 18pp jump on that denominator requires ~558M tokens in one hour.

Actual tokens shown for that hour: 26.3M — a 20× discrepancy.

Secondary Anomalies

  • 12:00 — row missing entirely from hourly breakdown
  • 07:00 — has token count but no weekly usage snapshot

What steps can reproduce the bug?

  1. Observe the hourly usage table for a day with significant API activity
  2. Compare the weekly usage % column against the cumulative token count column at each hour
  3. Look at the 15:00 → 16:00 transition: usage jumps from 9% to 27%, but the delta token count for that hour is only ~26M
  4. Do the math: the jump implies ~558M tokens consumed in that hour — the table says 26M

Thread ID: 019df8ef-78e8-7620-bbc7-1e56fb1b9f7e

What is the expected behavior?

Weekly usage % should be strictly consistent with cumulative token counts at every hour. A 26M token hour on a ~3.1B token weekly quota should move the needle by ~0.8 percentage points, not 18.

Additional information

No response

extent analysis

TL;DR

The issue is likely caused by an incorrect weekly quota denominator during the prolite interval, resulting in an inconsistent weekly usage percentage.

Guidance

  • Verify the weekly quota denominator for the prolite tier to ensure it matches the expected value.
  • Check the logic for calculating the weekly usage percentage to ensure it is correctly using the weekly quota denominator.
  • Investigate the account/tier transition process to ensure that the weekly quota denominator is correctly updated when the tier changes.
  • Review the token math to ensure that it is correctly calculating the expected weekly usage percentage based on the token count.

Example

No code snippet is provided as the issue is related to the logic and data rather than a specific code implementation.

Notes

The issue seems to be related to the account/tier transition and the resulting change in the weekly quota denominator. The provided data suggests that the weekly quota denominator during the prolite interval was incorrect, resulting in an inconsistent weekly usage percentage.

Recommendation

Apply a workaround to correctly calculate the weekly usage percentage during the prolite interval, taking into account the correct weekly quota denominator. This may involve updating the logic for calculating the weekly usage percentage or ensuring that the weekly quota denominator is correctly updated during the account/tier transition process.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Weekly usage % jumps 18pp when plan_type flips pro -> prolite despite only 26M tokens [4 comments, 2 participants]