add CLAUDE_PATH env variable

This commit is contained in:
jinhui.li
2025-06-15 20:26:35 +08:00
parent 80d9298b34
commit 1aa6dbe51a

View File

@@ -19,10 +19,11 @@ export async function executeCodeCommand(args: string[] = []) {
incrementReferenceCount(); incrementReferenceCount();
// Execute claude command // Execute claude command
const claudeProcess = spawn("claude", args, { const claudePath = process.env.CLAUDE_PATH || "claude";
const claudeProcess = spawn(claudePath, args, {
env, env,
stdio: "inherit", stdio: "inherit",
shell: true, shell: true
}); });
claudeProcess.on("error", (error) => { claudeProcess.on("error", (error) => {