From d2da355455298a6e23be6591bc004f0fded8e969 Mon Sep 17 00:00:00 2001 From: klopez4212 Date: Thu, 25 Jun 2026 19:20:38 +0100 Subject: [PATCH] Guard agent card click fallbacks --- desktop/src/features/agents/ui/UnifiedAgentsSection.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx b/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx index 7c95dadebd..cdce927572 100644 --- a/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx +++ b/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx @@ -418,7 +418,9 @@ function AgentPersonaCard({ onOpenAgentProfile(agent.pubkey); return; } - personaMenuProps.onEditPersona(persona); + if (!persona.isBuiltIn) { + personaMenuProps.onEditPersona(persona); + } }} status={ agent ? ( @@ -463,7 +465,7 @@ function StandaloneAgentCard({ onClick={() => { if (onOpenAgentProfile) { onOpenAgentProfile(agent.pubkey); - } else { + } else if (agent.backend.type === "local") { agentMenuProps.onOpenLogs(agent.pubkey); } }}