From 1aa6dbe51a961443410d0ca0e81edcc726e23eee Mon Sep 17 00:00:00 2001 From: "jinhui.li" Date: Sun, 15 Jun 2025 20:26:35 +0800 Subject: [PATCH] add CLAUDE_PATH env variable --- src/utils/codeCommand.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/utils/codeCommand.ts b/src/utils/codeCommand.ts index 2539420..4f4ae28 100644 --- a/src/utils/codeCommand.ts +++ b/src/utils/codeCommand.ts @@ -18,12 +18,13 @@ export async function executeCodeCommand(args: string[] = []) { // Increment reference count when command starts incrementReferenceCount(); - // Execute claude command - const claudeProcess = spawn("claude", args, { - env, - stdio: "inherit", - shell: true, - }); + // Execute claude command + const claudePath = process.env.CLAUDE_PATH || "claude"; + const claudeProcess = spawn(claudePath, args, { + env, + stdio: "inherit", + shell: true + }); claudeProcess.on("error", (error) => { console.error("Failed to start claude command:", error.message);