Skip to content

Claude weekly (all models) reads 100% via OAuth while claude.ai shows 1% — scoped/session windows correct #210

Description

@LavellJ

Existing issues

  • I searched existing issues and did not find a duplicate.

What happened?

The Claude provider reports the all-models weekly window as exactly 100.0% used, while the claude.ai app's usage page shows 1% for the same window at the same moment. The other windows from the same response are correct (verified against the Claude app):

The bad reading appeared suddenly (a fetch minutes earlier returned 0.0%) and then stayed pinned at exactly 100.0 across repeated fetches. The suspiciously exact 100.0 suggests a missing/null field being defaulted to exhausted — possibly the legacy seven_day field going null now that Anthropic is migrating window data into the limits[] array (the same migration that motivated #166; the real all-models value should be available from the kind == "weekly_all" entry in limits[]).

CLI output

$ codexbar-cli usage --provider claude --json
[{"cost":null,"provider":"claude","source":"oauth","usage":{"extra_rate_windows":[{"id":"claude-weekly-scoped-fable","title":"Fable only","window":{"is_informational":false,"resets_at":"2026-07-26T22:59:59.671595Z","used_percent":2.0,"window_minutes":10080}}],"login_method":"Claude Max 5x","primary":{"is_informational":false,"reset_description":"Jul 20 at 4:29AM","resets_at":"2026-07-20T04:29:59.671218Z","used_percent":8.0,"window_minutes":300},"secondary":{"is_informational":false,"reset_description":"Jul 26 at 10:59PM","resets_at":"2026-07-26T22:59:59.671246Z","used_percent":100.0,"window_minutes":10080},"updated_at":"2026-07-20T00:01:22.822650800Z"}}]

--source cli produces the same result (falls back to source: "oauth").

Affected area

  • Provider-specific behavior
  • CLI

Steps to reproduce

  1. Claude Max 5x account, OAuth source
  2. codexbar-cli usage --provider claude --json
  3. Compare secondary.used_percent with the weekly (all models) value on claude.ai's usage settings page

App version

0.43.0 (winget)

Windows version

Windows 11 Home 10.0.26200

Additional context

Related: #166 (Fable carve-out port — working great, thanks!). Happy to test a build; this machine reproduces it consistently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions