runking on Discord: Antigravity has three groups (Gemini 3, Gemini 4,
Claude); Claude was used up, Gemini 4 not, and the card showed only
Gemini 5h/7d and Claude 5h/7d, no Gemini 4.
Cause: when retrieveUserQuotaSummary has no "Gemini 4 Argon" group (an
Ultra account's, whose Argon quota Antigravity-Manager reads in
Gemini's; or the prod endpoint's, per CodexBar), pools() put every
Gemini model into the family-wide "Gemini Models" pool, gemini-4-argon
too, though fetchAvailableModels gave it a reading of its own. The card
then showed Gemini's reading for it and hid Argon's.
Now a model is folded into its family's pool only when its own reading
matches the pool's 5 hours (share left within half a point, reset within
a minute when both tell one). Otherwise it is a pool of its own, named
as Google names the model without its level ("Gemini 4 Argon (High)" is
Gemini 4 Argon), with a week's span when its reset is past 5 hours. It
is Aside, as every pool is, so routing still reads the model's own
window. The GUI already shows a model's own pool ("Gemini 4 7d" ring);
its code is unchanged.
Routing: Allowance.Pooled said a model no window counts was the
account's. Antigravity's Gemini models that fetchAvailableModels gives
no quotaInfo (#3737) have no window, so a 429 on one rested the whole
account. When every window an account has is some models' only, a
refusal of a model none counts now rests the model. An account with a
window of its whole stays as before. A used-up Claude group already
rested only Claude's models.
pools() logs the summary's group names and bucket ids once per change
per account, under an 8-hex hash of the account, with no token or
email, so the next report shows the shape Google sent.
Run (mote, at this head): go test ./internal/provider ./internal/gateway
-count=1 -timeout 45m ok; GUI quota-pool-model, quota-pools,
quota-pool-order (Chromium and WebKit, en and zh) 12/12 ok; gofmt; GOOS
linux and windows go vet ./internal/provider ok.
Red on the old code: TestAntigravityQuotaModelApartFromGroup (Argon
folded into Gemini) and TestAllowancePooledModelNoWindowCounts (rests
the account).
Broken by hand: sameReading always false makes the "read alike" case red
(every Gemini model split off).
Not tried: a real account. The fixtures come from the proto in the agy
binary and the shapes Antigravity-Manager and CodexBar record, with and
without the Argon group. Whether runking's summary lacks the group, or
has it inside Gemini Models, is unconfirmed; the new log will show it.
Reported-by: runking (Discord)
ferock4669 on Discord: with an Antigravity subscription, the Requests
page filled with "Model list" (模型列表) rows for
/v1internal:fetchAvailableModels, each answered 400.
Cause. For an account loadCodeAssist gives a paid or non-free tier,
magpie asks fetchAvailableModels first with entitlement.userTier named
(7806395c7: the paid tier, then the current tier) and, on a refusal,
again without one. The only real paid account seen (#1553, AnxForever's
log: free-tier, paid g1-pro-tier, aicode-consumers) gets 400
INVALID_ARGUMENT "Request contains an invalid argument." for the named
tier and its list from {project} alone. magpie remembered nothing, so
every list (start-up's FetchNew, the hourly relist, Refresh, sync) and
every quota reading sent that 400 first, and each list ran under a
probelog KindList mark, so the refused request was written down as a
failed model_list row (quietProbe hides only answered lists). The list
itself came from the second request. The request without a tier is
what CLIProxyAPI, sub2api and Antigravity-Manager send; the value the
official client puts in userTier for a paid account is still not known
(Antigravity isn't installed on any box here, nothing captured in the
repo), so the request isn't changed beyond not repeating the refusal.
Now:
- a tier Google answers 400 is left out of that account's
fetchAvailableModels (lists and quota readings) for tierRefusedFor
(24h), keyed by refresh token, project and tier, so a tier the account
newly has is still asked; a 503 or other failure doesn't rest it;
- a request with a tier named is sent under probelog.Taken: a step
towards the list, no row of its own; the request without one is
written down as any list, so a list that really fails is still one
400 row under Failed;
- googleAccount.call returns codeAssistError carrying the status, with
the same message text as before.
Retries: FetchNew asks an account with no list at most every
newFetchRetry (1 min) while a page is open, the relist hourly; with this
a refused tier adds no extra request to either.
Docs: gateway-sessions.md (a list's step is no row) and
providers-accounts.md (askTiers, tierRefusedFor).
Tests: TestAntigravityRefusedTierAskedOnceAndNoRow (#1553's replies:
three Fetches and a quota reading name the tier once, 5 requests, no 400
row; a day later it is named again; a list refused without a tier too is
one row "400 model_list /daily/v1internal:fetchAvailableModels") and
TestAntigravityTierNotRestedForOtherFailures (a tier answered 503 is
named again). Broken by hand on mote:
- without probelog.Taken: FAIL "a refused tier written down:
{... Kind:model_list ... Endpoint:/daily/v1internal:fetchAvailableModels
Status:400 ...}";
- without tierRefused: FAIL "asked 8 times, 4 with the refused tier
named; want 5 and 1".
Both pass with the change, as do the existing tier tests
(TestAntigravityTierRefusedFallsBack, ...ProInvalidTierAsksWithoutOne,
...TierFreeAndKeptProject, ...ProAccountNamesItsTier).
Run on mote (mote-run), at efb55b5c9 + this change: gofmt -l on the
changed Go files prints nothing; go vet ./..., GOOS=linux go vet -tags
nogui ./..., GOOS=windows go vet ./... exit 0; go build, GOOS=linux go
build -tags nogui, GOOS=windows go build exit 0; go test -count=1 -tags
nogui -timeout 45m ./... under a sandbox HOME with pinned caches: exit
0, 77 packages ok, no FAIL. Rebased on origin/main b3edcabf2 (no change
to google.go, probelog or usage's probes) and ran internal/provider,
internal/probelog and internal/usage again at the pushed head: ok.
GUI suite not run: no file under internal/gui changes.
Not tried: a real Google AI Pro/Ultra account (none here), so the 400
in ferock4669's rows is matched to #1553's by shape, not by their log;
the official Antigravity client's userTier value for a paid account.
01huadalang: "反重力有 Gemini 4的条子是7天,有没有5h 的条子,而且有 Gemini 4的条子怎么 claude 的条子没有了".
Google now reports a third group in retrieveUserQuotaSummary for paid
accounts: "Gemini 4 Argon", "For paid Pro plans, Argon quota is
separate", with one bucket, gemini-argon-wtu-weekly, window weekly. That
shape is agy 1.4.0's own /usage output, recorded in CodexBar #4585 and its
test fixture; agy itself shows Gemini 5-hour, Gemini weekly and Gemini 4
Argon weekly, no Argon 5 hours. So there is no 5-hour bar for Argon to
show: Google sends none.
Claude's bar went because the GUI showed only some pools:
- poolLine (an account row on the Providers page) drew pools.slice(0, 2)
and put the rest in the tooltip;
- the menu bar panel's card drew fam.slice(0, 4) rings;
- poolWindows sorted pools by their first word, so "Gemini 4 Argon"
ranked with Gemini, before "Claude & GPT".
With three pools, Gemini and Gemini 4 Argon took both places and Claude &
GPT dropped out of sight. The panel also labelled Argon's ring "Gemini 7d",
the same as Gemini's own.
And in Go, pools() matched a model to the first group whose name or
description holds its family: gemini-4-argon went into Gemini's pool (and
its tooltip), and a versioned group listed first with a 5-hour bucket
would have taken every Gemini model.
Now:
- pools(): a group whose name says a version and that a model's name or id
begins with ("Gemini 4 Argon") is that model's, whatever its windows; the
family-wide match skips versioned groups and, as before (#745), needs
the group's 5 hours.
- app.js: every pool shows on an account row (the line already wraps) and
every pool window on the panel card (a closer gap past four rings); a
pool named for a model sorts after the family pools, as agy lists it;
its ring reads "Gemini 4 7d" (poolWord); the #745 fallback, which shows
a family's own 5 hours before a week-only pool's week, isn't applied to
a model's pool.
Tests, each red on the old code:
- TestAntigravityQuotaModelGroup: the agy groups in agy's order, Argon
listed first, and Argon first with a 5-hour bucket. Old code put
gemini-4-argon in Gemini, and in the last case gemini-3-flash in Gemini 4
Argon.
- quota-pool-model.test.cjs (Chromium, WebKit; en, zh): the Usage page has
every group's windows in order; the panel has five rings, Claude's among
them, labelled Gemini 5h/7d, Claude 5h/7d, Gemini 4 7d, all fitting;
the account row has Gemini, Claude & GPT, Gemini 4 Argon. Chromium was
red on the old app.js (order).
Run at the pushed head's tree (7b1faf99f plus this change; rebased on
40a0b442c, which touches only internal/cli):
- go test -tags nogui -count=1 -timeout 45m ./... under a sandbox HOME:
every package ok;
- gofmt -l clean; GOOS=linux and GOOS=windows go vet -tags nogui for
internal/provider and internal/gui;
- GUI, both engines, 76 files (quota-*, panel-usage, panel-quota-*,
tray-usage*, usage-accounts*, usage-card-refresh, usage-quota-head,
i18n*, old-webkit, click-scroll): 299 of 303 passed. quota-families
Chromium zh hit a 180s browser launch timeout at load 75 and passed when
rerun. quota-count-wrap (WebKit, 1100px) and quota-reads (WebKit de 360)
are red the same way on the untouched 7b1faf99f, already filed as
#3404/#2228 and #3406/#2150.
Not tried: a real Antigravity account. The Argon group's shape comes from
agy's recorded output, not from a call made here. A summary from the
cloudcode-pa OAuth endpoint may lack the Argon group (CodexBar saw that);
in that case nothing changes.
新v学员 (#feedback, 10-20; Antigravity on a Google AI Plus plan): three
chips in the subscription's model list read "Gemini 3.5 Flash Lite", and
only one was gemini-3.5-flash-lite; hovering the others showed
gemini-2.5-flash and gemini-2.5-flash-lite.
Cause: Antigravity's fetchAvailableModels still names gemini-2.5-flash,
gemini-2.5-flash-lite (and the hidden -thinking) "Gemini 3.5 Flash Lite".
b68377dae (#1918) renamed them only when their tagDescription named
another family. Google no longer sends a tagDescription for these, and
where it sends one now it is a notice ("GPT-OSS will be removed from
Antigravity on November 2, 2026."), so nothing was renamed. Checked on the
owner's account today: no tagDescription on any Gemini model.
Fix: a model is named for its own id (catalog.NameOf, else its id) when
its name is spelled by another family's id in the list
("Gemini 3.5 Flash Lite" is gemini-3.5-flash-lite), or when its enum
names its own id (MODEL_GOOGLE_GEMINI_2_5_FLASH is gemini-2.5-flash;
models Antigravity names correctly carry MODEL_PLACEHOLDER_M…), which
covers an account whose list has no gemini-3.5-flash-lite. Levels of one
model (gemini-3.7-flash, -low) and a name no id spells, such as
gemini-3-flash-agent "Gemini 3.5 Flash (High)", stay as given. The same
names reach /v1/models, agents' lists and Usage's windows, since all of
them read modelInfo. The GUI's own way of showing what tells same-named
models apart (a77ecbf8a) is unchanged.
Test: TestAntigravityRetiredModelNamedWithoutTag reads
testdata/antigravity-models-2026-10-20.json, the real fetchAvailableModels
reply of today with MIME types and experiments left out. It runs three
cases: the list as given (all three ids that read "Gemini 3.5 Flash
Lite"), the list without gemini-3.5-flash-lite, and the 2.5 models with
placeholder enums. In each, no two models read the same and both 2.5 ids
are named for themselves. On the old google.go it fails in two cases:
"gemini-2.5-flash and gemini-2.5-flash-lite both read "Gemini 3.5 Flash
Lite"", "gemini-2.5-flash is named "Gemini 3.5 Flash Lite", not for
itself", plus the same for Usage's windows. With the enum rule broken by
hand, "no gemini-3.5-flash-lite" fails; with the spelled-name rule
broken, "placeholder enums" fails. TestAntigravityRetiredModelNamedForItself
(#1918's fixture) still passes.
Real use: built with -tags nogui and run as `magpie serve` with
MAGPIE_ADDR=127.0.0.1:3488 in a sandbox HOME, holding only a copy of the
owner's Antigravity login (free tier). /v1/models listed
gemini-2.5-flash "Gemini 2.5 Flash", gemini-2.5-flash-lite "Gemini 2.5
Flash-Lite", gemini-3.5-flash-lite "Gemini 3.5 Flash Lite" and
gemini-3-flash-agent "Gemini 3.5 Flash (High)". Not tried on a Plus account
or in the reporter's Windows/Linux GUI.
Run in a fresh worktree on origin/main e4ac5e871: gofmt -l clean; go vet
./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./... all
clean; go build, GOOS=linux go build -tags nogui, GOOS=windows go build
ok; `set -o pipefail; go test -timeout 45m ./...` at load 360-450:
64 packages, 61 ok (internal/provider 806s), 3 red, each already filed:
internal/agent past 45m (TestMorphContextWindow at the deadline, #2544,
#2723), internal/gateway past 45m (TestTierRecordedPerTry at the
deadline, #2870, #2108), internal/middleware TestOnUsageRows
"strategies.seen: took too long" (#2687). None of them reads
Antigravity's names.
No GUI file changed, so the GUI suite was not run.
What changed: Antigravity's fetchAvailableModels gives gemini-2.5-flash,
gemini-2.5-flash-lite and gemini-2.5-flash-thinking the displayName
"Gemini 3.5 Flash Lite" and the tagDescription gemini-3.5-flash-lite
(checked on the owner's account, 2026-10-13). magpie showed three
buttons of that name and the same name in /v1/models and the quota
windows. When several models share a name, one whose tagDescription
names another family is now named from the catalog, or by its id. A
model tagged with its own family (the effort levels of one model) keeps
the shared name.
Run: go test ./internal/provider/ (ok). TestAntigravityRetiredModelNamedForItself
is built from the reporter's JSON plus two effort levels of one model;
with the renaming removed it fails (both 2.5 models "Gemini 3.5 Flash
Lite", two models read the same). gofmt -l clean; go vet -tags nogui on
darwin, linux and windows.