Files
magpie/internal
yetone 2e58f85e4a gateway: an Antigravity account Google suspended rests as restricted, and the next account serves
Google answers a Code Assist account it suspended with 403
PERMISSION_DENIED "This service has been disabled in this account for
violation of Terms of Service. Please submit an appeal to continue using
this product." Read as an unknown failure, it failed over but rested a
minute, doubling to the ten-minute cap, so the suspended account was
asked again (and refused, a wasted round trip first in line) every ten
minutes for good, and the Routing page said only "failed".

The refusal is about the account, not the model or the request: it is
now failRestricted (googleSuspended, on an Antigravity or Gemini CLI
account, 403, Google's exact words), so it rests restrictedRest (2h) as
"account restricted by the vendor", with the Routing page's lift for an
appeal that went through, and its usage isn't asked again. Unlike
WorkBuddy's and ZCode's risk control, it is not walled off from the
provider's other accounts (riskRefused): the service was disabled
before the request came, so the next account is asked as before.

Run (mote, at this tree on origin/main d2c29abe7):
- go test -run TestAntigravitySuspended ./internal/gateway: red on the
  old code (all three tests: failOther, a 1-minute "backoff" rest, no
  rest for the last one), green after.
- Broken by hand: without the riskRefused exclusion, the turn ends 403
  and u2 is never asked (TestAntigravitySuspendedRestsAsRestricted red).
- go test ./internal/gateway (whole package), go vet for darwin, linux
  and windows, gofmt.
Not tried: a real suspended Google account (the fixture is the
reporter's message as their agent showed it, in Google's error shape);
Gemini CLI's own wording of the same suspension is assumed the same.

Reported-by: bestony (Discord)
2026-11-06 11:54:21 +08:00
..
…
…
…
…
…
…