Files
magpie/internal/gui/assets/plugins/usage
yetone 81dc4fc67d usage: a Claude account the vendor sends no 5-hour window for shows none (shangyuan0818 on X)
claudeWithUnstarted made up an unstarted 5-hour window for every whole
/usage reading without one, so a Claude Ultra account that has none (the
vendor sends none) still showed one in Usage. Anthropic leaves a window
null until a request starts it, so an idle account and one with no such
window read alike; the use tells. claudeNoFiveHour: an account whose week
rose since a reading under five hours old, still with no 5-hour window, is
one the vendor sends none for; the made-up window is then left out and
stays out (read from the card kept on disk after a restart too) until a
reading or header tells a real one. An account not yet seen used keeps the
unstarted window as before (motui9535's idle Team accounts).

The Usage page's Warm up button no longer shows for a Claude account read
with windows but no 5-hour one: it has none to start.

ChatGPT Pro 100 (prolite): codexWindows already shows whatever
primary_window and secondary_window /wham/usage sends, named by
limit_window_seconds, and no path filters by plan; the ChatGPT app reads
the same fields. No prolite reply is available here, so no cause was
found in magpie; asked the reporter for the reply.

Run (on mica; mote's load was over its cores): TestClaudeNoFiveHour red
on the old code (broken by hand: claudeNoFiveHour returning false) and
green on the new; go test ./internal/provider -run Claude ok; gofmt -l
clean; go vet darwin, linux, windows for internal/provider. GUI
quota-warm.test.cjs 10 of 10 red with the old page.js, green on the new
in chromium and webkit (all five languages, 390px and wider);
warm-now, warm-reset-asleep, i18n-keys green in both engines. Full
`go test ./...` -timeout 45m started on mica at this tree, not finished
at push. Not tried: a real Ultra account without a 5-hour window.
Not changed: the warm-up still sends such an account a request on its
backoff (filed).
2026-11-20 04:17:29 +08:00
..