From 6a4c1f75919d18e4349f9ef1c62bc70f56017f11 Mon Sep 17 00:00:00 2001 From: Nico Thomaier Date: Sun, 17 Aug 2025 17:30:56 +0200 Subject: [PATCH 1/2] 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 From ac0263b2266e24ed94bb62301b2dd3daef032c1e Mon Sep 17 00:00:00 2001 From: Nico Thomaier Date: Sun, 17 Aug 2025 17:46:03 +0200 Subject: [PATCH 2/2] =?UTF-8?q?fix(utils):=20use=20||=20instead=20of=20=3F?= =?UTF-8?q?=3F=20for=20CLAUDE=5FPATH=20The=20previous=20null=E2=80=91ish?= =?UTF-8?q?=20coalescing=20treated=20empty=20strings=20as=20a=20valid=20va?= =?UTF-8?q?lue,=20which=20could=20result=20in=20an=20invalid=20path.=20Swi?= =?UTF-8?q?tching=20to=20logical=20OR=20keeps=20the=20precedence=20(config?= =?UTF-8?q?=20>=20env)=20but=20now=20falls=20back=20to=20the=20default=20`?= =?UTF-8?q?claude`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 37d1f6f..1cbccfa 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 = config?.CLAUDE_PATH ?? 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