nivekxft on X: Antigravity ticked under Settings › Allowances in the menu
bar, and the Mac's menu bar showed the other three cards but none for it.
Cause: trayWindows kept only windows that are neither Aside nor a single
model's (Model set). Antigravity's card has nothing else: a window per
model, and its pools' windows ("Gemini", "Claude & GPT"), which
google.go's pools() marks Aside so routing goes on reading the
per-model windows. So trayCardText returned an empty label and an empty
tooltip, and trayCardsView dropped the card. The real card read from
quotas.json (an Antigravity Starter account, 10-31) has 13 per-model
windows and two pool 7-day windows, and nothing the old filter kept.
Fix: when a card has no account-wide window, the menu bar takes, in
order,
- trayShared: its windows over all models that routing sets aside and
that tell a share (Antigravity's pools, named "Gemini · 7 days" as the
Usage page names them; Ollama's plan windows, all Aside while bought
credits carry the account),
- trayModels: else its per-model windows, the tightest of each family
(as the Usage page shows one a family), most used first (Gemini CLI,
whose card is per-model only; Antigravity when the pool summary can't
be read).
Text rows, unlimited rows, wallet balances and a money figure with no
share are never shown as a percent. A card with an account-wide window
is as before. withTrayKinds now marks the windows trayWindows returns, so
Settings' window picker follows the same choice.
Siblings: Gemini CLI (per-model windows only) and Ollama with bought
credits (every window Aside) were dropped the same way and are covered.
Run (mote, at 394a92f0f + this change):
- go test -run 'Tray[^C]|WithTrayKinds|TrayAntigravity|TrayModel|TraySetAside'
./internal/gui: ok. The three new tests (trayusage_shared_test.go,
fixture from the real quotas.json card) are red on the old
trayusage.go: "cells []" each.
- go test ./internal/gui (AppKit window tests skipped/killed): reds are
the AppKit tests killed at their deadline on mote (#4125, #2645),
TestColdTurnsTaken (#4510), and TestSettingsSaveKeepsWhatItDoesNotSend,
red on origin/main 394a92f0f without this change (#4514).
- gofmt -l: clean. go vet, GOOS=linux go vet -tags nogui,
GOOS=windows go vet of ./internal/gui (and provider for linux): ok.
Not run: the full suite (another session's go test was running on
mote); GUI Playwright suites (no app.js/traywindows.js change).
Not tried: the reporter's real menu bar; the Settings window picker
with Antigravity's pool kinds in a running app.