Handle skill tool details and skip synthetic timeline events

This commit is contained in:
Mohamed Boudra
2026-02-23 18:06:38 +07:00
parent ff4f2eeb56
commit cbf5621a73
8 changed files with 86 additions and 0 deletions
+5
View File
@@ -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];