Skip to content

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

fix(conversations): widen composer cards to match the input

Steven Enamakel3f9be7a1fbca
diff --git a/app/src/components/assistant-ui/elements/agent-status.tsx b/app/src/components/assistant-ui/elements/agent-status.tsx
index 864245ba92..fca7a8e5e3 100644
--- a/app/src/components/assistant-ui/elements/agent-status.tsx
+++ b/app/src/components/assistant-ui/elements/agent-status.tsx
@@ -65,6 +65,7 @@ export function AgentStatus({
<span className="sr-only">{state}</span>
<span
key={label}
+ data-slot="agent-status-label"
className="fade-in blur-in-[2px] animate-in max-w-44 truncate text-xs duration-300 motion-reduce:animate-none">
{label}
</span>
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index af2668e0ce..a9d365b182 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 w-full [&>span:nth-of-type(3)]:max-w-none [&>span:nth-of-type(3)]:flex-1"
+ className="mb-2 w-full [&_[data-slot=agent-status-label]]:max-w-none [&_[data-slot=agent-status-label]]:flex-1"
/>
)}
{selectedThreadId && liveTodos && liveTodos.length > 0 && (
diff --git a/app/src/index.css b/app/src/index.css
index 59e82ed092..bdfa2de1cb 100644
--- a/app/src/index.css
+++ b/app/src/index.css
@@ -844,6 +844,23 @@
@apply text-lg lg:text-xl;
}
+ /* 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']
+ ) {
+ width: 100%;
+ max-width: none;
+ min-width: 0;
+ }
+
/* Suppress the default browser focus ring (outline + tap highlight) but
leave borders and box-shadows alone — components rely on those for
selected / focus-visible styling (e.g. the runtime picker cards).