Skip to content

fix(antigravity): fold ask_question *_other companion fields into one step - #73

Open
collissimo wants to merge 1 commit into
collin/mainfrom
collin/antigravity-elicitation-other
Open

collissimo wants to merge 1 commit into
collin/mainfrom
collin/antigravity-elicitation-other

Conversation

@collissimo

Copy link
Copy Markdown
Owner

Problem

Antigravity translates each ask_question item into a qN choice field paired with an optional qN_other free-text field and puts the question text in title. T3 Code's ACP elicitation form parser only folded double-underscore __other companions (OMP), so every Antigravity multiple-choice question appeared with inline custom input disabled and was immediately followed by a duplicate free-form "Other" step.

Fix

  • Add extractAntigravityElicitationForm in AntigravityProtocol.ts and wire it in AntigravityAdapterV2.ts so qN/qN_other pairs (single- and multi-select) collapse into one question step with the actual question text in question, inline custom answer input enabled, and typed answers routed back to qN_other. Non-ask_question or mixed schemas (including standalone free-form questions) fall back untouched to parseElicitationForm.
  • Extend parseElicitationForm in packages/provider-acp to recognize optional single-underscore <id>_other text companions alongside <id>__other while preserving standalone text fields.

Verification

  • Reproduced the split q1/q1_other steps with failing tests first.
  • vp run check:changed origin/collin/main: format, lint, knip, graphql, typecheck (14/14 packages), and 79 tests across 4 files including a live ACP subprocess elicitation round-trip (AntigravityAdapterV2.test.ts).
  • Done with Antigravity (Gemini 4 Neon).

… step

Antigravity translates each ask_question item into a qN choice field paired
with an optional qN_other free-text field and puts the question text in
title. Previously T3 Code only folded __other companions (OMP), so every
Antigravity multiple-choice question appeared with custom input disabled
and was immediately followed by a duplicate free-form "Other" step.

Add extractAntigravityElicitationForm for Antigravity's qN/qN_other pairs
(single- and multi-select, preserving the real question text and inline
custom answers) and extend parseElicitationForm to recognize single-underscore
<id>_other companions alongside <id>__other while keeping standalone
free-form fields intact.

Verified: vp run check:changed origin/collin/main (format, lint, knip, graphql, typecheck 14/14, 79 tests across 4 files including live ACP subprocess elicitation round-trip); failing tests reproduced the split q1/q1_other steps before the fix
Co-Authored-By: Gemini 4 Neon <noreply@google.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.

1 participant