[Bug]: Antigravity (ACP) & Pi completed answers fold under "Continued for" when an active steer runs in the same turn
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
- Start a thread using Antigravity (ACP, e.g.
gemini-4-neon, which usessteersWithPrompt) — or Pi (packages/provider-pi, which usesstreamingBehavior: "steer"). - Ask a question that requires a few tool calls before answering.
- While the agent is working (specifically right as it finishes tool calls and begins final reasoning/writing the answer to Question 1), send an unrelated Steer message.
- The agent completes its full answer to Question 1 (
assistant:0), immediately runs tool calls for the steer inside the same run/attempt, and finishes with a second reply (assistant:1) answering only the steer. - Wait for the run to settle and inspect the thread timeline.
Expected behavior
The completed pre-steer answer (assistant:0) should remain visible in the timeline (and in Zen mode), matching Codex (#34501) and Claude (#40259 / #40265). Ideally it should also sit above the steer if it replies to the earlier prompt, or at minimum not be silently hidden inside the collapsed Continued for ... work group.
Actual behavior
When the run settles, the entire completed answer to the original prompt (assistant:0) is hidden inside the collapsed Continued for ... row below the steer bubble, leaving only the follow-up reply to the steer (assistant:1) visible (and in Zen mode assistant:0 is hidden completely).
Root cause
This is the same display bug recently fixed for Claude in #40259 / #40265 (and earlier for Codex in #34501 and OpenCode in #37829), still affecting active-steering providers that never emit phase: "final_answer":
- Timeline folding (
apps/web/src/components/chat/MessagesTimeline.logic.ts):deriveTerminalAssistantMessageIdskeeps only the last assistant message perrunId.retainedAssistantReplyEntryIdsonly exempts earlier messages that carryphase: "final_answer"or belong to asupersededattempt. Active steering keeps both replies in onerunwith a singlecompletedattempt (neversuperseded). - Antigravity / ACP (
packages/provider-acp/src/server/adapter.ts):AntigravityAdapterV2usessteersWithPrompt, so steering sends a secondsession/prompt(which resolves in ~3 ms) while the firstsession/promptstays open across bothassistant:0andassistant:1.- Open PR #40559 (for #40108 background-task wakes) does not cover this steer path:
steerWithPromptsetscontext.promptSettled = false,session/prompt#1 never settles betweenassistant:0and the steer's tool calls, and the new steer tool call immediately clearscontext.closingAssistant = nullright afterassistant:0completes.
- Pi (
packages/provider-pi/src/server/adapter.ts):PiAdaptersetssupportsActiveSteering: trueandsupportsSteeringByInterruptRestart: false(lines 130–131), steering viastreamingBehavior: "steer"in the same run/attempt.packages/provider-pi/src/server/adapter.tsnever setsphase: "final_answer"onassistant_messageitems anywhere, even though Pi'smessage_endevent already providesmessage.stopReason(lines 2385–2396, currently only checked for"error").
Related
- #40259 / #40265 (same bug fixed for Claude)
- #40108 / #40559 (Antigravity ACP background-task wake folding — does not cover active steering)
- #34501 (Codex), #37829 (OpenCode)
Impact
Major degradation or frequent failure
Version or commit
T3 Code 0.1.11 (verified still present on main)
Environment
macOS, T3 Code Desktop 0.1.11, Antigravity (ACP, gemini-4-neon); also verified by code inspection for Pi (packages/provider-pi/src/server/adapter.ts)
Logs or stack traces
Observed run timeline (Antigravity ACP, single run:26 / single completed attempt:1):
07:12:58.443Z session/prompt #1 started (original prompt, ordinal 26000001)
07:13:06-13:36 reasoning + 3 command_execution tool calls for original prompt
07:13:43.766Z reasoning:2 started (preparing final answer to original prompt)
07:13:44.019Z user steer sent (inputIntent: "steer", ordinal 26000008)
07:13:44.032Z session/prompt #2 started (steerWithPrompt)
07:13:44.035Z session/prompt #2 succeeded (accepted into active turn)
07:13:53.828Z assistant:0 started (ordinal 26000009, phase: undefined) - full answer to original prompt only
07:14:12.528Z assistant:0 completed (status: "completed", phase: undefined)
07:14:12.528Z dynamic_tool Read started for steer (ordinal 26000010)
07:15:17.513Z assistant:1 started (ordinal 26000015, phase: undefined) - answer to steer only
07:15:21.956Z assistant:1 completed & session/prompt #1 succeeded
Result: assistant:0 sits below the steer bubble and is folded under "Continued for 1m 38s".
Screenshots, recordings, or supporting files
No response
Workaround
Use Queue instead of Steer for follow-up questions so each prompt runs in its own runId, or manually expand Continued for ... below the steer bubble to read the hidden reply.
Additional context: Cross-provider / model-agnostic fallback
Beyond Antigravity (ACP) and Pi, this looks like a broader contract gap affecting any active-steering provider or model that does not emit native phase metadata:
- Other
supportsActiveSteering: trueadapters (OpenCode,Cursor,Muse,Grok,Kiro) face the same folding risk whenever a completed pre-steer answer is followed by steered work in the samerunwithoutphase: "final_answer". - Codex models that omit
phase(payload.item.phase == null): inapps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts, line 6032 already treatspayload.item.phase == null || payload.item.phase === "final_answer"asfinalAnswerinternally, yet line 3993 only attachesphaseto the emittedturnItemwhencontext.messagePhases.has(item.id)(which skipsnull). That means older/custom models routed through Codex without nativephasesupport can also regress to folding completed pre-steer replies.
Rather than patching providers one by one after each report (Codex -> OpenCode -> Claude -> ACP -> Pi), it would be much more resilient to have a consistent fallback across all active-steering adapters/models (while keeping short pre-tool progress commentary foldable per #8879): when a provider/model omits phase, any completed assistant_message that finishes a reply before an active steer is processed should still be promoted/retained as final_answer.
Confirming this also reproduces on Linux + Web client (gemini-4-neon, Antigravity ACP) with zero tool calls before or after the steer — so a fix shouldn't rely only on intervening tool calls clearing closingAssistant.
In the attached repro, the entire 5-section briefing (assistant:0) folds under Continued for … below the steer bubble, leaving only the 2-sentence post-steer reply (assistant:1) visible. Notably, because this ran as a delegated subagent, the completion summary delivered back to the parent thread also contained only assistant:1 and omitted assistant:0.
Screenshots (collapsed vs. expanded)
Quick agent-driven repro (no manual timing needed)
From any parent T3 thread:
- Launch an async Antigravity child with
delegate_task(providerInstanceId: "antigravity",model: "gemini-4-neon",options: { thought_level: "xhigh" }) asking for a ~600-word multi-section reply with no tools (gives a ~15–30s reasoning window). - ~10s later (while the child is still in
reasoning:0), steer it witht3_thread_send(threadId, mode: "steer", message: "Quick unrelated side question, 2 sentences max, no tools.")— returnsdelivery: "steered"onordinal:1. - Wait for
ordinal:1to settle. Resulting single-run timeline (zero tool calls):user_message(initial prompt) →reasoning:0→user_message(steer) →assistant:0(full reply, folded underContinued for …) →reasoning:1→assistant:1(short steer reply, only visible message).
I also have this issue. stop model and then send seem to work, but it feels like a hack
Confirming live repro on Linux (0.1.12-nightly.20261120.5009, Antigravity ACP / gemini-4-neon): a quick follow-up steer sent right as the model was delivering a long brainstorm folded the entire initial answer (assistant:0) away, leaving only the short reply to the steer visible. +1 on #43150 — appreciate the focused fix!