Repository navigation
Conversation
A verified Ultra account has no session limit, so the usage API reports `five_hour: null`. The widget left the inner ring empty with "—" for the countdown and drew the week as a sliver round it. The week now takes the inner ring, with its reset countdown, legend and border urgency, as Codex's weekly-only window already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Say in the shortUtilization comment that the short slot can hold the week, and test the no-countdown case with a snapshot Claude can actually send. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A verified Claude Ultra account has no 5-hour limit, so the usage API now reports
five_hour: null. The widget then shows an empty inner ring with a "—" where the countdown goes, and the week is drawn as a thin outer ring around it. When there's no 5-hour window, the weekly window now takes the inner ring, with its reset countdown, legend and border urgency. Codex already does this when it reports only a weekly window.Changes
WidgetQuota.make, Claude case: iffiveHouris nil andsevenDayis present, the week goes in the short (inner) slot, the long slot is empty, and the label comes from the window (7d). Accounts that still report a 5-hour window are unchanged.shortUtilizationcomment: the short slot can hold the week, so a high week keeps the pill urgent until the weekly reset.WidgetQuotaTests:test_claude_weekOnly_takesTheInnerRingcovers the slot, the empty outer ring, the label, the countdown and the tooltip.test_countdownNilWhenShortWindowMissingassumed "Claude week only → no countdown", which this change reverses. It now uses a snapshot with only a per-model week.Unaffected:
widgetQuota.Testing
Automated:
./build.sh(no warnings),make test-without-xcode(1470 tests, 0 failures),make typecheck-tests.Manual, on an Ultra account with
five_hour: nullin~/.claude.json'scachedUsageUtilization, widget on, widget content set to usage:4d15h), not "—".Claude/7d N%, and the tooltip reads "Inner ring: 7d weekly quota".Related issues
None. Follow-up: the usage response now also carries a
limitslist (per-model weekly limits), which the Usage tab doesn't read yet.