Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions gui/src/pages/gui/ToolCallDiv/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -92,7 +93,7 @@ export function ToolCallDiv({
<div className="border-border rounded-lg border px-4 py-3 pb-0">
<GroupedToolCallHeader
toolCallStates={toolCallStates}
activeCalls={activeCalls}
activeCalls={pendingCalls.length > 0 ? pendingCalls : activeCalls}
open={open}
onToggle={() => setOpen(!open)}
/>
Expand Down
Loading