Skip to content

Commit 1f264d5

Browse files
theahuranori-agent
andcommitted
fix(acp): restore CLAUDE_CODE_EXECUTABLE workaround for bunx musl issue
🤖 Generated with [Nori](https://noriagentic.com) Co-Authored-By: Nori <contact@tilework.tech>
1 parent adc0ef1 commit 1f264d5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

nori-rs/acp/src/registry.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -720,12 +720,12 @@ pub fn get_agent_config(agent_name: &str) -> Result<AcpAgentConfig> {
720720
),
721721
};
722722

723-
// The Claude ACP adapter resolves its native binary via
724-
// require.resolve() on platform-specific optional deps. On Linux it
725-
// tries the musl variant first; if that file exists but the musl
726-
// loader is missing the binary silently fails to execute. Setting
727-
// CLAUDE_CODE_EXECUTABLE to the system-installed binary sidesteps
728-
// this entirely.
723+
// Workaround: the v0.30.0+ Claude ACP adapter resolves its native
724+
// binary via require.resolve() on platform-specific optional deps.
725+
// On glibc Linux, bunx installs both musl and glibc variants; the
726+
// adapter tries musl first, require.resolve succeeds (file exists),
727+
// but execution fails (no musl loader). Point CLAUDE_CODE_EXECUTABLE
728+
// at the system binary to bypass the broken resolution.
729729
let mut env = HashMap::new();
730730
if agent == AgentKind::ClaudeCode
731731
&& let Ok(path) = which::which("claude")

0 commit comments

Comments
 (0)