Files
magpie/internal
yetone 8c0c2e8b6b gateway: Antigravity tool names, malformed calls and empty-reply retries (fwxkogaia on X)
Claude Desktop on antigravity/gemini-4-carbon failed 403 of 408 requests:
400 "Request contains an invalid argument", 502 empty reply after 170-230s,
and 200s marked failed with output tokens.

Changed, in internal/gateway:
- A tool name starting with a digit or a dash (MCP tools named for an id)
  goes to Google as _x_<name> and comes back without it; a property with no
  name is left out of the Antigravity schema. Both turned the whole request
  away on a live call.
- A MALFORMED_FUNCTION_CALL / UNEXPECTED_TOOL_CALL finish carries the call
  in finishMessage; it is now made the call instead of reading as an empty
  reply (tokens spent, then asked again for nothing).
- passing(): a 502 empty reply is asked again once, not lastRetries times on
  top of the in-place emptyRetries.

Run (mica): go test -run 'TestCodeAssist|TestEmptyReply' ./internal/gateway;
the new tests are red on the old code (names, malformed case).
Live (owner account, gemini-3.8-flash): names with a digit/dash first, a
space, unicode, a slash and an empty property key each 400; 64 and 100 char
names are 200.
Not tried: real gemini-4-carbon (the account lacks it, 404), so the user's
exact 400 is not reproduced; the finishMessage form is Google's documented
shape, not captured from Carbon.
2026-11-12 23:17:51 +08:00
..
…
…
…
…
…
2026-11-11 08:14:28 +08:00
…
…
…