t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Antigravity ask_question splits every choice into a separate "Other" free-form step

Open ryush00 opened this issue 2 weeks ago • 25 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Start a thread with the Antigravity provider running native agy acp (1.5.0+, verified on 1.5.9) and ask the agent to ask 2–3 single-choice clarifying questions with its ask_question tool.
  2. Observe the pending user-input banner in T3 Code and select an option on Question 1.

(Protocol-level reproduction without agy installed: connect a scripted ACP agent or call parseElicitationForm with the elicitation/create payload agy acp 1.5.9 sends for a 2-question ask_question call:)

{
  "mode": "form",
  "message": "The agent has 2 questions.",
  "requestedSchema": {
    "type": "object",
    "properties": {
      "q1": {
        "type": "string",
        "title": "Should competitive research run before implementation?",
        "oneOf": [
          { "const": "1", "title": "(Recommended) Skip research and implement directly" },
          { "const": "2", "title": "Run competitive research first" }
        ]
      },
      "q1_other": {
        "type": "string",
        "title": "Other",
        "description": "Optional free-form answer to: Should competitive research run before implementation?"
      },
      "q2": {
        "type": "string",
        "title": "Which workspace roles may read conversations over MCP?",
        "oneOf": [
          { "const": "1", "title": "(Recommended) Workspace owner and admin only" },
          { "const": "2", "title": "Include regular support agents" }
        ]
      },
      "q2_other": {
        "type": "string",
        "title": "Other",
        "description": "Optional free-form answer to: Which workspace roles may read conversations over MCP?"
      }
    }
  }
}

Expected behavior

  • Each single-choice question is presented as one step (1/2, 2/2) with both its listed options and custom composer input enabled (allowCustomAnswer: true), routing a selected option to qN and a typed custom answer to qN_other (matching how OMP's <id>__other in #34867 and OpenCode's qN_custom in #25879 work).
  • The question card body shows the actual question text rather than the generic form summary "The agent has N questions.".
  • Selecting a radio option advances directly to the next real question (or submits on the final question) without forcing an extra "Other" step.

Actual behavior

  • Every single-choice question is split into two steps (2N steps total: q1 → q1_other → q2 → q2_other):
    1. parseElicitationForm in packages/provider-acp/src/server/elicitationForm.ts only folds <id>__other (two underscores, OMP's convention), while agy acp emits <id>_other (one underscore). AntigravityAdapterV2 also defines no extractElicitationForm.
    2. On the qN choice step, allowCustomAnswer is set to false (disabling custom text input on the question card itself), the actual question string from qN.title is placed in the truncated banner header, and question falls back to message ("The agent has 3 questions." / "The agent has a question.") because qN has no description.
    3. Immediately after clicking a listed option on qN, T3 advances to a separate qN_other text step (header: "Other", question: "Optional free-form answer to: <question>") for every single question.
  • On releases prior to b35c9702f9 (#36997), qN_other also omitted required: false, blocking form submission until the user typed dummy filler text (e.g. ".") into every "Other" step, which agy then appended to the agent's tool output (A2: <option>, .). On main @ 32c069eed1, blank submission is unblocked, but every single-choice question still forces the extra qN_other step and inverted header/body text.

Impact

Major degradation or frequent failure

Version or commit

main @ 32c069eed1 (also reproduced in T3 Code Desktop with managed Antigravity ACP Server 1.5.9)

Environment

macOS (darwin-arm64), T3 Code Desktop + main @ 32c069eed1, Antigravity ACP Server (agy acp) 1.5.9 (gemini-4-carbon-medium)

Logs or stack traces

// Projected user_input_request item from statev2.sqlite during a live 3-question `ask_question` call on Antigravity 1.5.9:
{
  "type": "user_input_request",
  "questions": [
    {
      "id": "q1",
      "header": "이 기능을 구현하기 전에 경쟁사 조사도 함께 진행할까요?",
      "question": "The agent has 3 questions.",
      "options": [
        { "label": "(Recommended) 경쟁사 조사 생략하고 바로 구현", "value": "1" },
        { "label": "경쟁사 조사(핵심 4개 + 관련 2개 이상) 먼저 진행 후 구현", "value": "2" }
      ],
      "allowCustomAnswer": false
    },
    {
      "id": "q1_other",
      "header": "Other",
      "question": "Optional free-form answer to: 이 기능을 구현하기 전에 경쟁사 조사도 함께 진행할까요?",
      "options": []
    }
  ]
}

Workaround

Manually step through every qN_other screen (or type dummy filler text like . on builds before #36997) after selecting each option.

ryush00 avatar Nov 15 '26 08:11 ryush00

Still happening on T3 Code Nightly 0.1.11 (Windows 11 x64) with agy 1.5.13.

What the user sees: on each ask_question choice card the composer is disabled ("Choose an option above"), so a typed answer is impossible on that step. Users read this as "the chat box is blocked". The agent's explanation, which it wrote for the final reply, is also not shown yet while the card is pending.

Where it comes from in the 0.1.11 bundle (server.asar, apps/server/dist/runtimeLayer-*.mjs, parseElicitationForm):

  • The companion is folded only when it is named ${id}__other (double underscore): const companionId = \${id}__other``.
  • agy acp names it q1_other (single underscore, see the payload in this issue), so q1 is not paired. It gets allowCustomAnswer: false, and q1_other becomes a separate text question.
  • The Antigravity flavor has no extractElicitationForm (only factory-droid, OMP and OpenCode do), so nothing else catches it.

A small fix would be to also accept ${id}_other as a companion when the flavor is Antigravity, or to give the Antigravity flavor its own extractElicitationForm. Then each question becomes one card with a typed answer allowed, and the answer goes back in qN_other.

jan-stegeman avatar Nov 20 '26 07:11 jan-stegeman

Re-tested today, on purpose and with logs, to give this a clean reproduction on the newest nightly.

Setup: T3 Code Nightly 0.1.11-nightly.20261120.4979 (Windows 11 x64), agy 1.5.13, model Orchestrator (Carbon). I had been avoiding ask_question with a rule in GEMINI.md (numbered options in chat instead); for this test the prompt told the agent to ignore that rule once and call ask_question with 2 single-choice questions of 3 options each, and then wait. Before sending it I recorded the size of every T3 and agy log file, and right after answering I copied everything that changed.

What happened:

  • The card shows "1/4" for 2 questions: each question becomes a choice step plus a separate "Other" text step.
  • On the choice steps the composer says "Choose an option above" and takes no typing (I typed twice, nothing appeared). Typing only works on the separate text step, which is where I wrote my answer.
  • Server trace: elicitation/create → AcpClient.handleElicitation → AcpAdapterV2.requestUserInputWithAdmission (pending 207 s) → EnvironmentCommands.respondToThreadUserInput; agy then logs AskQuestion response for conversation … (2 responses). So the round trip works; only the form split and the disabled composer are wrong, with the cause from my earlier comment (q1_other vs ${id}__other).
  • #37119 would fix this and is still open. Happy to test a build with it.

Side note (may deserve its own issue): AcpAdapterV2.openSession logs WARN ACP session does not expose requested configuration option(s) with optionIds: ["thought_level"], so the "High" chosen in the model menu is not applied for Antigravity.

card-lock-crop

jan-stegeman avatar Nov 20 '26 10:11 jan-stegeman

I ran into this on T3 Code Desktop 0.1.11-nightly.20261120.4979 on macOS. The full question was cut off with an ellipsis even when the card was expanded. The body only showed “The agent has 4 questions,” so I couldn't read the full question before choosing an answer. I also had to go to a separate question just to type a free-form answer.

What I'd like is for an agent to be able to ask one question or several in a single request. Each question should have its own settings:

  • Let me select one option or multiple options.
  • Make the question required or optional. I should be able to skip an optional question.
  • Let the agent enable a free-form comment field on that same question. I should be able to add a comment alongside my selection or answer with just the comment. A comment by itself should count as an answer to a required question.

The full question should wrap above the options. Each question should take one step, with the choices and comment field together.

chai-in avatar Nov 20 '26 12:11 chai-in

Still reproduces on the newest nightly, on macOS this time.

  • Server: 0.1.12-nightly.20261121.5024 (desktop app 0.1.10, macOS arm64)
  • agy: 1.5.13
  • main at ed3b241e (2026-11-20): parseElicitationForm in packages/provider-acp/src/server/elicitationForm.ts still pairs only ${id}__other, so agy's q1_other stays unpaired.

What I saw: a single ask_question with 3 options rendered as "1/2". Step 1 had the options, the body read "The agent has a question.", and the composer was disabled with "Choose an option above". Step 2 was a separate "Optional free-form answer to: …" card. Screenshots attached.

Expected: one step with the options plus composer text routed to q1_other, as the issue describes.

Comment drafted by Claude Opus 5.5 (Claude Code) via T3 Code triage.

daviesayo avatar Nov 21 '26 05:11 daviesayo

Reproduced on T3 Code Desktop 0.1.11 (macOS arm64) with agy 1.5.13 across single-select, multi-select (is_multi_select: true), and mixed (single + multi-select) ask_question calls — every question still splits into two steps with a separate Optional free-form answer to: screen. On desktop 0.1.11, stepping through the blank free-form screen works (thanks to #36997), while on mobile I still have to type text on that extra step to submit.

One gap to flag before #37119 lands: in apps/server/src/provider/acp/AntigravityProtocol.ts, extractAntigravityElicitationForm's isElicitationQuestion currently only matches single-select schemas (type: "string" with oneOf). Because is_multi_select: true emits an array schema (as noted in #37860), any ask_question call that includes a multi-select question — either standalone or mixed with single-select questions — will return undefined and fall back to the generic parseElicitationForm, splitting the entire form into 2 steps per question again.

Adding multi-select (type: "array") support to extractAntigravityElicitationForm (and mapping selected values back as string[] vs custom text to qN_other) in #37119 would cover all ask_question modes in one pass.

byheaven avatar Nov 21 '26 07:11 byheaven

Hitting this consistently as well on T3 Code 0.1.11 (macOS arm64) using Antigravity with Gemini 4 Neon.

When the agent asks 4 multiple-choice questions via ask_question, the card shows 3/8, the actual question text is crammed into the single-line header and truncated with ..., the main body only says "The agent has 4 questions.", and the composer is locked with "Choose an option above".

Would love to see #37119 / #40547 land — this makes multi-question prompts very hard to answer since the end of the question is cut off.

mrtoaf avatar Nov 22 '26 09:11 mrtoaf

Still seeing this on Linux.

Setup: T3 Code desktop (Beta AppImage), bundled CLI t3 v0.1.11, Linux, Antigravity CLI agy 1.5.14. One ask_question call with five single-choice questions.

The card showed step 4 of 10, so each question is still a choice step plus a separate free-form step. On a choice step the composer sat on top of the option list and covered the options, so they could not be selected. After submitting that step the card jumped up and the options were reachable.

The question form itself is fine. The extra steps, and the composer covering the options, are what block answering.

Happy to retest a build that includes #37119.

in4mat avatar Nov 22 '26 19:11 in4mat

Also reproduces on iOS and iPadOS: the pending-answers card can't be submitted there at all.

  • Server: T3 Code 0.1.11 (macOS arm64, background service), agy 1.5.14, model gemini-4-neon
  • Mobile: T3Code iOS build 248 on iPhone (iOS 27.2) and iPad (iPadOS 27.3), connected through T3 Connect

ask_question with 2 single-choice questions (3 options each) became a 4-step card (q1, q1_other, q2, q2_other). On iPhone and iPad I picked an option on each choice step and left the optional "Other" steps blank, but Submit did nothing, so the thread stayed waiting for about 8 hours. The same pending request opened in the web UI on the Mac accepted the blank "Other" steps and submitted normally. The request then resolved with {"q1":"3","q1_other":"","q2":"1","q2_other":""} and the run continued.

So the "blank optional text question" fix from #36997 seems to work on desktop/web but not in the current mobile build. #37119 should make this go away by removing the separate step. Until then, mobile users have to type something in each "Other" step or switch to desktop.

scripsweave avatar Nov 23 '26 07:11 scripsweave

Confirmed still reproducing today on mobile:

  • Server: T3 Code 0.1.12-nightly.20261123.5124 (macOS arm64)
  • Provider: Antigravity (bundled Antigravity ACP, model gemini-4-neon)
  • Client: T3 Code mobile app

A single-choice ask_question renders as two separate items in the pending-answers card: the option selector plus a separate OTHER ("Optional free-form answer to: ...") free-text input. Selecting an option alone leaves "Submit answers" disabled until text is also entered in the OTHER field (at which point both values are submitted together).

Looking forward to seeing one of the open fixes (#40547 / #37119) land!

YuLegend720 avatar Nov 23 '26 11:11 YuLegend720

Still reproduces on T3 Code (Beta) 0.1.2, macOS, with agy built 2026-11-21 and Gemini 4 Carbon. 3 questions show as "2/6".

Another detail: the separate "Optional free-form answer to: …" step says "leave this blank to use the selected option", but Next stays disabled while the box is empty, so you have to type filler (".") on every question to get through. We'd like Antigravity questions to work the same way Claude's do: one card per question, with an optional text box. #37119 looks like it would fix this.

acovot avatar Nov 23 '26 14:11 acovot

Still reproducing on the latest nightly and agy 1.5.15:

  • T3 Code: Desktop Nightly 0.1.12-nightly.20261123.5138
  • OS: macOS 27.0.1 (arm64)
  • Provider / CLI: Antigravity (agy 1.5.15), model gemini-4-neon

Whenever Antigravity invokes ask_question, every question still splits into two steps (the choice step + a separate free-form "Other" step) — e.g., 4 questions render as 8 steps (and even a single question renders as 2 steps). This adds a lot of friction whenever an agent asks clarifying questions.

Would love to see #37119 or #40547 land soon!

ParsaZa79 avatar Nov 23 '26 15:11 ParsaZa79

Confirming this still reproduces on Linux (t3 serve 0.1.12-nightly.20261123.5138) with Antigravity (gemini-4-neon).

In addition to splitting a single ask_question call into 1/2 (q1 + q1_other) with "Choose an option above" locking free-form input, mapping q1.title into header and "The agent has a question." into question also completely breaks any prompt containing Markdown links or multi-line handoff instructions — the entire prompt is truncated to a single non-clickable plain-text header line behind ...:

[
  {
    "id": "q1",
    "header": "Please enter your 6-digit verification code using [Open on phone](https://example.com/phone) or [Open in browser](https://example.com/viewer), then confirm below.",
    "question": "The agent has a question.",
    "options": [
      {
        "label": "(Recommended) Done — I've entered the verification code",
        "description": "(Recommended) Done — I've entered the verification code",
        "value": "1"
      },
      {
        "label": "Cancel",
        "description": "Cancel",
        "value": "2"
      }
    ],
    "allowCustomAnswer": false
  },
  {
    "id": "q1_other",
    "header": "Other",
    "question": "Optional free-form answer to: Please enter your 6-digit verification code using [Open on phone](https://example.com/phone) or [Open in browser](https://example.com/viewer), then confirm below.",
    "options": [],
    "required": false
  }
]

Looks like open PR #40547 directly addresses both the header truncation ("The agent has N question(s)." body swap) and the qN_other split.

uitgwilliams avatar Nov 23 '26 21:11 uitgwilliams

Also reproduced on T3 Code 0.1.12-nightly.20261124.5178 on macOS with Antigravity gemini-4-neon: four questions appeared as eight steps, with the actual question muted in the header and the generic summary as the main prompt.

Live screenshot and a proposed layout:

742fc4b8-1062-4667-b58f-9298d2b58350-4022af7f-33a1-4dfd-adb1-aac301e81af7 t3-elicitation-before-after

ricardo-calcina avatar Nov 24 '26 13:11 ricardo-calcina

Also hitting this on T3 Code 0.1.12-nightly.20261124.5191 (d7ae1e17915c) on macOS with the Antigravity provider:

  • A single ask_question prompt with 3 options renders as 1/2 (q1 + q1_other).
  • The actual question text lands in the single-line header and gets cut off with ... (unreadable whether expanded or collapsed), while the card body only shows "The agent has a question." and the composer input is disabled ("Choose an option above").
  • Answered history rows in the timeline also concatenate both split items ("The agent has a question. · Optional free-form answer to: ..."), squeezing the selected answer preview out of view.

Hoping to see #40547 / #37119 land soon — thanks!

liuzengh avatar Nov 24 '26 14:11 liuzengh

Reproduced on T3 Code server 0.1.11 (macOS arm64) + T3 Code iOS mobile client with the Antigravity provider (gemini-4-neon):

  • An ask_question call with 2 single-select questions rendered with extra OTHER free-form inputs (Optional free-form answer to: ...).
  • After answering both questions (selecting an option on each question and also typing text in the OTHER field), the Submit answers button remained disabled and could not be tapped.
  • Workaround: cancel the pending question card and reply in plain chat text.

fredericktsang0320 avatar Nov 24 '26 18:11 fredericktsang0320

Also reproducing this on T3 Code (Beta) 0.1.11 (59651c1761f6) with Antigravity (agy 1.5.16) on macOS 26.7.1 (arm64).

Observed behavior

  • When Antigravity calls ask_question with 3 multiple-choice questions, T3 Code renders 6 questions in alternating pairs:
    • Q1 / Q3 / Q5: multiple-choice options (q1, q2, q3)
    • Q2 / Q4 / Q6: duplicated question text as a free-form text input with no options (q1_other, q2_other, q3_other)
  • Stored answers in statev2.sqlite confirm the un-folded companion keys:
    {"q1":"1","q1_other":"~","q2":"1","q2_other":"~","q3":"2","q3_other":"~"}
    
  • Root cause still present in 0.1.11: parseElicitationForm only folds ${id}__other (double underscore), whereas agy acp 1.5.16 emits qN_other (single underscore), and Antigravity does not have a dedicated extractElicitationForm adapter.

thinkofuture avatar Nov 24 '26 20:11 thinkofuture

Reproduced on T3 Code Android 2.3 (Google Play, updated 2026-11-09) connected to T3 Code server 0.1.11 (Linux x64 / WSL) with the Antigravity provider (gemini-4-neon):

  • A 4-question ask_question call rendered with the extra unpaired q1_other–q4_other free-form fields ("Optional free-form answer to: ...").
  • Even though the 0.1.11 server payload explicitly sets "required": false on every qN_other entry:
    {
      "id": "q1_other",
      "header": "Other",
      "question": "Optional free-form answer to: ...",
      "options": [],
      "required": false
    }
    
  • Submit remained disabled after selecting an option for every q1–q4, and only activated once non-empty text was also entered into the optional qN_other fields.

So on Android 2.3, required: false on the split qN_other fields does not unblock submission without typing filler text. Looking forward to #40547 / #37119 folding qN_other into qN.

fareslassoued avatar Nov 24 '26 20:11 fareslassoued

Confirming this is still present in 0.1.12-nightly.20261123.5165 with the bundled Antigravity ACP provider.

The truncation is real. parseElicitationForm (packages/provider-acp/src/server/elicitationForm.ts) maps Antigravity's qN.title — the actual question — into header, and falls back to the form message for question:

header:   text(property.title) ?? `Question ${questions.length + 1}`,
question: text(property.description) ?? message,

The web panel (apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx) renders header in a single-line truncate span (line 218) and renders the body from question only (line 268). So the real question is never shown in full — it is one ellipsized line — while the body says "The agent has 2 questions." Markdown links and soft line breaks in the prompt are lost too.

Concrete payload stored by this build:

  • header (447 chars): "Round 2 Finding #2 — web/src/features/transactions/utils/charts.ts:33-42: Skipping collapse for linked fiat↔asset pairs … Changing this alters rendered chart totals — what behavior do you want?"
  • question (26 chars): "The agent has 2 questions."
  • 15 questions in local history came through with the generic body; all had header > 60 chars, longest 616 chars.

Design note: I do think Antigravity's free-form follow-up is a genuinely useful idea and worth incorporating into T3 Code — a structured choice plus an optional typed answer in the same interaction is nice. I just don't think it should be the default, forced extra step for every choice question. Making it opt-in would keep the benefit without the friction, so I'd hope the fix here doesn't simply remove the free-form capability.

Environment: macOS arm64, T3 Code desktop nightly 0.1.12-nightly.20261123.5165, Antigravity bundled ACP.

Written by Hy4 flash Free in a T3 Code triage session.

Reproduction image (rendered from the stored payload described above):

Antigravity ask_question truncation

PrpCena avatar Nov 24 '26 21:11 PrpCena

Also reproducing on iOS app connected to macOS host (T3 Code server 0.1.11, arm64) with the Antigravity provider:

  • A single 1-question multiple-choice ask_question call renders the choice buttons followed by a separate "OTHER — Optional free-form answer to: ..." input field on the same USER INPUT NEEDED card.
  • Tapping a multiple-choice option highlights the option in blue, but "Submit answers" remains disabled/greyed out unless text is also typed into the optional "OTHER" box — even though the user only wants to pick one of the choices without entering custom text.
  • Dismissing/skipping returns User Skipped to the agent.

Adding this iOS confirmation alongside the macOS desktop and Android reports above — would love to see the qN_other field merged into the question's own optional custom-input control so single-tap choice submission works cleanly on mobile.

fredericktsang0320 avatar Nov 24 '26 21:11 fredericktsang0320

Adding another mobile reproduction: on T3 Code mobile connected to a Linux host (pop-os) with the Antigravity provider (gemini-4-neon), a 3-question ask_question call rendered each question with an unpaired OTHER field below it, and Submit answers stayed disabled after selecting an option (making it impossible to submit without filling the hidden/below-the-fold qN_other fields).

Rjc1999 avatar Nov 24 '26 23:11 Rjc1999