motui9535 (Discord #feedback, v0.1.2909, screenshot): of three Team
accounts the preferred one showed 7 days 17% and 7 days · Fable 30% and
no 5-hour window; the two others showed all three. Anthropic leaves a
window out (null) while it hasn't started (claudeWindowsExpected says as
much for the warm-up), so Claude Code's /usage has no "Current session"
line for an account nobody used in the last five hours, and the card
took the missing line as no window at all. The aggregate's 5 hours
(100%) then averaged only the two other accounts.
A whole /usage reading (claudeWindows, the one place the active and the
saved accounts' readings are kept) now gets the 5-hour window it leaves
out as not started: 0% used, no reset, first, as Claude Code orders
them (claudeKindOrder, taken out of NoteClaudeLimits). A header heard
later replaces it as before. Only the 5-hour window: a reading that
tells any window tells the week. parseClaudeUsage is unchanged
(TestClaudeUsageWeeklyOnly still holds that the parser makes none up);
TestClaudeSwitchWeeklyOnly's card now has the unstarted 5-hour window.
Run (mote, at this tree):
- go test ./internal/provider: ok (132.9s)
- go test -run 'Claude|Usage|Quota' ./internal/gateway ./internal/cli ./internal/gui: ok
- go vet ./internal/provider on darwin, linux (-tags nogui), windows; gofmt -l clean
Broken by hand: without the claudeWithUnstarted call,
TestClaudeUnstartedSessionShownUnused is red: windows ["7 days" "7 days
· Fable"], motui's shape.
Not tried: a real Claude account's /usage with an unstarted session (the
null comes from claudeWindowsExpected's note and the screenshot); no GUI
test, the cards draw every window /api/usage/quotas gives and the change
is in what it gives; Windows/Linux runs.