Skip to content

[Bug]: Nightly 4695 的 Antigravity Gemini 仍因 t3_theme_set 数字枚举报 INVALID_ARGUMENT 400 #37018

Closed as not planned

Description

@KevinXC5

问题概述

Antigravity 的 Gemini 回合因 T3 内置工具 t3_theme_set 的参数 Schema 被 Google 拒绝而终止。2026-11-15 在 Nightly 0.1.10-nightly.20261114.4695、托管 Antigravity ACP 1.5.9 上仍然发生。

已搜索并阅读同类报告 #36508、#36797;它们目前均被关闭为 not planned。本报告补充较新 Nightly 的本机运行日志和缓存 Schema 证据。相关修复 PR #36488 在提交本报告时仍为 open、未合并。若维护者希望集中跟踪,请重新打开 #36508 并将本报告关联过去。

影响范围

apps/server 的 MCP 工具 Schema 广告及其与 Antigravity/Gemini 的兼容性。用户从移动客户端向 Mac mini 上的 T3 会话发送图片和问题,此回合在生成回答前终止。问题路径指向工具定义,不是图片参数。

复现步骤

  1. 在 Apple Silicon Mac mini 上运行 T3 Code Nightly 0.1.10-nightly.20261114.4695,启用托管 Antigravity ACP 1.5.9。
  2. 从连接到该主机的移动客户端进入 Antigravity 会话。本次失败运行日志中的模型标识为 gemini-4-carbon-medium。
  3. 发送一张 PNG,并附文字“什么意思”。
  4. 回合终止,客户端显示 INVALID_ARGUMENT (code 400) 和 Antigravity stopped this turn because of an error.。

以上是本次实际观察到的路径;本报告未额外运行纯文本、其他模型或修复分支测试。

预期行为

请求通过工具定义校验,模型正常回答用户的问题。

实际行为及运行日志

本机 acp-server-20261115_100949-75382.log 第 108–109 行,时间为 2026-11-15 10:09:52(UTC+08:00):

E1115 10:09:52.790963     583 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
E1115 10:09:52.792980     583 errorreport.go:307] generating and executing: INVALID_ARGUMENT (code 400): * GenerateContentRequest.tools[66].function_declarations[0].parameters.properties[theme].properties[version].enum[0]: cannot be empty

同一日志的 ACP initialize 响应确认:

{"agentInfo":{"name":"Antigravity ACP Server","version":"1.5.9"}}

本机工具 Schema 证据

读取 <userdata>/providers/antigravity/<profile>/antigravity-acp/mcp/t3-code/t3_theme_set.json,其 parameters.properties.theme.properties.version 仍为:

{"enum":[1],"type":"number"}

这与报错的 theme.version.enum[0] 路径完全对应。Google 的 Schema 文档将 enum 定义为字符串数组:https://aistudio.google.com/api-reference/caching#Schema 。结合已有报告和 PR #36488,数字枚举的兼容处理缺失是明确的排查方向;本次未抓取到最终发往 Google 的 HTTP 请求,因此不把中间具体转换成何种值作为已验证事实。

环境与验证边界

  • T3 Code:0.1.10-nightly.20261114.4695,从正在运行的应用对应的 Info.plist 核对。
  • 服务端主机:Mac mini,macOS 27.3,arm64。
  • Antigravity ACP:1.5.9,从托管安装元数据及失败运行的 initialize 响应双重确认。
  • 模型:失败运行日志包含 gemini-4-carbon-medium。
  • 客户端:移动客户端;具体客户端构建版本未核实。
  • 未修改本机应用文件、配置或缓存 Schema;未测试 PR fix(server): Antigravity Gemini turns no longer fail on the theme tool's schema #36488,也未声称已验证 workaround。

建议修复工具 Schema 的非字符串枚举兼容处理,同时保留服务端对版本值的验证。请重新评估已有报告的关闭状态,或合并相应修复。

本报告由 AI 助手按受影响用户的明确要求提交;版本、Schema 和错误行均取自本机现有安装及日志,未上传完整日志或私人截图。

Activity

  1. juliusmarminge commented on Nov 15, 2026

    @juliusmarminge
    Member

    I tried to reproduce this on the current build and could not.

    Commit f5dd9c1 (origin/main). An end-to-end Antigravity/Gemini turn cannot run on this VM: no worker has Antigravity, and neither OpenCode nor Pi offers a Gemini model through the CLIProxyAPI hub (opencode models and pi --list-models list none). I reproduced the T3-side cause with a test instead. In apps/server/src/mcp/advertisedJsonSchema.test.ts I added a case 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 on main with expected [] / received [1]. The advertised schema has theme.version = {type: number, enum: [1]}, the exact path in the reporter's Gemini 400 (properties[theme].properties[version].enum[0]: cannot be empty). It also matches the cached t3_theme_set.json the reporter quotes. The source on main is still version: Schema.optional(Schema.Literal(1)) in packages/contracts/src/server.ts (line 628), and nothing in advertisedJsonSchema.ts converts or drops non-string enums. Pushed as factory/repro-37018 (e78a899).

    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.

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