Skip to content

[Bug]: Antigravity (ACP) & Pi completed answers fold under "Continued for" when an active steer runs in the same turn #41320

Open

Description

@andirtew

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

  1. Start a thread using Antigravity (ACP, e.g. gemini-4-neon, which uses steersWithPrompt) — or Pi (packages/provider-pi, which uses streamingBehavior: "steer").
  2. Ask a question that requires a few tool calls before answering.
  3. 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.
  4. 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.
  5. 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":

  1. Timeline folding (apps/web/src/components/chat/MessagesTimeline.logic.ts): deriveTerminalAssistantMessageIds keeps only the last assistant message per runId. retainedAssistantReplyEntryIds only exempts earlier messages that carry phase: "final_answer" or belong to a superseded attempt. Active steering keeps both replies in one run with a single completed attempt (never superseded).
  2. Antigravity / ACP (packages/provider-acp/src/server/adapter.ts):
  3. Pi (packages/provider-pi/src/server/adapter.ts):
    • PiAdapter sets supportsActiveSteering: true and supportsSteeringByInterruptRestart: false (lines 130–131), steering via streamingBehavior: "steer" in the same run/attempt.
    • packages/provider-pi/src/server/adapter.ts never sets phase: "final_answer" on assistant_message items anywhere, even though Pi's message_end event already provides message.stopReason (lines 2385–2396, currently only checked for "error").

Related

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

  1. added
    bugSomething is broken or behaving incorrectly.
    needs-triageIssue needs maintainer review and initial categorization.
    on Nov 23, 2026
  2. andirtew commented on Nov 23, 2026

    @andirtew
    Author

    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:

    1. Other supportsActiveSteering: true adapters (OpenCode, Cursor, Muse, Grok, Kiro) face the same folding risk whenever a completed pre-steer answer is followed by steered work in the same run without phase: "final_answer".
    2. Codex models that omit phase (payload.item.phase == null): in apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts, line 6032 already treats payload.item.phase == null || payload.item.phase === "final_answer" as finalAnswer internally, yet line 3993 only attaches phase to the emitted turnItem when context.messagePhases.has(item.id) (which skips null). That means older/custom models routed through Codex without native phase support 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions