ox01024 on #5310, with 1,440 Antigravity accounts: 768 of the readings
/api/usage/quotas returned had windows and asOf but no user, and the
Usage page drew each of those as an Antigravity card of its own (459
cards and 34,355 elements against 1 card and 8,276 once named, in
their Chromium check; renderQuotas 602-875ms against 231ms).
loginReading made a reading cut short (at its deadline, not asked, left
alone) as a SubscriptionQuota with no User and passed the account to
keepLast beside it. keepLast found the kept windows by that account
and put q.User on them, which was empty. Every account path through
loginReading now names its reading (cutShort, namedFor); keepLast is
unchanged, since keys' balances are kept through it under a tag whose
card has no User (TestRefreshUsageKeepsNewerKeyReading and
TestPlanQuotas went red when keepLast named every reading). Gemini and
Antigravity's fetches on the Usage page name each reading by its
account too, as perLogin does for the others.
Test: TestAccountReadingNamed, for antigravity and claude: a read given
up on at its deadline and one not asked come back with the kept
windows under the account's name; an account with nothing kept says
its error under its name; a reading made with a name keeps it.
Run (mote): go test ./internal/provider -count=1 -timeout 45m ok;
go test ./internal/gui ./internal/usage ok; GOOS=linux and
GOOS=windows go vet ./internal/provider ok; gofmt clean.
Broken by hand: namedFor returning the reading as it came is red,
"antigravity deadline, kept: {... User: ...}".
Not tried: a real account set of that size; the reporter's other two
leads (googleLoginQuota listing every account again per account, and
keepLast writing the whole cache on each good read) are not measured
here.