Skip to content

Claude CLI preflight retains stale exhausted plan quota and ignores paid extra usage #8597

Closed as not planned

Description

@nickdavis

Observed behaviour

On published 2.100.1 (also present in 2.100.2), claude-cli quota preflight can keep rejecting turns until a cached weekly reset, even after paid extra usage is enabled or included subscription capacity is reset. The official Claude Code process is never launched, so it cannot apply its own billing/admission policy.

Reproduction

  1. Persist a measured usage snapshot with an exhausted applicable plan window and a reset several days ahead.
  2. Allow the snapshot to age beyond the existing 60-second cache interval.
  3. Return a fresh usage response with either usable included quota, or extra_usage.is_enabled: true and no reported exhausted monthly cap.
  4. checkClaudeUsageAdmission returns the old exhausted result without calling the usage probe.

Two causes: checkAdmission returns cached exhaustion before evaluating its cache TTL, and the usage parser discards extra_usage entirely.

Prepared fix

Against release source 00c02163e4352be5beb5633a3b6cc3b0be94ec8a, local Git commit 31e00d6142b9694d49fac89d5844196e8662c23f:

  • Recheck stale measured exhaustion using the existing bounded TTL, while preserving explicit CLI-refusal cooldowns.
  • Normalise only enabled/disabled/exhausted extra-usage state. Never equate remaining monthly allowance with a funded wallet, persist monetary balances or claim paid capacity is available.
  • When the plan is full but extra usage is explicitly enabled and no cap is exhausted, admit as unknown, leaving the official CLI to enforce funds and spend limits.
  • Preserve account/model isolation, account-switch and refusal races, and cache-only dashboard refresh. Usable included quota remains available independently of paid-cap exhaustion.

Regression reproduced before the change. 89 focused provider/admission tests, typecheck, structure and privacy checks, and the documentation build pass. A broad import-connected run has unrelated baseline/environment failures; these are being qualified rather than claimed green.

The fork has now been fast-forwarded through GitHub's supported sync operation, without credential/scope changes or force pushes. The fix is submitted in #8599 against current dev (3cc650af2a); the PR records current validation and baseline-failure qualifications. This is separate from combo fallback in #8588.

Activity

  1. added
    account-pool
    on Nov 12, 2026
  2. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    Issue closed: use an issue template

    Thanks for taking the time to submit this issue. It was closed automatically because it was not opened with a recognized issue template (Bug report, Feature request, Documentation, or Provider compatibility). Freeform and API-opened issues cannot skip this check.

    • This looks like a bug report but it does not use the Bug report template headings (for example Description/Log entry instead of Summary).

    Please edit the issue to add:

    • Use the Bug report template, or edit this issue to include: Client or integration, Summary, Reproduction, Version, and Operating system.
    • Retitling with [Bug]: and applying the bug label alone is not enough without those section headings filled in.

    See the Contributing guide for details.

    Once the report passes the automated checks, it will be reopened automatically unless a maintainer has changed its state.

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

    account-pool

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions