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
fix(assistantUiMock): correct SubagentCall import path
Steven Enamakel2a537c95c118
diff --git a/app/src/lib/assistantUiMock/SubagentCall.tsx b/app/src/lib/assistantUiMock/SubagentCall.tsxindex d148468f1c..710aa2e678 100644--- a/app/src/lib/assistantUiMock/SubagentCall.tsx+++ b/app/src/lib/assistantUiMock/SubagentCall.tsx@@ -4,8 +4,13 @@** A delegation is not shaped like an ordinary call: it has an agent identity, a* running list of nested steps it took, and a written report at the end. Folding- * that into the fallback's args/result JSON pair loses the thing worth seeing,- * which is the nested trace arriving step by step while the parent turn waits.+ * that into the fallback's args/result JSON pair loses the thing worth seeing.+ *+ * And what is worth seeing is that the parent turn is *not* waiting. Delegation+ * is asynchronous: the turn dispatches and carries on, so these steps arrive+ * underneath prose that was written after them. The running state says so+ * explicitly — a "running" pill and a ticking clock — because a spinner alone+ * reads as "the turn is blocked here", which is the opposite of what happens.** Styling stays on the shadcn semantic tokens the rest of the vendored set* uses, so this follows the app theme in both modes.@@ -33,6 +38,7 @@ function asSubagentResult(result: unknown): MockSubagentResult | undefined {export const SubagentCall: ToolCallMessagePartComponent = ({ args, result }) => {const parsed = asSubagentResult(result);const running = parsed?.status !== 'complete';+ const elapsed = parsed?.elapsedSeconds;const description = (args as { description?: string } | undefined)?.description;const name =parsed?.subagent ??@@ -43,16 +49,26 @@ export const SubagentCall: ToolCallMessagePartComponent = ({ args, result }) =><Collapsibledata-slot="aui_subagent-call"defaultOpen- className="aui-subagent-call border-border/60 dark:border-muted-foreground/15 my-2 rounded-xl border">+ className={cn(+ 'aui-subagent-call border-border/60 dark:border-muted-foreground/15 my-2 rounded-xl border',+ running && 'border-dashed'+ )}><CollapsibleTrigger className="group/subagent text-muted-foreground hover:text-foreground flex w-full items-center gap-2 px-3 py-2 text-sm transition-colors"><WorkflowIcon className="size-4 shrink-0" /><span className="text-start leading-none">Delegated to <b className="text-foreground">{name}</b></span>{running ? (- <Loader2Icon className="size-3.5 shrink-0 animate-spin [animation-duration:0.6s]" />+ <span className="bg-muted text-muted-foreground flex shrink-0 items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] leading-none">+ <Loader2Icon className="size-3 animate-spin [animation-duration:0.6s]" />+ running+ {elapsed !== undefined && <span className="tabular-nums">{elapsed.toFixed(1)}s</span>}+ </span>) : (- <CheckIcon className="text-muted-foreground size-3.5 shrink-0" />+ <span className="text-muted-foreground flex shrink-0 items-center gap-1.5 text-[11px] leading-none">+ <CheckIcon className="size-3.5" />+ {elapsed !== undefined && <span className="tabular-nums">{elapsed.toFixed(1)}s</span>}+ </span>)}<ChevronDownIcon className="ml-auto size-4 shrink-0 -rotate-90 transition-transform group-data-[state=open]/subagent:rotate-0" /></CollapsibleTrigger>@@ -73,6 +89,12 @@ export const SubagentCall: ToolCallMessagePartComponent = ({ args, result }) =>))}</ol>+ {running && (+ <p className="text-muted-foreground mt-2 text-xs italic">+ Still running — the turn did not wait for it.+ </p>+ )}+{parsed?.report && (<pclassName={cn(