Skip to content

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

style: reformat todo list and composer surface selectors

Steven Enamakel94d1e4910cbf
diff --git a/app/src/components/assistant-ui/elements/todo-list.tsx b/app/src/components/assistant-ui/elements/todo-list.tsx
index ddad34cef2..b52bf258fc 100644
--- a/app/src/components/assistant-ui/elements/todo-list.tsx
+++ b/app/src/components/assistant-ui/elements/todo-list.tsx
@@ -64,7 +64,13 @@ export function TodoList({
}
/** The step rows, shared by every todo surface. */
-export function TodoItems({ items, compact = false }: { items: readonly TodoItem[]; compact?: boolean }) {
+export function TodoItems({
+ items,
+ compact = false,
+}: {
+ items: readonly TodoItem[];
+ compact?: boolean;
+}) {
return (
<ul className={cn('flex flex-col', compact ? 'gap-0.5' : 'gap-1')}>
{items.map(item => (
@@ -76,7 +82,12 @@ export function TodoItems({ items, compact = false }: { items: readonly TodoItem
'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')}>
+ <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" />
@@ -96,7 +107,10 @@ export function TodoItems({ items, compact = false }: { items: readonly TodoItem
<span
className={cn(
item.status === 'done' &&
- cn(compact ? 'text-foreground/55' : 'text-foreground/35', 'line-through decoration-[1.5px]'),
+ cn(
+ compact ? 'text-foreground/55' : 'text-foreground/35',
+ 'line-through decoration-[1.5px]'
+ ),
item.status === 'active' && 'text-foreground/90',
item.status === 'pending' && 'text-foreground/50',
item.status === 'failed' && 'text-red-600 dark:text-red-400'
diff --git a/app/src/index.css b/app/src/index.css
index 01903d01f9..82645ec0f0 100644
--- a/app/src/index.css
+++ b/app/src/index.css
@@ -979,17 +979,17 @@
/* Composer cards share the input's width, including cards inside decks.
Keep these overrides local: gallery cards and popovers retain their sizing. */
.chat-composer-surfaces > *,
-.chat-composer-surfaces :is(
- [data-slot='approval-card'],
- [data-slot='elicitation-form'],
- [data-slot='artifact-card'],
- [data-slot='task-card'],
- [data-slot='subagent-list'],
- [data-slot='background-inbox'],
- [data-testid='plan-review-card']
-) {
+.chat-composer-surfaces
+ :is(
+ [data-slot='approval-card'],
+ [data-slot='elicitation-form'],
+ [data-slot='artifact-card'],
+ [data-slot='task-card'],
+ [data-slot='subagent-list'],
+ [data-slot='background-inbox'],
+ [data-testid='plan-review-card']
+ ) {
width: 100%;
max-width: none;
min-width: 0;
}
-