[Bug]: Antigravity (Vertex AI) provider fails every turn: t3_theme_set has a numeric enum that Gemini rejects
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
Not sure (the t3-code MCP tool definitions handed to the provider)
Steps to reproduce
- Run T3 Code desktop nightly
0.1.10-nightly.20261114.4682on Windows 11. - Use the Antigravity provider with Vertex AI auth (
agent-platform). - Start a new thread with a Gemini model (seen with Gemini 4 Hydrogen and Gemini 4 Carbon).
- Send any message.
Expected behavior
The turn runs, as it did on 2026-11-13 with the same provider, model and account.
Actual behavior
Every turn stops immediately:
GenerateContentRequest.tools[62].function_declarations[0].parameters.properties[theme].properties[version].enum[0]: cannot be empty
Antigravity stopped this turn because of an error.
Tool 62 is t3_theme_set. The schema the Antigravity ACP server receives for it contains:
"version": { "enum": [1], "type": "number" }
Gemini function declarations only accept string enum values, so the numeric 1 appears to arrive as an empty string and the whole request is rejected with INVALID_ARGUMENT (code 400).
I scanned all 71 t3-code tool schemas for this session: 60 enums in total, and this is the only one that is not a string enum.
Possible fixes: declare version as a string enum, drop the enum for it, or sanitize non-string enums before handing tools to Antigravity.
Impact
Blocks work completely (for the Antigravity provider; Claude and GPT providers are unaffected)
Version or commit
0.1.10-nightly.20261114.4682. Last known good: a session on 2026-11-13, before t3_theme_set existed.
Environment
Windows 11, T3 Code desktop, Antigravity provider via Vertex AI, Gemini 4 Hydrogen / Gemini 4 Carbon
Logs or stack traces
E errorreport.go:307] agent executor error: generating and executing: INVALID_ARGUMENT (code 400): * GenerateContentRequest.tools[62].function_declarations[0].parameters.properties[theme].properties[version].enum[0]: cannot be empty
I tried to reproduce this on the current build and could not.
On origin/main c342f3dec2 I added a case to apps/server/src/mcp/advertisedJsonSchema.test.ts that builds advertisedJsonSchema(ThemeToolkit.tools.t3_theme_set), collects every enum value and expects none to be non-strings. vp test run src/mcp/advertisedJsonSchema.test.ts (apps/server) fails with expected [] / received [1]: the advertised schema has theme.version = {type:number, enum:[1]}. That is the path in the reporter's Gemini 400 (properties[theme].properties[version].enum[0]). I could not run a live Antigravity/Gemini turn because no worker has Antigravity. Six reports and confirmations on macOS and Windows (nightlies 4669 and 4682, in #36508 and its duplicates) show the live failure. Earlier triage rounds closed #36508, #36591, #36655, #36720 and #36739 as not planned even though their own tests failed on main. The open fix is PR #36488 (unmerged).
Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.