{line}
- ))}
-
+ )}
+ />
);
}
@@ -117,14 +123,15 @@ function ToolCallItem(props: {
readonly call: ToolCallRow;
readonly windowStart: number;
readonly windowEnd: number;
+ readonly expanded: boolean;
+ readonly onToggle: () => void;
}) {
- const [expanded, setExpanded] = useState(false);
return (
No tool calls recorded.
; + returnNo tool calls recorded.
; } // Derive the window end from the tool-call data as well as `run.completedAt` // so a fresher tool call can't outrun a stale run end and clamp its bar to a @@ -175,16 +193,25 @@ function ToolCallsTab(props: { readonly run: RunRow; readonly toolCalls: readonl ); const windowEnd = Math.max(props.run.completedAt ?? Date.now(), callsEnd); return ( -Error
-
- {props.errorText}
-
+
+ - {interactionsHeading} -
- {props.interactions.map((interaction) => ( -Error
+
+ {props.errorText}
+
+ + {interactionsHeading} +
+ {props.interactions.map((interaction) => ( +