Skip to content

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

feat(assistant-ui): vendor tool-group element with custom label and shimmer support

Steven Enamakelcd73fc0aee25
diff --git a/app/src/components/assistant-ui/elements/tool-group.tsx b/app/src/components/assistant-ui/elements/tool-group.tsx
index cfd5e3f58a..10a456db29 100644
--- a/app/src/components/assistant-ui/elements/tool-group.tsx
+++ b/app/src/components/assistant-ui/elements/tool-group.tsx
@@ -1,5 +1,22 @@
'use client';
+/**
+ * assistant-ui's tool-group element: the collapsible that wraps a run of
+ * consecutive tool calls behind a single "N tool calls" trigger.
+ *
+ * Vendored from the assistant-ui `tool-group` / `elements-tool-group`
+ * registry items (https://r.assistant-ui.com/styles/base-nova/tool-group.json,
+ * .../elements-tool-group.json — `elements/tool-group.aui.tsx` upstream).
+ * Changes from upstream:
+ * - `cn` import path and Radix collapsible from `../ui/collapsible` (this
+ * app's, not shadcn's).
+ * - `data-variant="outline-solid"` default (this app's Tailwind v4 token set
+ * renames the `outline` utility).
+ * - `ToolGroupTrigger` takes an optional `label` prop that replaces the
+ * default "N tool calls" text (used by `ActivityGroup` for a mixed
+ * reasoning + tool run) and renders a shimmer duplicate of the label while
+ * `active`, matching `tool-fallback`'s running-label treatment.
+ */
import { cn } from '@/components/assistant-ui/lib/utils';
import {
Collapsible,
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rs
index 48e1b0d2e6..c0e05ad031 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs
@@ -677,7 +677,7 @@ pub(crate) fn spawn_progress_bridge(
request_id: request_id.clone(),
tool_name: Some(tool_name),
skill_id: Some("web_channel".to_string()),
- args: Some(arguments),
+ args: cap_wire_args(Some(arguments)),
round: Some(iteration),
tool_call_id: Some(call_id),
tool_display_label: display_label,