fix(utils): update codeCommand to improve command handling

- use CLAUDE_PATH in Config file if it is not empty.
This commit is contained in:
Nico Thomaier
2025-08-17 17:30:56 +02:00
parent 95b2dadd40
commit 6a4c1f7591

View File

@@ -52,7 +52,7 @@ export async function executeCodeCommand(args: string[] = []) {
incrementReferenceCount();
// Execute claude command
const claudePath = process.env.CLAUDE_PATH || "claude";
const claudePath = config?.CLAUDE_PATH ?? process.env.CLAUDE_PATH ?? "claude";
// Properly join arguments to preserve spaces in quotes
// Wrap each argument in double quotes to preserve single and double quotes inside arguments