Skip to content

Commit 2897da1

Browse files
fix(web): count the optimistic follow-up when retiring the setup row
Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent 35aced3 commit 2897da1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/web/src/components/ChatView.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3529,7 +3529,9 @@ export default function ChatView(props: ChatViewProps) {
35293529
live: liveWorktreeSetup,
35303530
recorded: recordedWorktreeSetup,
35313531
turnStarted: activeThread?.latestTurn?.startedAt != null,
3532-
followUpSent: (serverMessages?.filter((message) => message.role === "user").length ?? 0) > 1,
3532+
// Counts the optimistic send too, so the row retires the moment the
3533+
// follow-up is on screen rather than when the server echoes it back.
3534+
followUpSent: timelineMessages.filter((message) => message.role === "user").length > 1,
35333535
});
35343536
// Sends wait for the agent handoff, not for the setup script: an async
35353537
// script keeps the snapshot running while the agent already works, and a

0 commit comments

Comments
 (0)