Alma on Responses to Antigravity's Gemini 3.8 Flash got "an empty reply"
now and then in multi-turn tool turns, and each account's in-place
re-asks plus the next account took 8 to 9 tries over 10+ minutes. A reply
that said nothing on a second account of the same provider's model is
about the request, not the account: the model's remaining accounts are
not asked (emptyAccounts = 2, `emptied` in the candidate loop). Other
providers and a group's other members still are, and nobody rests (the
#1221 branch is unchanged).
Cause of the empty reply itself: NOT found. Chat and Responses build
byte-identical Code Assist contents for a tool conversation (compared),
and about 50 real-account runs in a sandbox HOME (Antigravity login only)
across efforts none to xhigh, multi-user-turn tool loops over both
protocols, gave no empty reply. It looks like upstream's occasional
behaviour (#667 / #1221), so this commit bounds the cost and does not
claim a translation fix.
Run (mote-run): TestEmptyReplyOnTwoAccountsEndsTheRequest (Responses and
Chat; 5 accounts), TestGeminiEmpty*, TestLateRests*, full
./internal/gateway, gofmt, go vet darwin/linux/windows (nogui).
Broken by hand: with gateway.go's change reverted the new test is red
(12 asks, 5 accounts tried; 8 asks and 2 accounts with it).
Not tried: a real Alma turn on an account that returns the empty reply.