Repository navigation
fix(acp-bridge): bump claude-agent-acp pin to 0.107.0 - #742
Conversation
The claude-code default pinned @agentclientprotocol/[email protected], which bundles Claude Code 2.1.170. That version rejects current models such as claude-opus-5-5 with 'version 2.1.280 or newer is required', so every chat fails. Bump the pin to 0.107.0, the version the issue reporter confirmed works, and add a regression test that pins the default command.
There was a problem hiding this comment.
ℹ️ Minor suggestion: one prerequisite note.
Reviewed changes
- Default pin bumped —
claude-codenow launches@agentclientprotocol/[email protected]instead of0.44.0inapps/acp-bridge/internal/provider/provider.go, which is the version the issue reporter confirmed works. - Regression test added —
TestClaudeCodeDefaultUsesCurrentAdapterasserts the exact resolved argv forclaude-code, closing the gap left by the existing prefix-only test.
The pin target is valid (0.107.0 is npm latest, published 2026-11-13, depending on @agentclientprotocol/sdk 2.6.0 and @anthropic-ai/claude-agent-sdk 0.3.323). The adapter still serves ACP v1 to clients that request it, so acpclient's protocolVersion = 1 handshake is unaffected by the SDK major bump. go test ./... in apps/acp-bridge passes.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
| var registry = map[string]info{ | ||
| "claude-code": { | ||
| defaultCommand: []string{"npx", "-y", "@agentclientprotocol/claude-agent-acp@0.44.0"}, | ||
| defaultCommand: []string{"npx", "-y", "@agentclientprotocol/claude-agent-acp@0.107.0"}, |
There was a problem hiding this comment.
[email protected] declares engines.node >= 22; 0.44.0 declared no engine floor at all. The bridge runs on the user's own machine and every built-in provider is launched through their npx, so this bump silently raises the Node version users need, while apps/acp-bridge/README.md:15 still lists plain "Node.js" as the prerequisite. Worth stating the minimum there so Node 18/20 users get an explanation for the EBADENGINE warning instead of a generic provider failure.
Technical details
# Node 22 floor introduced by the claude-agent-acp bump
## Affected sites
- `apps/acp-bridge/internal/provider/provider.go:43` — new pin; 0.107.0's `package.json` declares `"engines": {"node": ">=22"}` (0.44.0: no `engines` field).
- `apps/acp-bridge/README.md:15` — prerequisites list "Node.js" with no version; this is the only install-facing doc for the daemon.
- `install-acp-bridge.sh` downloads only a prebuilt Go binary, so Node is entirely user-provided and not pinned by any image or script here.
## Required outcome
- The prerequisite documents the Node version the pinned adapter requires, so users on older Node know why `npx` warns `EBADENGINE` or the adapter fails to start.
## Open questions for the human
- The confirmation in #740 used the **Custom** provider with the same `npx` command, which bypasses the `claude-code`-only paths this PR re-enables: `provider.PermissionMode` → `session/set_mode("bypassPermissions")` and `provider.ModelEnv` → `ANTHROPIC_MODEL`. A smoke test on a real `claude-code` agent would cover those. (The adapter serves ACP v1 to clients that request it, so the `@agentclientprotocol/sdk` 0.25.0 → 2.6.0 jump does not by itself change the handshake.)|
Follow-up verification: I installed I have not run an end-to-end chat against a Claude model with this change, so that path is still untested. |
pikann
left a comment
There was a problem hiding this comment.
LGTM! Thank you for the contribution! 🚀

Summary
Fixes #740.
The
claude-codeprovider launches@agentclientprotocol/[email protected]by default. That release bundles Claude Code 2.1.170, which rejects current models withAPI Error: 400 Claude Code 2.1.170 does not support this model; version 2.1.280 or newer is required. Every chat with a model such asclaude-opus-5-5fails.Change
apps/acp-bridge/internal/provider/provider.goto@agentclientprotocol/[email protected], the version the issue reporter confirmed works.TestClaudeCodeDefaultUsesCurrentAdapter, which checks the resolved default command.Not in this PR
ResolveCommandstill ignoresacp_commandfor named providers, as the issue notes. Changing that is a behaviour change and is left for a separate discussion.Verification
command = [... @0.44.0], want [... @0.107.0].go vet ./internal/provider/passes, andgo test ./...passes inapps/acp-bridge.gofmt -l internal/reports no files.AI-assisted: this change was prepared with an AI coding assistant and reviewed by the author.