Fix ripgrep error message to avoid confusing installation instructions

- Remove suggestion to install homebrew which was confusing for users
- Simplify error message to just state 'ripgrep is not installed'
- Addresses CON-3354: confusing error message when ripgrep not installed
This commit is contained in:
Continue Agent 2025-08-13 22:27:57 +00:00
parent 2c41dff3d5
commit c3365415d1

View file

@ -99,7 +99,7 @@ export const searchCodeTool: Tool = {
}
if (error instanceof Error) {
if (error.message.includes("command not found")) {
return `Error: ripgrep is not installed. Inform the user and run /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" to install it`;
return `Error: ripgrep is not installed.`;
}
}
return `Error executing ripgrep: ${