Skip to content

Commit 82b93db

Browse files
committed
fix(webapp): compute answered for view blocks in the base message renderer
1 parent 637a2bb commit 82b93db

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

apps/webapp/app/components/dashboard-agent/DashboardAgentMessages.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Spinner } from "~/components/primitives/Spinner";
44
import { MessageBubble, renderPart } from "~/components/runs/v3/agent/AgentMessageView";
55
import { useAutoScrollToBottom } from "~/hooks/useAutoScrollToBottom";
66
import { reuseWinners } from "./investigation-winners";
7+
import { answerContinuesAfter } from "./view-actions";
78
import { ViewBlocks } from "./view-catalog";
89

910
// The shared MessageBubble renders `step-start` parts as a dashed "step" separator —
@@ -119,7 +120,13 @@ export function DashboardAgentMessageBubble({
119120
if (blocks.length === 0) return null;
120121
// No `onIntent`: nothing here can act on one yet, so the cards drop their
121122
// action rows rather than offer buttons that would do nothing.
122-
return <ViewBlocks key={i} blocks={blocks as never} />;
123+
return (
124+
<ViewBlocks
125+
key={i}
126+
blocks={blocks as never}
127+
answered={answerContinuesAfter(message.parts as never, i)}
128+
/>
129+
);
123130
})}
124131
</div>
125132
);

0 commit comments

Comments
 (0)