mirror of
https://github.com/block/buzz.git
synced 2026-11-03 07:51:22 +00:00
Guard agent card click fallbacks
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user