You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: MCP tool schemas advertise non-string enums (t3_theme_set theme.version enum [1]), so every Gemini turn on Antigravity fails with 400 #37028
No provider is needed. This is a defect in the JSON Schema that the T3 MCP server advertises, and it can be checked on main.
On main, packages/contracts/src/server.ts:628 declares version: Schema.optional(Schema.Literal(1)) in EnvironmentThemeFile.
t3_theme_set (apps/server/src/mcp/toolkits/theme/tools.ts) uses EnvironmentThemeFile as its theme parameter.
Build its advertised input schema with advertisedJsonSchema(ThemeToolkit.tools.t3_theme_set) and collect every enum value.
Triage has already written this test. Branch factory/repro-37018 (e78a899) adds it to apps/server/src/mcp/advertisedJsonSchema.test.ts, and vp test run src/mcp/advertisedJsonSchema.test.ts fails on main with expected [] / received [1].
Expected behavior
Every enum value in an advertised MCP tool inputSchema is a string. Gemini function declarations accept only string enums.
Actual behavior
theme.version is advertised as {"type": "number", "enum": [1]}. Triage's comment on #37018 found that nothing in advertisedJsonSchema converts or drops non-string enums, so any Schema.Literal(<number>) in a tool parameter would do the same thing.
When it reaches Gemini, Google rejects the whole request, so every turn on a Gemini model through Antigravity fails before the model runs. Claude and GPT-OSS models on the same Antigravity instance still work.
A note for triage: please judge the repro by the failing test above. An Antigravity turn isn't needed to show the bug, and the fact that the VM has no Antigravity doesn't mean the bug didn't reproduce.
Impact
Blocks work completely
Version or commit
Seen here on nightly 4669, and again at 16:52 UTC on 14 Nov. 0.1.10-nightly.20261114.4709 (dfd2187) is now installed. main @ 7f6e403 still has the numeric literal, and advertisedJsonSchema.ts hasn't changed since 14 Nov. Another user confirmed it on 4709 in #36508.
# antigravity-acp/log, local time UTC+8 (2026-11-14 16:52 UTC)
E1115 00:52:21.929462 errorreport.go:307] agent executor error: generating and executing: INVALID_ARGUMENT (code 400): * GenerateContentRequest.tools[66].function_declarations[0].parameters.properties[theme].properties[version].enum[0]: cannot be empty
# <userdata>/providers/antigravity/<hash>/antigravity-acp/mcp/t3-code/t3_theme_set.json"version": {"enum": [1], "type": "number"}
Workaround
Switch to a non-Gemini model. The fix is open as #36488 (all checks pass, unmerged).
Related issues
#36508, #36720 and #37018 report the same thing and were closed as not reproduced, though triage's own test failed on main in each one. This isn't a duplicate in practice: their steps were an Antigravity turn, these steps are a schema check, and no open issue tracks the bug.
Activity
IchenDEV commentedon Nov 15, 2026
两台 Mac 上的子任务调用都在给出回答之前失败,报错来自工具参数的校验阶段。
2026-11-15 我们做了两次受限的子任务调用,一次在 MacBook Pro,一次在 Mac mini。两次都使用
antigravity/gemini-3.8-flash,options 为{thought_level: high},与各自实时目录里标注的一致。2026-11-15T12:39:20.809Z2026-11-15T12:40:53.195Z任务只要求回复一句中文,不做编辑、构建、安装或配置修改。两次都没有产出可用答案,错误如下:
(MacBook Pro)
(Mac mini)
报错指向的是 T3 自己注册的主题工具的参数声明,不是用户注册的工具。对 MacBook Pro 上安装的包版本
0.1.10-nightly.20261114.4682做只读检查可以看到:T3 ThemeToolkit 注册t3_theme_set,其theme参数是optionalKey(EnvironmentThemeFile);environmentThemeFields中version是optional(Literal(1))。这次运行没有独立追踪出该枚举为何被转换成空字符串。本次没有打补丁,没有停用任何工具,没有改配置或凭据,两次失败的调用都没有由作者重试。Mac mini 上安装的包版本本次没有读取,因此不做推断。
请维护者说明哪个发布版本包含修复,这样现有失败版本就能被如实界定范围。