Skip to content

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

feat(assistant-ui): add compact todo list variant and restyle progress card

Steven Enamakel6da0e76c5517
diff --git a/app/src/components/assistant-ui/elements/todo-list.tsx b/app/src/components/assistant-ui/elements/todo-list.tsx
index 9aa5496090..f71680f335 100644
--- a/app/src/components/assistant-ui/elements/todo-list.tsx
+++ b/app/src/components/assistant-ui/elements/todo-list.tsx
@@ -64,16 +64,19 @@ export function TodoList({
}
/** The step rows, shared by every todo surface. */
-export function TodoItems({ items }: { items: readonly TodoItem[] }) {
+export function TodoItems({ items, compact = false }: { items: readonly TodoItem[]; compact?: boolean }) {
return (
- <ul className="flex flex-col gap-1">
+ <ul className={cn('flex flex-col', compact ? 'gap-0.5' : 'gap-1')}>
{items.map(item => (
<li
key={item.id}
data-testid="todo-item"
data-status={item.status}
- className="fade-in slide-in-from-bottom-1 animate-in fill-mode-both flex items-start gap-2.5 py-0.5 text-[13.5px] duration-300">
- <span aria-hidden className="flex size-4 h-5 shrink-0 items-center justify-center">
+ className={cn(
+ 'fade-in slide-in-from-bottom-1 animate-in fill-mode-both flex items-start duration-300',
+ compact ? 'gap-2 py-0 text-xs' : 'gap-2.5 py-0.5 text-[13.5px]'
+ )}>
+ <span aria-hidden className={cn('flex size-4 shrink-0 items-center justify-center', compact ? 'h-4' : 'h-5')}>
{item.status === 'done' ? (
<span className="border-foreground/20 bg-foreground/[0.06] flex size-3.5 items-center justify-center rounded-[5px] border">
<CheckIcon className="text-foreground/45 size-2.5" />
@@ -89,7 +92,7 @@ export function TodoItems({ items }: { items: readonly TodoItem[] }) {
)}
</span>
<span className="sr-only">{item.status}</span>
- <div className="min-w-0 flex-1 leading-5 break-words">
+ <div className={cn('min-w-0 flex-1 break-words', compact ? 'leading-4' : 'leading-5')}>
<span
className={cn(
item.status === 'done' && 'text-foreground/35 line-through decoration-[1.5px]',
@@ -191,7 +194,7 @@ export function TodoProgressCard({
data-todo-completed={progress.done}
data-todo-total={progress.total}
className={cn(
- 'border-border/60 bg-background/60 flex w-full max-w-md flex-col overflow-hidden rounded-xl border',
+ 'flex w-full max-w-none flex-col overflow-hidden rounded-lg bg-transparent backdrop-blur-md',
className
)}
{...props}>
@@ -201,9 +204,9 @@ export function TodoProgressCard({
aria-label={title}
data-analytics-id="chat-todo-progress-toggle"
onClick={() => onOpenChange(!open)}
- className="hover:bg-foreground/[0.03] flex items-center gap-2 px-3 py-1.5 text-start transition-colors">
+ className="hover:bg-foreground/[0.03] flex items-center gap-2 px-2 py-1 text-start transition-colors">
<ProgressMarker progress={progress} />
- <span className="text-foreground/80 min-w-0 flex-1 truncate text-[13px]">
+ <span className="text-foreground/80 min-w-0 flex-1 truncate text-xs">
{open ? title : (progress.current?.text ?? title)}
</span>
<span
@@ -229,8 +232,8 @@ export function TodoProgressCard({
<div
data-slot="todo-progress-steps"
hidden={!open}
- className="border-border/60 max-h-[min(300px,48dvh)] overflow-y-auto border-t px-3 py-2">
- <TodoItems items={items} />
+ className="max-h-[min(160px,24dvh)] overflow-y-auto px-2 pt-0.5 pb-1">
+ <TodoItems items={items} compact />
</div>
</div>
);
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsx
index 29c60d5762..1804b51eae 100644
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@ -503,7 +503,7 @@ const ThreadRoot: FC<{
<ThreadPrimitive.ViewportFooter
className={cn(
- 'aui-thread-viewport-footer bg-background flex flex-col gap-4 overflow-visible pb-4 md:pb-6',
+ 'aui-thread-viewport-footer relative z-10 flex flex-col gap-4 overflow-visible bg-transparent pb-4 md:pb-6',
!isEmpty && 'sticky bottom-0 mt-auto rounded-t-(--composer-radius)'
)}>
<ThreadScrollToBottom />
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index 6277e517e8..af2668e0ce 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -2023,7 +2023,7 @@ const Conversations = ({
: formatTokens(threadGoal.tokens_used)}
</span>
}
- className="mb-2 self-start"
+ className="mb-2 w-full [&>span:nth-of-type(3)]:max-w-none [&>span:nth-of-type(3)]:flex-1"
/>
)}
{selectedThreadId && liveTodos && liveTodos.length > 0 && (
@@ -2263,7 +2263,7 @@ const Conversations = ({
) : null;
const assistantComposerHeader = (
- <>
+ <div className="chat-composer-surfaces flex w-full min-w-0 flex-col empty:hidden">
{/* Turn gates first: a parked plan review and a drafted workflow both
block progress until the user decides, so they sit above the transient
attach error and the queued-followup strip. `ComposerHeader` is the
@@ -2298,7 +2298,7 @@ const Conversations = ({
input; renders only while the thread has no messages, since the
core fixes the folder at the first send. */}
<ThreadWorkspaceChip threadId={selectedThreadId ?? null} />
- </>
+ </div>
);
// Left-hand controls in the assistant-ui composer toolbar.