Skip to content

Commit 3b62a2c

Browse files
feat(logs): add skill icon to trace spans
Adds the AgentSkillsIcon to trace spans in logs when displaying the load_skill tool. Previously, skills appeared with a default gray color. Now they display with the proper skill icon and a purple (#8B5CF6) background color, consistent with the skills icon used in the settings modal and skill input components. Co-authored-by: Emir Karabeg <emir-karabeg@users.noreply.github.com>
1 parent e321f88 commit 3b62a2c

File tree

1 file changed

+5
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/trace-spans

1 file changed

+5
-1
lines changed

apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/trace-spans/trace-spans.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
PopoverItem,
1717
Tooltip,
1818
} from '@/components/emcn'
19-
import { WorkflowIcon } from '@/components/icons'
19+
import { AgentSkillsIcon, WorkflowIcon } from '@/components/icons'
2020
import { cn } from '@/lib/core/utils/cn'
2121
import { formatDuration } from '@/lib/core/utils/formatting'
2222
import { LoopTool } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/subflows/loop/loop-config'
@@ -118,6 +118,10 @@ function getBlockIconAndColor(
118118

119119
// Check for tool by name first (most specific)
120120
if (lowerType === 'tool' && toolName) {
121+
// Handle load_skill tool with the AgentSkillsIcon
122+
if (toolName === 'load_skill') {
123+
return { icon: AgentSkillsIcon, bgColor: '#8B5CF6' }
124+
}
121125
const toolBlock = getBlockByToolName(toolName)
122126
if (toolBlock) {
123127
return { icon: toolBlock.icon, bgColor: toolBlock.bgColor }

0 commit comments

Comments
 (0)