From 6a4c1f75919d18e4349f9ef1c62bc70f56017f11 Mon Sep 17 00:00:00 2001 From: Nico Thomaier Date: Sun, 17 Aug 2025 17:30:56 +0200 Subject: [PATCH] fix(utils): update codeCommand to improve command handling - use CLAUDE_PATH in Config file if it is not empty. --- src/utils/codeCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/codeCommand.ts b/src/utils/codeCommand.ts index 103bd8b..37d1f6f 100644 --- a/src/utils/codeCommand.ts +++ b/src/utils/codeCommand.ts @@ -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