Google's fetchAvailableModels lists models the account's plan doesn't
serve (Argon on Google AI Pro). Asked for one, Code Assist answers 404
NOT_FOUND "Requested entity was not found." Its endpoint is the same
for every model, so what is missing is the model, but the 404 counted
as failOther and rested the whole Antigravity / Gemini CLI account,
taking its other models down with it.
codeAssistModelMissing (built-in antigravity/gemini accounts only, not
a plugin) makes that 404 "unserved": only that model rests on that
account, and the request moves on to the next candidate.
Run:
- TestCodeAssistMissingModelRestsTheModel. It fails with the check
taken out, because the account rests.
- go test -tags nogui -count=1 -timeout 30m ./internal/gateway: ok.
- gofmt -l is clean. go vet passes on darwin, GOOS=linux -tags nogui
and GOOS=windows.
Not tried: a real Google AI Pro account, or the real 404 body. The
fixture's body follows Google's documented NOT_FOUND error shape.