Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- 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 fix(acp): keep completed replies visible when background wakes follow in the same run #40559 (for [Bug]: Antigravity ACP collapses earlier assistant replies into "Worked for ..." when background tasks wake the same run #40108 background-task wakes) does not cover this steer path:
steerWithPromptsetscontext.promptSettled = false,session/promptoxc stack #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
- Claude's finished answer folds under "Continued for" when a steer is read after Claude ends its turn #40259 / fix(server): Claude's answer before a late-read steer stays visible #40265 (same bug fixed for Claude)
- [Bug]: Antigravity ACP collapses earlier assistant replies into "Worked for ..." when background tasks wake the same run #40108 / fix(acp): keep completed replies visible when background wakes follow in the same run #40559 (Antigravity ACP background-task wake folding — does not cover active steering)
- fix(chat): keep final replies visible after steering #34501 (Codex), fix(opencode): keep the answer when a background report lands right after it #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.
Activity
andirtew commentedon Nov 23, 2026
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
phasemetadata: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".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 completedassistant_messagethat finishes a reply before an active steer is processed should still be promoted/retained asfinal_answer.fix(server): drop the ACP steer final-answer marking (#41320)
test(provider-pi): a reply finished before a steer's work is the fina…