Files
magpie/internal
yetone b76016676f provider: Gemini's and Antigravity's offered models are kept per stamp, so the tray's usage read lets the catalog go
visibleQuotas built exposedIDs("gemini", "antigravity") on every usage
read, and each build loaded the whole models.dev catalog through
knownElsewhere → catalog.ListedBy. The tray reads usage every few
minutes, so a tray-only magpie with real accounts kept 5.6 MB of
catalog (of a 12.8 MB live heap) that loadIdle never got to drop.

keptExposedIDs keeps the answer while provider.StampNow is the same
(no provider, account, setting, plugin or catalog change) and for 30
minutes at most, for what a stamp can't see.

Run: go test -run 'ExposedIDs|Quota' ./internal/provider on mote, ok.
Broken by hand: always building turns TestKeptExposedIDsBuiltOncePerChange
red ("built 5 more times while nothing changed").
2026-11-14 11:47:59 +08:00
..
…
…
…
…
…
…
…
…
…