Skip to content

[Bug]: [P0] Antigravity Gemini unusable: theme tool schema causes HTTP 400; persists after restart (Nightly 4682) #36720

Closed as not planned

Description

@JZongf

Severity / impact

P0 requested — blocks work completely. Antigravity (agy) with Gemini is unusable for my work in T3 Code: even a minimal prompt fails before a model response, and restarting T3 does not resolve it. A built-in theme tool that the user never asks to call prevents ordinary coding conversations from running.

Please prioritize an urgent fix and keep an actionable tracker open until a released build is verified. This report is submitted at the affected user's explicit request.

Existing reports and reason for this report

I searched existing issues. This is the same error signature as #36508 and #36655, both currently closed as not planned. I am reporting additional evidence from an Intel Mac with the currently installed Nightly 0.1.10-nightly.20261114.4682, and requesting P0 triage/reopening rather than claiming a new root cause.

The triage comments on those issues describe a failing test that exposes numeric enum [1] in the actual advertised schema, while also saying no worker had Antigravity available for an end-to-end test. Please distinguish an unavailable reproduction environment from a successful test that did not reproduce the bug.

Related proposed fix: #36488 (open and unmerged when this report was submitted).

Area

apps/server — built-in MCP tool schema advertisement / Antigravity-Gemini compatibility.

Environment

  • Installed T3 Code Desktop Nightly: 0.1.10-nightly.20261114.4682 (read from the app's Info.plist during investigation).
  • macOS 14.8.7, Intel x86_64.
  • Local agy executable; Antigravity ACP initialize response reports Antigravity ACP Server, version 1.5.8.
  • Authentication: oauth-personal.
  • Affected selected model: gemini-4-carbon.
  • Existing/resumed conversation. Other models were not tested by this reporter.

Steps to reproduce

  1. Open an existing Antigravity conversation using gemini-4-carbon in T3 Code.
  2. Send a short message such as “continue”, or a probe explicitly requesting only a short reply and no tool use.
  3. The turn fails before a useful model response.
  4. Fully restart T3 Code, resume the conversation, and send another short message.
  5. Authentication and session/resume succeed, but the model request fails with the same schema validation error.

Expected behavior

Gemini accepts the request and replies. An unused, unrelated built-in theme tool must not block every attempted turn in the affected conversation.

Actual behavior and logs

The UI shows:

Agent execution terminated due to error.
Antigravity stopped this turn because of an error.

Redacted local ACP log, 2026-11-14 19:55:52 UTC+08:00:

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

The same error recurred at 20:01:14 UTC+08:00. The earlier 19:55 run's provider events confirm:

initialize / authenticate: succeeded
session/resume: succeeded
session/set_config_option: succeeded
session/prompt: accepted at the ACP layer, followed by agent execution failure

An ACP RPC succeeding does not mean the model turn succeeded; the underlying agent reports the HTTP 400 above.

The generated cache at <userdata>/providers/antigravity/<profile>/antigravity-acp/mcp/t3-code/t3_theme_set.json contains this input schema fragment:

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

The installed bundle defines the field as version: optional(Literal(1)). The failure is localized to numeric-enum compatibility along the advertised MCP schema → agy → Gemini path. The exact internal conversion function was not independently traced in this investigation.

Workaround / investigation state

Restarting and retrying did not fix the HTTP 400. No working workaround has been verified on this installation while retaining Gemini. The installed T3 bundle and generated tool schemas were not modified. Subsequent experimental local config changes and a launch adapter were reverted; the original agy executable path is restored. The HTTP 400 evidence above predates those experiments.

Requested resolution

  • Treat this as a release-blocking provider outage (P0 requested), and reopen/link the existing tracker as appropriate.
  • Review fix(server): Antigravity Gemini turns no longer fail on the theme tool's schema #36488 or provide an equivalent upstream fix that advertises Gemini-compatible schemas while preserving server-side input validation.
  • Add regression coverage using the actual t3_theme_set advertised schema and a real Antigravity/Gemini turn when a suitable environment is available.
  • Publish a corrected build and identify the first fixed version. A local app patch that is overwritten by the next update is not a sustainable resolution.

Activity

  1. juliusmarminge commented on Nov 14, 2026

    @juliusmarminge
    Member

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

    Commit 414d938 (origin/main). No worker has Antigravity, so I could not run a real Antigravity/Gemini turn. Instead I tested the cause on the real advertised schema: in apps/server/src/mcp/advertisedJsonSchema.test.ts I added a test that runs advertisedJsonSchema(ThemeToolkit.tools.t3_theme_set), which is what McpHttpServer advertises as the inputSchema, collects every enum value and requires each one to be a string (Gemini accepts only string enums). vp test run src/mcp/advertisedJsonSchema.test.ts fails with expected [ 1 ] to deeply equal []: theme.version is advertised as {enum:[1], type:"number"}. This matches the reporter's cached t3_theme_set.json and Gemini's 400 ...properties[theme].properties[version].enum[0]: cannot be empty. Pushed as factory/repro-36720 (9cfc9a6). Earlier reports #36508 and #36655 were closed as not planned even though their triage tests also failed on main. Fix 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