Repository navigation
fix(acp,web): keep finished replies and question cards visible across steers and background wakes - #146
Conversation
PR SummaryMedium Risk Overview The ACP adapter now tracks prompt sequence on text segments and closes completed assistant streams with On the web client, Reviewed by Cursor Bugbot for commit d162ad9. Bugbot is set up for automated code reviews on this repo. Configure here. |
…-hidden-on-new-message # Conflicts: # fork/README.md
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e82ca73. Configure here.

Problem
When a run produces multiple assistant messages—because a user steers mid-run, an Inbox or agent-to-agent update arrives as a steer, or a background command/timer/subagent wakes an open Antigravity/ACP run—the timeline only treated the run's last assistant message (or messages tagged
phase: "final_answer") as non-collapsible. Once the run settled (or in Zen mode), earlier finished assistant responses—including messages holding unanswered question cards—collapsed into a"Worked for …"/"Continued for …"fold row while the user was still reading or answering them.Fix
packages/provider-acp/src/server/adapter.ts): TrackpromptSequenceon open text segments and close completed assistant replies withphase: "final_answer"at the three reply-completion boundaries where a run can keep going (usage_updateunderreplyEndsWithUsageUpdateafter prompt settlement or steer supersession, a supersededfollowPromptreturningend_turnfor its own segment, anddeferredBackgroundWork || pendingReplywhen the prompt settles ascompleted). Mid-turn tool narration (closed byemitToolbefore anyusage_updateor prompt settle) stays untagged and continues to fold.apps/web/src/components/chat/retainedAssistantReplies.logic.ts,MessagesTimeline.logic.ts,questionBlock.logic.ts): Route fork retention throughaddForkRetainedAssistantReplyEntryIdsinretainedAssistantReplyEntryIds, keeping finished question-card messages (messageHasQuestionCards) and the last completed unphasedassistant_messagedirectly before a native steer visible across settled turn folds, superseded-attempt folds, and Zen mode while still folding mid-turn narration between tool calls.apps/server/src/orchestration-v2/Adapters/AcpReplyPhase.test.ts,apps/web/src/components/chat/retainedAssistantReplies.logic.test.ts, andapps/web/src/components/chat/questionBlock.logic.test.ts, and documented both minimal seams infork/README.md.Tracks: COD-191
Verification
vp test run apps/server/src/orchestration-v2/Adapters/AcpReplyPhase.test.ts apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts(38/38 passed)vp test run apps/web/src/components/chat/retainedAssistantReplies.logic.test.ts apps/web/src/components/chat/questionBlock.logic.test.ts apps/web/src/components/chat/MessagesTimeline.logic.test.ts(163/163 passed)vp test run apps/web/src/components/chat/MessagesTimeline.browser.test.tsx(78/78 passed)vp run check:changed(format, lint, knip, graphql, 43-package typecheck, tests, React Compiler all green)Done with Gemini 4 Neon in the Antigravity harness.