Skip to content

Limit reset used but not applied #44217

Open

Description

@milhul6

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.

  1. 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.

  2. 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?

  1. Use a ChatGPT Pro account until the weekly Codex limit is near exhaustion.
  2. 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.
  3. Keep working normally for a few minutes.
  4. 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.

Activity

  1. added
    CLIIssues related to the Codex CLI
    rate-limitsIssues related to rate limits, quotas, and token usage reporting
    on Sep 9, 2026
  2. github-actions commented on Sep 9, 2026

    @github-actions
    Contributor
  3. applicate2628 commented on Sep 9, 2026

    @applicate2628

    Adding a closely related Pro 20x account case from Sep 9, 2026. I am closing my separate report #44240 as a duplicate and consolidating the evidence here.

    Observed sequence:

    • I redeemed a Full banked reset on Sep 9.
    • After redemption, Settings → Usage still showed the weekly reset as Sep 14, 2026, 9:47 AM instead of re-anchoring to a new weekly window.
    • On Sep 7, a refreshed allowance had supported about 371 PR reviews.
    • After the Sep 9 banked reset, only 40 PR reviews completed before the weekly allowance reached zero.
    • The Sep 9 workload was admittedly very large and concurrent: 104 repeated @codex review requests plus 79 issue-level @codex requests. I therefore do not claim the 40-vs-371 comparison by itself proves incorrect charging.
    • Multiple review requests were quota-rejected, while several that started later failed with Provided git ref ... does not exist after PR heads changed.
    • Most importantly, the weekly allowance later restored itself without me redeeming another banked reset.

    That last observation makes this look less like simple fast consumption and more like a server-side reset/reconciliation event. The combination I observed was therefore:

    Full banked reset redeemed -> old weekly reset anchor remains -> allowance reaches 0 -> allowance later recovers on its own

    Please include this account timeline when reconciling the Sep 9 reset incident. I can provide screenshots privately, including the Usage reset timestamp and PR-review analytics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingrate-limitsIssues related to rate limits, quotas, and token usage reporting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions