Skip to content

fix(acp-bridge): bump claude-agent-acp pin to 0.107.0 - #742

Merged
pikann merged 1 commit into
Paca-AI:masterfrom
Soham1660:fix/claude-agent-acp-pin
Nov 13, 2026
Merged

pikann merged 1 commit into
Paca-AI:masterfrom
Soham1660:fix/claude-agent-acp-pin

Conversation

@Soham1660

Copy link
Copy Markdown
Contributor

Summary

Fixes #740.

The claude-code provider launches @agentclientprotocol/[email protected] by default. That release bundles Claude Code 2.1.170, which rejects current models with API 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 as claude-opus-5-5 fails.

Change

  • Bump the default pin in apps/acp-bridge/internal/provider/provider.go to @agentclientprotocol/[email protected], the version the issue reporter confirmed works.
  • Add TestClaudeCodeDefaultUsesCurrentAdapter, which checks the resolved default command.

Not in this PR

ResolveCommand still ignores acp_command for named providers, as the issue notes. Changing that is a behaviour change and is left for a separate discussion.

Verification

  • Before the change, the new test fails with command = [... @0.44.0], want [... @0.107.0].
  • After the change, go vet ./internal/provider/ passes, and go test ./... passes in apps/acp-bridge.
  • gofmt -l internal/ reports no files.
  • Not run: an end-to-end chat against a live Claude Code install. I did not verify the 0.107.0 bundled Claude Code version myself, only the reporter's result.

AI-assisted: this change was prepared with an AI coding assistant and reviewed by the author.

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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ Minor suggestion: one prerequisite note.

Reviewed changes

  • Default pin bumped — claude-code now launches @agentclientprotocol/[email protected] instead of 0.44.0 in apps/acp-bridge/internal/provider/provider.go, which is the version the issue reporter confirmed works.
  • Regression test added — TestClaudeCodeDefaultUsesCurrentAdapter asserts the exact resolved argv for claude-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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using 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"},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.)

@Soham1660

Copy link
Copy Markdown
Contributor Author

Follow-up verification: I installed @agentclientprotocol/[email protected] from npm and ran the Claude binary it bundles. It reports 2.1.323 (Claude Code), which is above the 2.1.280 minimum in the error from #740.

I have not run an end-to-end chat against a Claude model with this change, so that path is still untested.

@pikann pikann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the contribution! 🚀

@pikann
pikann merged commit e049885 into Paca-AI:master Nov 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] acp-bridge pins [email protected], too old for current Claude models

2 participants