Use the correct binary path for cline-core (#6065)

Binaries will be the cwd.

When tools fail with an error, log the exception to the console. This makes debugging cline-core easier.

# Conflicts:
#	src/services/ripgrep/index.ts
#	src/standalone/cline-core.ts
This commit is contained in:
Sarah Fortune
2025-09-07 22:14:29 -07:00
committed by GitHub
parent c0ca9889ff
commit d08c394f68
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -247,6 +247,7 @@ export class ToolExecutor {
* Handles errors during tool execution
*/
private async handleError(action: string, error: Error, block: ToolUse): Promise<void> {
console.log(error)
const errorString = `Error ${action}: ${error.message}`
await this.say("error", errorString)
+1 -1
View File
@@ -111,7 +111,7 @@ export async function regexSearchFiles(
try {
output = await execRipgrep(args)
} catch (error) {
throw Error("Error calling ripgrep", error)
throw Error("Error calling ripgrep", { cause: error })
}
const results: SearchResult[] = []
let currentResult: Partial<SearchResult> | null = null
+1 -1
View File
@@ -45,7 +45,7 @@ function setupHostProvider() {
const getCallbackUri = (): Promise<string> => {
return AuthHandler.getInstance().getCallbackUri()
}
const getBinaryLocation = async (name: string): Promise<string> => path.join(".", name)
const getBinaryLocation = async (name: string): Promise<string> => path.join(process.cwd(), name)
HostProvider.initialize(
createWebview,