Handle skill tool details and skip synthetic timeline events
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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