Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat(ui): add data tool display config in chat UI
Jiayuan Zhang5a3dc6c1e132
diff --git a/packages/ui/src/components/tool-call-item.tsx b/packages/ui/src/components/tool-call-item.tsxindex 87e665f67d..db93c03ee3 100644--- a/packages/ui/src/components/tool-call-item.tsx+++ b/packages/ui/src/components/tool-call-item.tsx@@ -12,6 +12,7 @@ import {GlobeIcon,DatabaseIcon,GitBranchIcon,+ ChartBarLineIcon,ArrowRight01Icon,} from "@hugeicons/core-free-icons"import { cn, getTextContent } from "@multica/ui/lib/utils"@@ -39,6 +40,7 @@ const TOOL_DISPLAY: Record<string, { label: string; icon: typeof File01Icon }> =memory_delete: { label: "MemoryDelete", icon: DatabaseIcon },memory_list: { label: "MemoryList", icon: DatabaseIcon },sessions_spawn: { label: "SpawnSession", icon: GitBranchIcon },+ data: { label: "Data", icon: ChartBarLineIcon },}// ---------------------------------------------------------------------------@@ -73,6 +75,12 @@ function getSubtitle(toolName: string, args?: Record<string, unknown>): string {return args.query ? String(args.query) : ""case "web_fetch":try { return new URL(String(args.url)).hostname } catch { return String(args.url ?? "") }+ case "data": {+ const action = String(args.action ?? "").replace(/^get_/, "")+ const params = args.params as Record<string, unknown> | undefined+ const ticker = params?.ticker ? String(params.ticker).toUpperCase() : ""+ return ticker ? `${action} ${ticker}` : action+ }default:return ""}@@ -91,6 +99,7 @@ const RUNNING_LABELS: Record<string, string> = {glob: "searching…",web_search: "searching…",web_fetch: "fetching…",+ data: "fetching…",}/** Stats derived from tool result content */