mk311 (plugins#935): the Antigravity plugin's Usage card listed every
model's own window (13 rows, each Gemini one at 85.1%, Claude and
GPT-OSS at 100%), then a bare "7 days" and "5 hours" twice. The plugin
(0.1.0) already groups them as the built-in did: each model's window
carries its family and its pool ("Gemini", "Claude & GPT"), each pool's
own 5 hours and 7 days carry the pool. f92c0a2bd taught
plugin.UsageWindow and quotaOfPlugin to read the two fields, but
host.js's usageOf builds each window from a fixed list of fields and
left them out, so nothing reached Go: its test hands quotaOfPlugin a
plugin.Usage directly, past the host. Now host.js passes family and
pool on, and the card, menu bar rings, TUI page (PooledWindows), quota
alerts, caps and routing's pool holds treat the plugin's pools as the
built-in's. Only the antigravity plugin sends these fields (grep of the
plugins repo). The plugin docs (en, zh, ja, llms-full.txt) name them.
TestPluginAntigravityPoolsReachTheCard goes through the real plugin host
(bun, the fake plugin's FAKE_WINDOWS) with the windows the antigravity
plugin's own usage() returns for the reporter's literal figures (each
Gemini model 85.1% left resetting 20:31 +08, Claude and GPT-OSS 100%
resetting 11-11 00:24:47 +08, Gemini 7 days 91.8% left; the Claude & GPT
week isn't in the screenshots and is set to 100% left), kept in
testdata/antigravity-plugin-usage-935.json. The card's lines are then
Gemini · 7 days, Gemini · 5 hours, Claude & GPT · 7 days, Claude & GPT ·
5 hours.
A cap a user set on the plugin's bare "7 days" (two pools under one
name) is now keyed "Gemini · 7 days", as the built-in's was.
Run (mote refused SSH, kex reset; wsl-run in magpie-desktop at this
commit on 6886da1ca):
- gofmt -l: clean; go vet linux, windows, darwin: ok
- go test ./internal/provider, targeted -run with the new test: ok
- go test ./internal/plugin: ok (219s)
- site worker.test.mjs: 38 pass, 0 fail
- GUI quota-pools, quota-pool-model, quota-pool-order, window-cap-pool
(chromium + webkit, every language): 52/52, also 52/52 at 9c39edb92
and 4a9142ccd. A first run at 9c39edb92 had one red in window-cap-pool
(chromium 420 de, each pool's caps); it passed 40/40 alone and on every
rerun, filed as #5949.
- The antigravity plugin's own usage() (plugins repo, unchanged) run on
the reporter's figures produced the testdata file.
Broken by hand: host.js with pool dropped: the new test is red with the
reporter's card (13 model rows, then "7 days", "5 hours" twice, no pool).
Not tried: a real Antigravity account through the plugin in the GUI;
macOS and Windows runs (mote down).
2 lines
2.9 KiB
JSON
2 lines
2.9 KiB
JSON
[{"name":"Claude Opus 4.6 (Thinking)","used":0,"model":"claude-opus-4-6-thinking","family":"Claude","models":["claude-opus-4-6-thinking"],"resetsAt":"2026-11-10T16:24:47Z","pool":"Claude & GPT"},{"name":"Claude Sonnet 4.6 (Thinking)","used":0,"model":"claude-sonnet-4-6-thinking","family":"Claude","models":["claude-sonnet-4-6-thinking"],"resetsAt":"2026-11-10T16:24:47Z","pool":"Claude & GPT"},{"name":"gemini-2.5-flash","used":14.900000000000002,"model":"gemini-2.5-flash","family":"Gemini","models":["gemini-2.5-flash"],"resetsAt":"2026-11-10T12:31:00Z","pool":"Gemini"},{"name":"gemini-2.5-flash-lite","used":14.900000000000002,"model":"gemini-2.5-flash-lite","family":"Gemini","models":["gemini-2.5-flash-lite"],"resetsAt":"2026-11-10T12:31:00Z","pool":"Gemini"},{"name":"Gemini 3 Flash","used":14.900000000000002,"model":"gemini-3-flash","family":"Gemini","models":["gemini-3-flash"],"resetsAt":"2026-11-10T12:31:00Z","pool":"Gemini"},{"name":"Gemini 3.1 Flash Image","used":14.900000000000002,"model":"gemini-3.1-flash-image","family":"Gemini","models":["gemini-3.1-flash-image"],"resetsAt":"2026-11-10T12:31:00Z","pool":"Gemini"},{"name":"Gemini 3.1 Flash Lite","used":14.900000000000002,"model":"gemini-3.1-flash-lite","family":"Gemini","models":["gemini-3.1-flash-lite"],"resetsAt":"2026-11-10T12:31:00Z","pool":"Gemini"},{"name":"Gemini 3.5 Flash Lite","used":14.900000000000002,"model":"gemini-3.5-flash-lite","family":"Gemini","models":["gemini-3.5-flash-lite"],"resetsAt":"2026-11-10T12:31:00Z","pool":"Gemini"},{"name":"Gemini 3.8 Flash (High)","used":14.900000000000002,"model":"gemini-3.8-flash-high","family":"Gemini","models":["gemini-3.8-flash-high","gemini-3.8-flash"],"resetsAt":"2026-11-10T12:31:00Z","pool":"Gemini"},{"name":"Gemini 3.8 Flash (Low)","used":14.900000000000002,"model":"gemini-3.8-flash-low","family":"Gemini","models":["gemini-3.8-flash-low","gemini-3.8-flash"],"resetsAt":"2026-11-10T12:31:00Z","pool":"Gemini"},{"name":"Gemini 3.8 Flash (Medium)","used":14.900000000000002,"model":"gemini-3.8-flash-medium","family":"Gemini","models":["gemini-3.8-flash-medium","gemini-3.8-flash"],"resetsAt":"2026-11-10T12:31:00Z","pool":"Gemini"},{"name":"gemini-3.8-flash-tiered","used":14.900000000000002,"model":"gemini-3.8-flash-tiered","family":"Gemini","models":["gemini-3.8-flash-tiered"],"resetsAt":"2026-11-10T12:31:00Z","pool":"Gemini"},{"name":"GPT-OSS 120B (Medium)","used":0,"model":"gpt-oss-120b-medium","family":"GPT-OSS","models":["gpt-oss-120b-medium"],"resetsAt":"2026-11-10T16:24:47Z","pool":"Claude & GPT"},{"name":"7 days","pool":"Gemini","used":8.199999999999996,"aside":true,"span":604800,"resetsAt":"2026-11-15T00:00:00Z"},{"name":"5 hours","pool":"Gemini","used":14.900000000000002,"aside":true,"span":18000,"resetsAt":"2026-11-10T12:31:00Z"},{"name":"7 days","pool":"Claude & GPT","used":0,"aside":true,"span":604800,"resetsAt":"2026-11-17T11:30:00Z"},{"name":"5 hours","pool":"Claude & GPT","used":0,"aside":true,"span":18000,"resetsAt":"2026-11-10T16:24:47Z"}]
|