The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(assistant-ui): render flat object arrays as data tables in tool views
Steven Enamakel52131de378e8
diff --git a/app/src/components/assistant-ui/elements/task-card.tsx b/app/src/components/assistant-ui/elements/task-card.tsxindex ab1be3bbc0..d14f10cf4b 100644--- a/app/src/components/assistant-ui/elements/task-card.tsx+++ b/app/src/components/assistant-ui/elements/task-card.tsx@@ -1,15 +1,20 @@'use client';/**- * Vendored verbatim from the assistant-ui `task-card` registry item- * (https://r.assistant-ui.com/styles/base-nova/task-card.json). No local- * changes — pure presentational primitive, no hard-coded user-facing copy- * (every string is a caller-supplied prop).+ * Vendored from the assistant-ui `task-card` registry item+ * (https://r.assistant-ui.com/styles/base-nova/task-card.json). Changes from+ * upstream:+ * - `cn` import path (`@/components/assistant-ui/lib/utils`), matching every+ * other vendored element in this directory.+ * No hard-coded user-facing copy — every string (`label`, `meta`, `elapsed`,+ * `result`) is a caller-supplied prop, so there is nothing to route through+ * `useT()` here.*/import { Children, type ComponentProps, type ReactNode, useState } from 'react';import { Ban, CheckIcon, ChevronRightIcon, Loader2Icon, XIcon } from 'lucide-react';-import { cn } from '../lib/utils';+import { cn } from '@/components/assistant-ui/lib/utils';+import { mono, paper } from './surfaces';export type TaskCardState = 'working' | 'waiting' | 'done' | 'failed' | 'cancelled';diff --git a/app/src/features/conversations/tools/ToolDataView.tsx b/app/src/features/conversations/tools/ToolDataView.tsxindex aa5a0e095c..8dd6855d6d 100644--- a/app/src/features/conversations/tools/ToolDataView.tsx+++ b/app/src/features/conversations/tools/ToolDataView.tsx@@ -66,6 +66,9 @@ export function hasDisplayValue(value: unknown): boolean {export function ToolDataView({ value }: { value: unknown }) {const parsed = parsedValue(value);if (Array.isArray(parsed)) {+ if (isFlatObjectArray(parsed)) {+ return <DataTable rows={parsed} columns={flatRowColumns(parsed)} />;+ }return (<ul className="space-y-1 text-xs">{parsed.map((item, index) => (diff --git a/app/src/providers/assistantUiMessages.ts b/app/src/providers/assistantUiMessages.tsindex 1ab6b9bdf7..f90e6cec8a 100644--- a/app/src/providers/assistantUiMessages.ts+++ b/app/src/providers/assistantUiMessages.ts@@ -19,6 +19,7 @@ import {FEEDBACK_METADATA_KEY,FEEDBACK_ROW_IDS_METADATA_KEY,type MessageFeedback,+ TIMING_METADATA_KEY,} from '../store/threadSlice';import type { ThreadMessage } from '../types/thread';import { extractAgentSources } from '../utils/toolTimelineFormatting';