don't show extra text during find / replace tool call

This commit is contained in:
Nate 2025-07-05 11:06:58 -07:00
parent d868b90132
commit c11b17042e

View file

@ -85,6 +85,22 @@ export function ToolCallDiv(props: ToolCallDivProps) {
);
}
// Trying this out while it's an experimental feature
// Obviously missing the truncate and args buttons
// All the info from args is displayed here
// But we'd need a nicer place to put the truncate button and the X icon when tool call fails
if (
props.toolCall.function?.name === BuiltInToolNames.SearchAndReplaceInFile
) {
return (
<FunctionSpecificToolCallDiv
toolCall={props.toolCall}
toolCallState={props.toolCallState}
historyIndex={props.historyIndex}
/>
);
}
return (
<ToolCallDisplay
icon={getStatusIcon(props.toolCallState.status)}