Files
magpie/internal
yetone a7ed2f61d9 antigravity: a model Google marks disabled is left out of the list (kwanyu on Discord: gemini-4-argon-disabled answered 404)
kwanyu picked an Antigravity model in DeepSeek Harness and every request
was a 404 "Requested entity was not found" for gemini-4-argon-disabled.
The id is not made by the Harness: its source (HEAD 22ddee379), the
bundled pi-ai 1.3.0 and dsh's patch add no suffix to a model id, and
magpie's gateway has no generic suffix either. It is Antigravity's own:
a real account's fetchAvailableModels lists gemini-4-argon-disabled with
"disabled": true (magpie's log: "disabled [gemini-4-argon-disabled]"),
and modelInfo kept every disabled model in the list ("still listed, as
before", since 7806395c7 only logged them). So magpie offered it to
every client, the Harness among them, and Google refuses it.

Now a model Antigravity marks disabled is left out of the list, as the
chat_/tab_ ids are, and the log still names it under "disabled". It
comes back on the first refresh after Google enables it. This is not
scoped to the Harness: the id comes from the list every client reads,
and no client can use it. Every other model's id, name and quota are as
Google sent them.

Tests: TestAntigravityDisabledModelLeftOut (the real ids beside
gemini-4-argon-disabled; gpt-oss with "disabled": false stays) is red
on the old code (the list had gemini-4-argon-disabled) and green now.
TestAntigravityProAccountNamesItsTier and
TestAntigravityProInvalidTierAsksWithoutOne listed their made-up
disabled claude-sonnet-5-5 and now count it left out.

Run: gofmt -l; go vet ./... on darwin, GOOS=linux -tags nogui, and
GOOS=windows; go test -tags nogui -count=1 ./internal/provider/ under a
sandbox HOME (ok, 103s).
Broken by hand: with google.go put back, TestAntigravityDisabledModelLeftOut
fails listing gemini-4-argon-disabled.
Not tried: a real Antigravity account refresh with this build, and
DeepSeek Harness's picker after it; Antigravity's own client's handling
of a disabled model was not read from its binary (not installed here).
A Harness profile written before keeps the id until magpie's next sync
of the Harness's models.
2026-10-24 00:48:04 +08:00
..
…
…
…
…