Skip to content

[Bug]: Antigravity Gemini turns fail on 0.1.10-nightly.20261114.4669 — t3_theme_set advertises numeric enum rejected by Gemini #36655

Closed as not planned

Description

@samwang0041-star

What happened

Every Antigravity Gemini turn fails immediately on the current nightly. The ACP server returns a 400 before the model runs, on both new and resumed sessions.

  • T3 Code (Nightly) 0.1.10-nightly.20261114.4669, macOS 27.2 (26B123), arm64
  • Managed Antigravity ACP 1.5.9, oauth-personal
  • Model: Orchestrator (Carbon) / gemini-4-carbon; other Gemini models fail the same way
  • Antigravity Claude models still get past schema validation, so this is Gemini-only
E1114 18:08:43.436255     676 errorreport.go:307] agent executor error: generating and executing: INVALID_ARGUMENT (code 400): * GenerateContentRequest.tools[64].function_declarations[0].parameters.properties[theme].properties[version].enum[0]: cannot be empty

The cached schema in <userdata>/providers/antigravity/<hash>/antigravity-acp/mcp/t3-code/t3_theme_set.json contains:

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

Cause

4669 added custom themes and exposes t3_theme_set through the t3-code MCP server. EnvironmentThemeFile.version is Schema.optional(Schema.Literal(1)), so advertisedJsonSchema emits a numeric enum. Gemini function declarations accept only string enum values; the numeric entry arrives as an empty value, and Google rejects the whole request. One unusable declaration breaks every Gemini turn.

This is the same root cause as #36508, which was closed as not planned by a triage run whose own comment reproduced the schema bug with a failing test. It still ships in the latest nightly, so this report keeps an open tracker for it.

PR #36488 already fixes this by dropping non-string enums from the advertised schema while keeping the version: 1 invocation check. It is open and mergeable, but not merged, and 4669 is still the current nightly.

Steps to reproduce

  1. On 0.1.10-nightly.20261114.4669, open an Antigravity thread with oauth-personal and a Gemini model (gemini-4-carbon, gemini-4-argon, or gemini-4-hydrogen).
  2. Send any message, including a one-line probe that asks for no tool use.
  3. The turn ends in about a second with Antigravity stopped this turn because of an error.

Expected behavior

The turn runs and the model answers.

Actual behavior

INVALID_ARGUMENT (code 400) / enum[0]: cannot be empty before any output. Retrying or resuming the session repeats it.

Impact

Blocks work completely: no Gemini model can be used through the Antigravity provider on this build.

Workaround

Route the same Gemini model through another provider (for example Magpie's auto/gemini-4-carbon), use an Antigravity Claude model, or stay on 0.1.10-nightly.20261113.4656 / 0.1.9, which do not expose the theme tool.

Activity

  1. juliusmarminge commented on Nov 14, 2026

    @juliusmarminge
    Member

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

    Commit 6be1bd6 (origin/main). Antigravity is not available on any worker, so no Gemini turn could be run. I tested the cause instead: in apps/server/src/mcp/advertisedJsonSchema.test.ts I added a case that builds advertisedJsonSchema(ThemeToolkit.tools.t3_theme_set), which is the real tool McpHttpServer advertises as inputSchema, and collects every enum value. vp test run src/mcp/advertisedJsonSchema.test.ts fails with expected [ 1 ] to deeply equal []. theme.version is advertised as the numeric enum [1], which matches the reporters' cached t3_theme_set.json and Google's 400 enum[0]: cannot be empty. The same root cause was reported in #36508, closed as not planned even though its own triage test (c63fe9b) failed on main. About six users have since confirmed it on macOS and Windows with nightly 0.1.10-nightly.20261114.4669 and ACP 1.5.8 and 1.5.9. The fix in PR #36488 is still open and 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.

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