From cb37bcab12078215ee2d09c8896c30bd3c735da7 Mon Sep 17 00:00:00 2001 From: klopez4212 Date: Fri, 19 Jun 2026 13:38:36 +0100 Subject: [PATCH] Keep secondary persona agents reachable --- .../agents/ui/UnifiedAgentsSection.tsx | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx b/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx index d52318898..8e7cce062 100644 --- a/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx +++ b/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx @@ -96,6 +96,18 @@ export function UnifiedAgentsSection(props: UnifiedAgentsSectionProps) { () => buildUnifiedGroups(personas, agents), [personas, agents], ); + const additionalPersonaAgents = React.useMemo(() => { + const additional: ManagedAgent[] = []; + for (const group of groups) { + const primary = pickProfileAgent(group.agents); + for (const agent of group.agents) { + if (primary?.pubkey !== agent.pubkey) { + additional.push(agent); + } + } + } + return additional; + }, [groups]); const [collapsed, setCollapsed] = React.useState>(new Set()); const { fileInputRef, @@ -164,6 +176,16 @@ export function UnifiedAgentsSection(props: UnifiedAgentsSectionProps) { /> + {additionalPersonaAgents.length > 0 ? ( + + ) : null} {unknown.length > 0 ? (