Guard agent card click fallbacks

This commit is contained in:
klopez4212
2026-06-25 19:20:38 +01:00
parent b6ebac07bb
commit d2da355455

View File

@@ -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);
}
}}