diff --git a/src/acp-agent.ts b/src/acp-agent.ts index a5cde11f..6c77a09c 100644 --- a/src/acp-agent.ts +++ b/src/acp-agent.ts @@ -179,6 +179,9 @@ export class ClaudeAcpAgent implements Agent { // note: although not documented by the types, passing an absolute path // here works to find zed's managed node version. executable: process.execPath as any, + ...(process.env.CLAUDE_CODE_EXECUTABLE && { + pathToClaudeCodeExecutable: process.env.CLAUDE_CODE_EXECUTABLE, + }), }; const allowedTools = [];