diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsx index a113157aca3304afc055169ece83f4afd622066f..d73dbcb20632967107bc4515b15654dce4a64d58 100644 --- a/apps/web/src/components/chat/MessagesTimeline.tsx +++ b/apps/web/src/components/chat/MessagesTimeline.tsx @@ -2993,7 +2993,7 @@ function buildToolCallExpandedBody( viewedImagePath: string | null, ): string | null { const blocks: string[] = []; - const seen = new Set(); + const seen = new Set([visibleLabel.trim()]); const addBlock = (value: string | null | undefined) => { const text = value?.trim(); if (!text || seen.has(text)) return; @@ -3215,6 +3215,7 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: { : null; const commandMatchesVisibleLabel = workEntry.command?.trim() === previewText.trim(); const canExpand = + (showFailedIndicator && previewText.trim().length > 0) || (workEntry.itemType === "mcp_tool_call" && workEntry.toolData !== undefined) || Boolean( (!commandMatchesVisibleLabel &&