Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(assistant-ui): handle empty activity and tool groups

Steven Enamakel221fb281d445
diff --git a/app/src/components/assistant-ui/activity-group.tsx b/app/src/components/assistant-ui/activity-group.tsx
index dbd92527f6..5aa622032c 100644
--- a/app/src/components/assistant-ui/activity-group.tsx
+++ b/app/src/components/assistant-ui/activity-group.tsx
@@ -58,7 +58,6 @@ export const ActivityGroup: FC<PropsWithChildren<{ group: ActivityGroupPart }>>
return (
<ToolGroupRoot
variant="ghost"
- data-slot="aui_activity-group"
open={userOpen ?? live}
onOpenChange={setUserOpen}>
<ToolGroupTrigger
diff --git a/app/src/components/assistant-ui/tool-group.tsx b/app/src/components/assistant-ui/tool-group.tsx
index 4f8c9ac318..cfd5e3f58a 100644
--- a/app/src/components/assistant-ui/tool-group.tsx
+++ b/app/src/components/assistant-ui/tool-group.tsx
@@ -78,11 +78,17 @@ function ToolGroupRoot({
function ToolGroupTrigger({
count,
+ label: labelOverride,
active = false,
className,
...props
-}: React.ComponentProps<typeof CollapsibleTrigger> & { count: number; active?: boolean }) {
- const label = `${count} tool ${count === 1 ? 'call' : 'calls'}`;
+}: React.ComponentProps<typeof CollapsibleTrigger> & {
+ count: number;
+ /** Replaces the default "N tool calls" text, e.g. for a mixed reasoning group. */
+ label?: string;
+ active?: boolean;
+}) {
+ const label = labelOverride ?? `${count} tool ${count === 1 ? 'call' : 'calls'}`;
return (
<CollapsibleTrigger