From 319caa2d7b6dffe60eb5917b855d45b5d06d1a4f Mon Sep 17 00:00:00 2001 From: Yudhistira-Official Date: Mon, 29 Jun 2026 15:24:36 +0700 Subject: [PATCH] fix(antigravity): strip 'deprecated' from tool schemas before Gemini Gemini rejects the non-standard 'deprecated' keyword in nested tool schemas with INVALID_ARGUMENT (400). Add it to UNSUPPORTED_SCHEMA_CONSTRAINTS alongside 'optional' so it gets stripped during translation. Co-authored-by: Cursor --- open-sse/translator/formats/gemini.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-sse/translator/formats/gemini.js b/open-sse/translator/formats/gemini.js index 8fdfac8d..bf6c4586 100644 --- a/open-sse/translator/formats/gemini.js +++ b/open-sse/translator/formats/gemini.js @@ -21,7 +21,7 @@ export const UNSUPPORTED_SCHEMA_CONSTRAINTS = [ // Dependency keywords (not supported) "dependencies", "dependentSchemas", "dependentRequired", // Other unsupported keywords - "title", "optional", "if", "then", "else", "contentMediaType", "contentEncoding", + "title", "optional", "deprecated", "if", "then", "else", "contentMediaType", "contentEncoding", // UI/Styling properties (from Cursor tools - NOT JSON Schema standard) "cornerRadius", "fillColor", "fontFamily", "fontSize", "fontWeight", "gap", "padding", "strokeColor", "strokeThickness", "textColor"