Limit reset used but not applied
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of Codex CLI is running?
codex-cli 0.153.4 (same behaviour in the Codex desktop app on the same account)
What subscription do you have?
ChatGPT Pro
Which model were you using?
gpt-6-astra, medium reasoning
What platform is your computer?
macOS, Darwin 25.6.0 arm64
What terminal emulator and version are you using (if applicable)?
No response
Codex doctor report
What issue are you seeing?
Two separate problems with weekly usage limits on 2026-09-09, both measured from
payload.rate_limits in the session rollout files (window_minutes = 10080). The values
are identical across concurrent CLI and desktop sessions on the same account, so this
is server-side state, not a client display glitch.
-
Requests are refused while the reported state says the limit is NOT reached.
17:06:24Z a fresh codex-tui turn failed with:
"You've hit your usage limit. Visit .../settings/usage to purchase more
credits or try again at Sep 14th, 2026 6:43 AM."
17:06:59Z rate_limits snapshot for the same account, 35 seconds later:
{"limit_id":"codex",
"primary":{"used_percent":25.0,"window_minutes":10080,"resets_at":1789361043},
"secondary":null,
"credits":{"has_credits":false,"unlimited":false,"balance":"0"},
"rate_limit_reached_type":null,"plan_type":"pro"}
resets_at 1789361043 is exactly the "Sep 14th 6:43 AM" quoted in the refusal, so
both refer to the same weekly window. -
Redeeming a usage-limit reset does not restore the allowance to 0%, and the second
redemption moved the window end ~21 hours EARLIER than the window it replaced:
09:33Z used 82% resets_at = 2026-09-15 03:34 (local)
09:57Z used 27% resets_at = 2026-09-15 03:26 (local) <-- after redemption 1
16:54Z used 73% resets_at = 2026-09-15 03:26 (local)
16:56Z used 22% resets_at = 2026-09-14 06:44 (local) <-- after redemption 2
17:04Z used 24% (climbing normally afterwards)
What steps can reproduce the bug?
- Use a ChatGPT Pro account until the weekly Codex limit is near exhaustion.
- Redeem an available usage-limit reset. Observe in the rate_limits snapshots that
usage drops to ~22-27% instead of 0%, and that resets_at moves to a new value. - Keep working normally for a few minutes.
- Start a new codex CLI session and send any prompt. The turn fails with
"You've hit your usage limit ... try again at <resets_at of the current window>",
while the rate_limits payload for the same window reports ~25% used and
rate_limit_reached_type = null.
What is the expected behavior?
Either the request is served while the reported usage is 25%, or the reported state
shows the limit as reached. A redeemed reset should restore the weekly allowance to
~0% and must never move the window end earlier than the window it replaces.
Additional information
The account has no purchased credits (balance 0), so "purchase more credits" is the
only remedy offered on an otherwise plan-covered account. Related open reports:
#31532, #33118, #37396, #41969.
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
No repository files or entry points are named. Start by comparing the session rollout files' payload.rate_limits snapshots with the refusal responses and review related reports #31532, #33118, #37396, and #41969. Done means the reported weekly usage, reset time, and request acceptance remain consistent after a reset.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend-api-design, cli
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100