Skip to content

fix: strip enumDescriptions from VSCode Copilot tool schemas for Antigravity (closes #549) - #655

Open
anuragg-saxenaa wants to merge 1 commit into
decolua:masterfrom
anuragg-saxenaa:fix/issue-549-enumdescriptions-vscode-antigravity
Open

anuragg-saxenaa wants to merge 1 commit into
decolua:masterfrom
anuragg-saxenaa:fix/issue-549-enumdescriptions-vscode-antigravity

Conversation

@anuragg-saxenaa

Copy link
Copy Markdown
Contributor

Closes #549

diegosouzapw pushed a commit to cheaper-inference/OmniRoute that referenced this pull request Jun 26, 2026
VSCode Copilot emits `enumDescriptions` inside tool parameter schemas, but
the Antigravity API rejects any request carrying that field with HTTP 400.
Add a recursive `stripEnumDescriptions` helper to the tool-cloaking path
(walks `properties` and `items`, deletes `enumDescriptions` at every nesting
level) and apply it to each function declaration's parameters before the
cloaked payload is forwarded upstream.

Inspired-by: decolua/9router#655
Co-authored-by: Anurag Saxena <anuragg.saxenaa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enumDescriptions field from VSCode Copilot causes 400 error with Antigravity provider

1 participant