Repository navigation
feat(quota): show Claude model-scoped weekly limits - #716
AsakuraMizu wants to merge 2 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 56af9f0333
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if stringField(object, "kind") != "weekly_scoped" { | ||
| continue | ||
| } | ||
| model := objectField(objectField(object, "scope"), "model") |
There was a problem hiding this comment.
Reject model entries with a surface scope
When a weekly_scoped entry has both scope.model and a non-null scope.surface, this parser ignores the surface and emits a generic model-wide row. Such a limit applies only on that surface, so the card misrepresents it as the model's general weekly limit despite the intended surface-scope exclusion; check scope.surface before accepting the model (the new test only covers the easier model: null case).
Useful? React with 👍 / 👎.
Claude Max accounts now have a separate weekly limit for Fable (
7d_oiin rate-limit headers)./api/oauth/usagehas no top-level field for it; it only appears inlimits[]:{"kind":"weekly_scoped","percent":42,"resets_at":"…","scope":{"model":{"display_name":"Fable"}}}Parse these entries into
7d <Model>model rows next toseven_day_opus/seven_day_sonnet. Entries scoped to a surface rather than a model are skipped, and models that already have a row are not duplicated.