Skip to content

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

feat(thread-list): replace running spinner with title shimmer

Steven Enamakeld66f8686110c
diff --git a/app/src/components/assistant-ui/thread-list.tsx b/app/src/components/assistant-ui/thread-list.tsx
index aad11a6f79..390a1e4ed1 100644
--- a/app/src/components/assistant-ui/thread-list.tsx
+++ b/app/src/components/assistant-ui/thread-list.tsx
@@ -18,7 +18,6 @@ import {
} from '@assistant-ui/react';
import {
ArchiveIcon,
- Loader2Icon,
MoreHorizontalIcon,
PencilIcon,
PlusIcon,
@@ -293,18 +292,14 @@ export const ThreadListItem: FC<{
{...triggerProps}
data-slot="aui_thread-list-item-trigger"
className="focus-visible:ring-ring/50 flex h-full min-w-0 flex-1 items-center rounded-md px-2.5 text-start text-sm outline-none group-hover:pe-9 group-has-focus-visible:pe-9 group-has-data-[state=open]:pe-9 group-data-active:pe-9 focus-visible:ring-1">
- {isRunning && (
- <Loader2Icon
- aria-hidden
- data-slot="aui_thread-list-item-running"
- className="text-muted-foreground me-1.5 size-3.5 shrink-0 animate-spin"
- />
- )}
<span
data-slot="aui_thread-list-item-title"
data-running={isRunning ? 'true' : undefined}
aria-busy={isRunning || undefined}
- className="min-w-0 flex-1 truncate">
+ className={cn(
+ 'min-w-0 flex-1 truncate',
+ isRunning && 'shimmer motion-reduce:animate-none'
+ )}>
<ThreadListItemPrimitive.Title fallback={t('chat.untitledThread')} />
</span>
{trailing}
diff --git a/app/src/features/conversations/threadList/ThreadList.test.tsx b/app/src/features/conversations/threadList/ThreadList.test.tsx
index 953160ff49..458921577b 100644
--- a/app/src/features/conversations/threadList/ThreadList.test.tsx
+++ b/app/src/features/conversations/threadList/ThreadList.test.tsx
@@ -111,7 +111,11 @@ describe('ThreadList', () => {
const running = within(screen.getByTestId('thread-row-t2')).getByText('Plan trip');
expect(running).toHaveAttribute('data-running', 'true');
expect(running).toHaveClass('shimmer', 'motion-reduce:animate-none');
- expect(screen.getByTestId('thread-row-t2').querySelector('[data-slot="aui_thread-list-item-running"]')).toBeNull();
+ expect(
+ screen
+ .getByTestId('thread-row-t2')
+ .querySelector('[data-slot="aui_thread-list-item-running"]')
+ ).toBeNull();
});
it('creates and switches conversations through the runtime adapter', async () => {