Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const TOOL_TO_RENDERER_CONFIG: ToolToRendererCondition[] = [
{ toolName: 'edit_file', renderer: 'diff_result' },
{ toolName: 'run_command', renderer: 'command_result' },
{ toolName: 'run_script', renderer: 'script_result' },
{ toolName: 'search_files', renderer: 'command_result' },
{ toolName: 'LinkReader', renderer: 'link_reader' },
{ toolName: 'Search', renderer: 'search_result' },
{ toolName: 'execute_bash', renderer: 'command_result' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ export const ToolCalls: React.FC<ToolCallsProps> = ({
: '';
case 'run_command':
return args.command || (status === 'constructing' ? 'preparing command...' : '');
case 'search_files':
return args.pattern
? `${args.pattern}${args.path ? ` in ${args.path}` : ''}`
: status === 'constructing'
? 'preparing search...'
: '';
case 'read_file':
case 'write_file':
case 'edit_file':
Expand Down Expand Up @@ -201,6 +207,8 @@ export const ToolCalls: React.FC<ToolCallsProps> = ({
return 'Web Search';
case 'list_directory':
return 'List Files';
case 'search_files':
return 'Search Files';
case 'run_command':
return 'Run Command';
case 'read_file':
Expand All @@ -223,6 +231,7 @@ export const ToolCalls: React.FC<ToolCallsProps> = ({
'write_file',
'edit_file',
'list_directory',
'search_files',
'str_replace_editor',
];
return fileTools.includes(toolName);
Expand Down