diff --git a/apps/web/src/components/workflow/workflowUi.tsx b/apps/web/src/components/workflow/workflowUi.tsx index 5fcb25b77b..92ebf9a764 100644 --- a/apps/web/src/components/workflow/workflowUi.tsx +++ b/apps/web/src/components/workflow/workflowUi.tsx @@ -140,9 +140,12 @@ export function agentStatsLabel(agent: WorkflowRunAgent): string | undefined { return parts.length > 0 ? parts.join(" · ") : undefined; } -/** The shared inner content of an agent row: dot, label, badges, - * right-aligned model + stats. Error text is the only inline content — - * routine previews live in the expandable transcript, not the row. */ +/** + * The shared inner content of an agent row. Two-line layout: the label owns + * the first line and wraps freely (long workflow labels are common), and + * model / stats / badges / error text sit on a muted meta line beneath — + * nothing competes for horizontal space, so nothing clips. + */ export function AgentRowContent({ agent, leading, @@ -152,32 +155,34 @@ export function AgentRowContent({ }): ReactElement { const stats = agentStatsLabel(agent); const errorText = agent.status === "error" ? agent.error : undefined; + const metaLabel = [agent.model, stats].filter((part) => part !== undefined).join(" · "); + const hasBadges = agent.cached === true || (agent.attempt !== undefined && agent.attempt > 1); return ( -