fix(antigravity): strip optional from tool schemas before Gemini

Closes #1537, #1841

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Khanh Le
2026-06-17 09:46:41 +07:00
committed by decolua
parent 411a589781
commit db9ec3af61
2 changed files with 31 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ export const UNSUPPORTED_SCHEMA_CONSTRAINTS = [
// Dependency keywords (not supported)
"dependencies", "dependentSchemas", "dependentRequired",
// Other unsupported keywords
"title", "if", "then", "else", "contentMediaType", "contentEncoding",
"title", "optional", "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"