improvement(logs): skill icon for tool call#3181
Merged
waleedlatif1 merged 1 commit intostagingfrom Feb 10, 2026
Merged
Conversation
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>
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryAdded special handling for the Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant TraceSpan
participant getBlockIconAndColor
participant Registry as Block Registry
participant Icons
TraceSpan->>getBlockIconAndColor: Request icon & color for span type
alt type === 'tool' && toolName
alt toolName === 'load_skill'
getBlockIconAndColor->>Icons: Get AgentSkillsIcon
Icons-->>getBlockIconAndColor: Return icon
getBlockIconAndColor-->>TraceSpan: {icon: AgentSkillsIcon, bgColor: '#8B5CF6'}
else other tool names
getBlockIconAndColor->>Registry: getBlockByToolName(toolName)
Registry-->>getBlockIconAndColor: Return block config
getBlockIconAndColor-->>TraceSpan: {icon, bgColor} from block
end
else Special types (loop, parallel, workflow)
getBlockIconAndColor-->>TraceSpan: {icon, bgColor} from special config
else Standard block types
getBlockIconAndColor->>Registry: getBlock(blockType)
Registry-->>getBlockIconAndColor: Return block config
getBlockIconAndColor-->>TraceSpan: {icon, bgColor} from block
end
TraceSpan->>TraceSpan: Render icon with background color
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
AgentSkillsIconand a consistent purple background color to skill entries in the logs' trace spans. Previously, skill entries appeared with a generic gray icon due to missing specific handling for theload_skilltool.Fixes # (issue) - No specific issue number provided, remove if not applicable
Type of Change
Testing
The change was verified by running lint and type checks, which passed successfully. Visual inspection confirms the icon and color are now displayed correctly for skill blocks in the logs.
Checklist
Screenshots/Videos