jcode icon indicating copy to clipboard operation
jcode copied to clipboard

Antigravity models are blocked in 0.99.1

Open pchala opened this issue 1 month ago • 8 comments

All models return:

Antigravity generateContent failed (HTTP 400 Bad Request): * GenerateContentRequest.tools[0].function_declarations[23].parameters.properties[add].items.required[0]: property is not defined

  • GenerateContentRequest.tools[0].function_declarat

pchala avatar Oct 24 '26 14:10 pchala

Thanks for reporting this. The error points to an invalid required field in a tool schema, rather than a model-generation failure. Antigravity uses the shared Gemini tool-schema builder, and #1951 tracks a related disagreement about required fields on objects without declared properties. That is a related investigation, not yet a confirmed duplicate or fix for this report.

Could you share the exact output of jcode --version, one affected model ID, and the complete validation-error text? The pasted error is cut off. Please also say whether it happens in a fresh session with the default tools. Please omit credentials, request payloads, and conversation content.


Jcode agent (automated triage), on behalf of @1jehuang

ianalitis avatar Oct 24 '26 18:10 ianalitis

Follow-up: the properties[add].items.required error matches the todo tool's add schema, which 7e6dec1e6 ("Fix todo add schema rejected by Gemini") changed on master after your release. It should be in the next release. If it still happens after updating, please reply with jcode --version and the full error.


Jcode agent (automated triage), on behalf of @1jehuang

1jehuang avatar Oct 24 '26 22:10 1jehuang

jcode v0.99.1 (7206efd0c)

gemini-3.8-flash-tiered via Antigravity (https)

Switched to model: gemini-3.8-flash-tiered

test

Antigravity generateContent failed (HTTP 400 Bad Request): * GenerateContentRequest.tools[0].function_declarations[23].parameters.properties[add].items.required[0]: property is not defined

  • GenerateContentRequest.tools[0].function_declarat

[2026-10-30 15:35:39.693] [WARN] [ses:session_llama_179337|prv:Antigravity|mod:gemini] Processing task completed with error for message id=4719693978436656594: Antigravity generateContent failed (HTTP 400 Bad Request): { "error": { "code": 400, "message": "* GenerateContentRequest.tools[0].function_declarations[23].parameters.properties[add].items.required[0]: property is not defined\n* GenerateContentRequest.tools[0].function_declarations[23].parameters.properties[add].items.required[1]: property is not defined\n* GenerateContentRequest.tools[0].function_declarations[23].parameters.properties[add].items.required[2]: property is not defined\n* GenerateContentRequest.tools[0].function_declarations[23].parameters.properties[add].items.required[3]: property is not defined\n* GenerateContentRequest.tools[0].function_declarations[23].parameters.properties[add].items.required[4]: property is not defined\n", "status": "INVALID_ARGUMENT" } }

pchala avatar Oct 30 '26 14:10 pchala

On Windows with JCode v0.99.1, gemini-3.8-flash-tiered fails through Antigravity with the same HTTP 400 properties[add].items.required schema error shown above. Claude Sonnet through Antigravity still works on this account, so this appears specific to the Gemini tool schema rather than sign-in or Antigravity connectivity.

dixtuel avatar Oct 30 '26 17:10 dixtuel

Indeed it happens only with flash models

pchala avatar Oct 30 '26 18:10 pchala

Caused by "todo", tool

pchala avatar Oct 31 '26 08:10 pchala

Root cause of the v0.99.1 regression (properties[add].items.required[0..4]: property is not defined on the todo tool) and the type: ["...", "null"] protobuf rejection (Proto field is not repeating, cannot start list) is addressed in rebased PR #1957 (0e293363c):

  1. allOf branch preservation before stripping: jcode-schema-dialect previously stripped allOf as an unsupported keyword during walk() before merge_all_of_branches() ran, dropping the properties defined inside allOf branches while leaving required pointing at undefined fields on todo.properties[add].items. allOf branches are now recursively adapted and merged into parent properties/required before keyword stripping.
  2. Strict scalar_types enforcement & error classification: check_conformance now rejects array type values when scalar_types is false (GEMINI dialect), collapses nullable type unions cleanly, and classifies Proto field is not repeating HTTP 400 responses as schema rejections.
  3. Compacted / parallel functionCall turn-order self-healing (also covers #2168): prevents Gemini/Antigravity HTTP 400 turn-order rejections after OpenAICompaction summaries or batched tool calls.

Verified with a full-registry conformance test across every built-in tool (todo included) under GEMINI and live multi-turn tool-call runs against Antigravity Gemini Flash.

xsa-dev avatar Nov 14 '26 19:11 xsa-dev

Released in v1.0.0. Run jcode update to get it.

github-actions[bot] avatar Nov 17 '26 04:11 github-actions[bot]