GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: MCP tool schemas advertise non-string enums (t3_theme_set theme.version enum [1]), so every Gemini turn on Antigravity fails with 400 · Issue #37028 · pingdotgg/t3code

[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

New issue
Copy link
New issue
Copy link
Closed
#37031
Closed
[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
#37031
Copy link

Description

@davisonio
davisonio
opened on Nov 15, 2026
Issue body actions

Area

apps/server

Steps to reproduce

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.

  1. On main, packages/contracts/src/server.ts:628 declares version: Schema.optional(Schema.Literal(1)) in EnvironmentThemeFile.
  2. t3_theme_set (apps/server/src/mcp/toolkits/theme/tools.ts) uses EnvironmentThemeFile as its theme parameter.
  3. 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.

Environment

macOS 27.2.1, arm64, T3 Code Desktop Nightly, managed Antigravity ACP 1.5.9 (oauth-personal), Gemini models

Logs or stack traces

# 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

  1. juliusmarminge
    closed this as completedin #37031on Nov 15, 2026
  2. IchenDEV commented on Nov 15, 2026

    @IchenDEV
    IchenDEV
    on Nov 15, 2026 – with ChatGPT Codex Connector
    More actions

    两台 Mac 上的子任务调用都在给出回答之前失败,报错来自工具参数的校验阶段。

    2026-11-15 我们做了两次受限的子任务调用,一次在 MacBook Pro,一次在 Mac mini。两次都使用 antigravity/gemini-3.8-flash,options 为 {thought_level: high},与各自实时目录里标注的一致。

    • MacBook Pro:startedAt 2026-11-15T12:39:20.809Z
    • Mac mini:startedAt 2026-11-15T12:40:53.195Z

    任务只要求回复一句中文,不做编辑、构建、安装或配置修改。两次都没有产出可用答案,错误如下:

    INVALID_ARGUMENT (code 400): GenerateContentRequest.tools[63].function_declarations[0].parameters.properties[theme].properties[version].enum[0]: cannot be empty
    

    (MacBook Pro)

    INVALID_ARGUMENT (code 400): GenerateContentRequest.tools[59].function_declarations[0].parameters.properties[theme].properties[version].enum[0]: cannot be empty
    

    (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 上安装的包版本本次没有读取,因此不做推断。

    请维护者说明哪个发布版本包含修复,这样现有失败版本就能被如实界定范围。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.