diff --git a/gui/src/pages/gui/ToolCallDiv/index.tsx b/gui/src/pages/gui/ToolCallDiv/index.tsx index 4374a264ab..918c16d3f2 100644 --- a/gui/src/pages/gui/ToolCallDiv/index.tsx +++ b/gui/src/pages/gui/ToolCallDiv/index.tsx @@ -29,8 +29,9 @@ export function ToolCallDiv({ const shouldShowGroupedUI = toolCallStates.length > 1 && isStreamingComplete; const activeCalls = toolCallStates.filter( - (call) => call.status !== "canceled" && call.status !== "done", + (call) => call.status !== "canceled", ); + const pendingCalls = toolCallStates.filter((call) => call.status !== "done"); const renderToolCall = (toolCallState: ToolCallState) => { const tool = availableTools.find( @@ -92,7 +93,7 @@ export function ToolCallDiv({