Skip to content

Commit 7df5359

Browse files
committed
fix(web): a finished tool stops reading as running while an approval waits
1 parent 1f950c9 commit 7df5359

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/web/src/components/chat/MessagesTimeline.logic.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,8 @@ export function deriveMessagesTimelineRows(input: {
14931493
const latestToolKeepsActivityLive =
14941494
latestRunningToolEntry !== undefined ||
14951495
(latestVisibleToolEntry !== undefined &&
1496-
workEntryIndicatesToolSuccess(latestVisibleToolEntry.entry));
1496+
workEntryIndicatesToolSuccess(latestVisibleToolEntry.entry) &&
1497+
!input.pendingApprovalRequestIds?.size);
14971498
const latestToolFailed =
14981499
latestRunningToolEntry === undefined &&
14991500
latestVisibleToolEntry !== undefined &&

0 commit comments

Comments
 (0)