From f0090ebbb9670d168ed85e099994698482db91a4 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Mon, 20 Apr 2026 23:28:54 -0400 Subject: [PATCH] fix(container): point SDK to pnpm-installed Claude Code binary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Agent SDK's default binary resolution picks the musl-linked native binary (claude-agent-sdk-linux-arm64-musl), which cannot execute on the Debian-based container image (glibc). Explicitly set pathToClaudeCodeExecutable to /pnpm/claude — the pnpm global symlink that resolves to the correct glibc binary regardless of architecture. Co-Authored-By: Claude Opus 4.6 (1M context) --- container/agent-runner/src/providers/claude.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/container/agent-runner/src/providers/claude.ts b/container/agent-runner/src/providers/claude.ts index a797f06..fbb077c 100644 --- a/container/agent-runner/src/providers/claude.ts +++ b/container/agent-runner/src/providers/claude.ts @@ -271,6 +271,7 @@ export class ClaudeProvider implements AgentProvider { cwd: input.cwd, additionalDirectories: this.additionalDirectories, resume: input.continuation, + pathToClaudeCodeExecutable: '/pnpm/claude', systemPrompt: instructions ? { type: 'preset' as const, preset: 'claude_code' as const, append: instructions } : undefined, allowedTools: TOOL_ALLOWLIST, disallowedTools: SDK_DISALLOWED_TOOLS,