From 3c0eb0ac3ee1c048645069381d49c529994c62f9 Mon Sep 17 00:00:00 2001 From: chaodu-agent Date: Sat, 18 Apr 2026 13:52:50 +0000 Subject: [PATCH] fix: wire CLAUDE_CODE_EXECUTABLE so adapter uses pinned claude-code claude-agent-acp uses its bundled SDK cli.js by default, ignoring the globally installed @anthropic-ai/claude-code binary. Set CLAUDE_CODE_EXECUTABLE=/usr/local/bin/claude so the adapter actually runs the version pinned by CLAUDE_CODE_VERSION. Fixes #418 --- Dockerfile.claude | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile.claude b/Dockerfile.claude index cb568f1f..3aa260fa 100644 --- a/Dockerfile.claude +++ b/Dockerfile.claude @@ -10,9 +10,12 @@ RUN touch src/main.rs && cargo build --release FROM node:22-bookworm-slim RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl procps ripgrep && rm -rf /var/lib/apt/lists/* -# Install claude-agent-acp adapter and Claude Code CLI +# Install claude-agent-acp adapter and Claude Code CLI. +# Without CLAUDE_CODE_EXECUTABLE the adapter uses its own bundled SDK cli.js, +# ignoring the globally installed claude-code binary (see #418). ARG CLAUDE_CODE_VERSION=2.1.104 RUN npm install -g @agentclientprotocol/claude-agent-acp@0.25.0 @anthropic-ai/claude-code@${CLAUDE_CODE_VERSION} --retry 3 +ENV CLAUDE_CODE_EXECUTABLE=/usr/local/bin/claude # Install gh CLI RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \