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
@@ -245,6 +245,14 @@ export function ToolCallDetailsContent({
<Text selectable style={styles.scrollText}>{detail.query}</Text>
</View>
);
} else if (detail?.type === "plain_text") {
if (detail.text) {
sections.push(
<View key="plain-text" style={styles.plainTextSection}>
<Text selectable style={styles.plainText}>{detail.text}</Text>
</View>
);
}
} else if (detail?.type === "unknown") {
const plainInputText =
typeof detail.input === "string" && detail.output === null
+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];