- {expandsToToolItems
- ? summary.items.map((item) => (
-
- ))
- : summary.items.map((item) => (
-
- {item.type === "tool"
- ? item.descriptor.preview || item.descriptor.label
- : item.title}
-
- ))}
+ {childSegments
+ ? childSegments.map((child) =>
+ child.kind === "summary" ? (
+
+ ) : (
+
+ ),
+ )
+ : expandsToToolItems
+ ? summary.items.map((item) => (
+
+ ))
+ : summary.items.map((item) => (
+
+ {item.type === "tool"
+ ? item.descriptor.preview || item.descriptor.label
+ : item.title}
+
+ ))}
{showTimestamp ? (
@@ -550,15 +580,33 @@ function ToolRunSummaryLabel({
label: string;
stats?: ActivityRowStats | null;
}) {
+ const animationPreferenceEnabled = useTranscriptAnimationEnabled();
const parts = splitActivityRowLabel(label);
if (!parts) {
return