diff --git a/ui/web/src/pages/events/event-sections/agent-event-cards.tsx b/ui/web/src/pages/events/event-sections/agent-event-cards.tsx index 09d12085..bdf7644e 100644 --- a/ui/web/src/pages/events/event-sections/agent-event-cards.tsx +++ b/ui/web/src/pages/events/event-sections/agent-event-cards.tsx @@ -53,17 +53,26 @@ function ToolEventCard({ p, resolveAgent }: { p: EnrichedAgentEventPayload; reso const isError = isResult && p.payload?.is_error; const args = p.payload?.arguments; const agentName = resolveAgent(p.agentId); + const isSkill = toolName === "use_skill"; + const skillName = isSkill ? (args?.name as string) || "unknown" : null; + + // Display label: show "skill: " for use_skill, raw tool name otherwise + const displayName = isSkill ? `skill: ${skillName}` : toolName; return (
{isResult ? ( <> - {toolName && {toolName}} + {displayName && ( + + {displayName} + + )} → {agentName} - - {isError ? "error" : "ok"} + + {isError ? "error" : isSkill ? "activated" : "ok"} {p.runKind && } @@ -71,14 +80,18 @@ function ToolEventCard({ p, resolveAgent }: { p: EnrichedAgentEventPayload; reso <> {agentName} → - {toolName && {toolName}} + {displayName && ( + + {displayName} + + )} {p.runKind && } )}
- {/* Structured tool arguments (only for tool.call) */} - {!isResult && args && } + {/* Structured tool arguments (only for tool.call, skip for use_skill) */} + {!isResult && args && !isSkill && }