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): show running loader and refine task card layout
Steven Enamakel2bbfd3447a85
diff --git a/app/src/components/assistant-ui/elements/task-card.tsx b/app/src/components/assistant-ui/elements/task-card.tsxindex 68edcc0a5c..e1da0402be 100644--- a/app/src/components/assistant-ui/elements/task-card.tsx+++ b/app/src/components/assistant-ui/elements/task-card.tsx@@ -57,7 +57,8 @@ export function TaskStateIcon({ state, className }: { state: TaskCardState; clasaria-hiddenclassName={cn('text-muted-foreground size-3.5 shrink-0 animate-spin motion-reduce:animate-none',- className+ (!dock || (state !== 'working' && state !== 'waiting')) && 'my-3',+ className)}/>);@@ -122,14 +123,14 @@ export function TaskCard({className="hover:enabled:bg-foreground/[0.03] flex items-center gap-2.5 px-3.5 py-2.5 text-start transition-colors disabled:cursor-default"><TaskStateIcon state={state} /><span className="sr-only">{t(`conversations.taskCard.state.${state}`)}</span>- <span className="min-w-0 flex-1 truncate text-[13.5px]">{label}</span>+ <span className="min-w-0 flex-1 truncate text-sm">{label}</span>{meta !== undefined && (- <span className={cn(mono, 'text-muted-foreground max-w-24 shrink-0 truncate')}>+ <span className={cn(mono, 'text-muted-foreground text-xs max-w-32 shrink-0 truncate')}>{meta}</span>)}{elapsed !== undefined && (- <span className={cn(mono, 'text-muted-foreground shrink-0 tabular-nums')}>{elapsed}</span>+ <span className={cn(mono, 'text-muted-foreground text-xs shrink-0 tabular-nums')}>{elapsed}</span>)}{hasTranscript && (<ChevronRightIcondiff --git a/app/src/components/assistant-ui/lib/task-card-dock.tsx b/app/src/components/assistant-ui/lib/task-card-dock.tsxindex 6e6813ab6c..cb8ecd3569 100644--- a/app/src/components/assistant-ui/lib/task-card-dock.tsx+++ b/app/src/components/assistant-ui/lib/task-card-dock.tsx@@ -19,7 +19,7 @@ export function TaskCardDock({ children }: PropsWithChildren) {<divref={setTarget}data-slot="task-card-dock"- className="sticky bottom-(--task-card-bottom,0px) z-10 flex flex-col gap-2 empty:hidden [&>[data-slot=task-card]]:max-w-none">+ className="sticky bottom-(--task-card-bottom,0px) z-10 flex max-h-[50dvh] flex-col gap-3 overflow-y-auto py-3 empty:hidden [&>[data-slot=task-card]]:max-w-none">{children}</div>);diff --git a/app/src/components/assistant-ui/thread-list.tsx b/app/src/components/assistant-ui/thread-list.tsxindex 390a1e4ed1..1be088d201 100644--- a/app/src/components/assistant-ui/thread-list.tsx+++ b/app/src/components/assistant-ui/thread-list.tsx@@ -18,6 +18,7 @@ import {} from '@assistant-ui/react';import {ArchiveIcon,+ Loader2Icon,MoreHorizontalIcon,PencilIcon,PlusIcon,@@ -304,9 +305,10 @@ export const ThreadListItem: FC<{</span>{trailing}{isRunning && (- <span className="sr-only">- {t('conversations.backgroundTasks.statusRunning', 'Running')}- </span>+ <>+ <Loader2Icon data-slot="aui_thread-list-item-running" aria-hidden className="ms-2 size-3.5 shrink-0 animate-spin motion-reduce:animate-none text-muted-foreground" />+ <span className="sr-only">{t('conversations.backgroundTasks.statusRunning', 'Running')}</span>+ </>)}</ThreadListItemPrimitive.Trigger>)}diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsxindex 9082f16458..ef40b63b57 100644--- a/app/src/components/assistant-ui/thread.tsx+++ b/app/src/components/assistant-ui/thread.tsx@@ -1249,7 +1249,7 @@ const AssistantMessage: FC = () => {<MessageError /><ChatErrorNotice />{MessageTasks && (- <div className="mt-3">+ <div><MessageTasks /></div>)}diff --git a/app/src/features/conversations/threadList/ThreadList.test.tsx b/app/src/features/conversations/threadList/ThreadList.test.tsxindex 09b6e36a66..b1dd85459c 100644--- a/app/src/features/conversations/threadList/ThreadList.test.tsx+++ b/app/src/features/conversations/threadList/ThreadList.test.tsx@@ -101,7 +101,7 @@ describe('ThreadList', () => {expect(screen.queryByTestId('thread-pin-t1')).not.toBeInTheDocument();});- it('shows unread only for idle threads and shimmers running titles without a loader', () => {+ it('shows unread only for idle threads and an explicit loader for running threads', () => {renderList({ unreadThreadIds: new Set(['t1', 't2']), isThreadRunning: id => id === 't2' });expect(screen.getByTestId('thread-unread-t1')).toBeInTheDocument();expect(screen.queryByTestId('thread-unread-t2')).not.toBeInTheDocument();@@ -112,7 +112,7 @@ describe('ThreadList', () => {screen.getByTestId('thread-row-t2').querySelector('[data-slot="aui_thread-list-item-running"]')- ).toBeNull();+ ).toBeInTheDocument();});it('creates and switches conversations through the runtime adapter', async () => {