From 3eacf6030c2001929e76c7b0dc02a2967a777390 Mon Sep 17 00:00:00 2001 From: JeroenBolhuis Date: Mon, 9 Nov 2026 16:11:28 +0100 Subject: [PATCH] fix(clients): show all four subagent avatars --- .../src/features/threads/thread-subagent-group.tsx | 9 ++++++--- apps/web/src/components/chat/TimelineV2EventRow.tsx | 7 ++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/mobile/src/features/threads/thread-subagent-group.tsx b/apps/mobile/src/features/threads/thread-subagent-group.tsx index f3d3f3b5252b6..877dc361188a5 100644 --- a/apps/mobile/src/features/threads/thread-subagent-group.tsx +++ b/apps/mobile/src/features/threads/thread-subagent-group.tsx @@ -132,6 +132,7 @@ export function ThreadSubagentGroup(props: { }; }); const grouped = agents.length > 1; + const visibleAvatarCount = agents.length <= 4 ? agents.length : 3; const label = `${agents.length} subagents`; const summary = summarizeSubagentStatuses(agents.map((agent) => agent.status)); const expanded = props.expandedRows[props.anchorKey] ?? false; @@ -150,14 +151,16 @@ export function ThreadSubagentGroup(props: { className="min-h-14 flex-row items-center gap-3 rounded-lg py-2 active:bg-subtle" > - {agents.slice(0, 3).map((agent, index) => ( + {agents.slice(0, visibleAvatarCount).map((agent, index) => ( ))} - {agents.length > 3 ? ( + {agents.length > visibleAvatarCount ? ( - +{agents.length - 3} + + +{agents.length - visibleAvatarCount} + ) : null} diff --git a/apps/web/src/components/chat/TimelineV2EventRow.tsx b/apps/web/src/components/chat/TimelineV2EventRow.tsx index e69ffdbaffdd4..57e4bcaecb56f 100644 --- a/apps/web/src/components/chat/TimelineV2EventRow.tsx +++ b/apps/web/src/components/chat/TimelineV2EventRow.tsx @@ -80,6 +80,7 @@ const V2SubagentGroup = memo(function V2SubagentGroup({ }; }); const summary = subagentGroupSummary(agents); + const visibleAvatarCount = agents.length <= 4 ? agents.length : 3; const label = `${members.length} ${members.length === 1 ? "subagent" : "subagents"}`; const statusSummary = summarizeSubagentStatuses(agents.map(({ status }) => status)); const toggleExpanded = (open: boolean) => { @@ -103,7 +104,7 @@ const V2SubagentGroup = memo(function V2SubagentGroup({ )} > - {agents.slice(0, 3).map(({ item, status }) => ( + {agents.slice(0, visibleAvatarCount).map(({ item, status }) => ( ))} - {agents.length > 3 ? ( + {agents.length > visibleAvatarCount ? ( - +{agents.length - 3} + +{agents.length - visibleAvatarCount} ) : null}