Handle skill tool details and skip synthetic timeline events
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
MicVocal,
|
||||
Pencil,
|
||||
Search,
|
||||
Sparkles,
|
||||
SquareTerminal,
|
||||
Wrench,
|
||||
} from "lucide-react-native";
|
||||
@@ -21,6 +22,7 @@ const TOOL_DETAIL_ICONS: Record<ToolCallDetail["type"], ToolCallIconComponent> =
|
||||
search: Search,
|
||||
worktree_setup: SquareTerminal,
|
||||
sub_agent: Bot,
|
||||
plain_text: Wrench,
|
||||
unknown: Wrench,
|
||||
};
|
||||
|
||||
@@ -37,6 +39,9 @@ export function resolveToolCallIcon(toolName: string, detail?: ToolCallDetail):
|
||||
if (lowerName === "task") {
|
||||
return Bot;
|
||||
}
|
||||
if (lowerName === "skill") {
|
||||
return Sparkles;
|
||||
}
|
||||
|
||||
if (detail) {
|
||||
return TOOL_DETAIL_ICONS[detail.type];
|
||||
|
||||
Reference in New Issue
Block a user