-
- {!!toolCallState.output?.length && (
-
- )}
- {args.length > 0 ? (
-
- ) : null}
-
+ {args.length > 0 && (
+
+ )}
+
{isToggleable && (
@@ -110,8 +104,8 @@ export function SimpleToolCallUI({
shouldShowContent ? "max-h-[50vh] opacity-100" : "max-h-0 opacity-0"
}`}
>
- {shownContextItems.length > 0 ? (
- shownContextItems.map((contextItem, idx) => (
+ {ctxItems.length > 0 ? (
+ ctxItems.map((contextItem, idx) => (
))
) : (
diff --git a/gui/src/pages/gui/ToolCallDiv/ToolCall.tsx b/gui/src/pages/gui/ToolCallDiv/ToolCall.tsx
index 956ef791b..dcfd186c7 100644
--- a/gui/src/pages/gui/ToolCallDiv/ToolCall.tsx
+++ b/gui/src/pages/gui/ToolCallDiv/ToolCall.tsx
@@ -2,14 +2,12 @@ import { Tool, ToolCallState } from "core";
import { useMemo, useState } from "react";
import { ArgsItems, ArgsToggleIcon } from "./ToolCallArgs";
import { ToolCallStatusMessage } from "./ToolCallStatusMessage";
-import { ToolTruncateHistoryIcon } from "./ToolTruncateHistoryIcon";
interface ToolCallDisplayProps {
children: React.ReactNode;
icon: React.ReactNode;
tool: Tool | undefined;
toolCallState: ToolCallState;
- historyIndex: number;
}
export function ToolCallDisplay({
@@ -17,7 +15,6 @@ export function ToolCallDisplay({
toolCallState,
children,
icon,
- historyIndex,
}: ToolCallDisplayProps) {
const [argsExpanded, setArgsExpanded] = useState(false);
@@ -42,18 +39,13 @@ export function ToolCallDisplay({
toolCallState={toolCallState}
/>