From ac0263b2266e24ed94bb62301b2dd3daef032c1e Mon Sep 17 00:00:00 2001 From: Nico Thomaier Date: Sun, 17 Aug 2025 17:46:03 +0200 Subject: [PATCH] =?UTF-8?q?fix(utils):=20use=20||=20instead=20of=20=3F=3F?= =?UTF-8?q?=20for=20CLAUDE=5FPATH=20The=20previous=20null=E2=80=91ish=20co?= =?UTF-8?q?alescing=20treated=20empty=20strings=20as=20a=20valid=20value,?= =?UTF-8?q?=20which=20could=20result=20in=20an=20invalid=20path.=20Switchi?= =?UTF-8?q?ng=20to=20logical=20OR=20keeps=20the=20precedence=20(config=20>?= =?UTF-8?q?=20env)=20but=20now=20falls=20back=20to=20the=20default=20`clau?= =?UTF-8?q?de`?= 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