Skip to content

fix: bump claude adapter range to ^0.22.0#163

Open
moritzketzer wants to merge 1 commit intoopenclaw:mainfrom
moritzketzer:fix/bump-claude-adapter-range
Open

fix: bump claude adapter range to ^0.22.0#163
moritzketzer wants to merge 1 commit intoopenclaw:mainfrom
moritzketzer:fix/bump-claude-adapter-range

Conversation

@moritzketzer
Copy link

Problem

session/new fails with "Query closed before response received" when using the Claude adapter.

The current range ^0.21.0 resolves to >=0.21.0 <0.22.0, pinning to adapter 0.21.0 (SDK 0.2.71). This version has a bug where the inner Claude Code subprocess closes during session initialization.

The fix for this landed upstream in claude-agent-acp 0.22.0 (SDK 0.2.76) — see zed-industries/claude-agent-acp#363.

Fix

Bump the semver range from ^0.21.0 to ^0.22.0.

Verification

  • Adapter 0.21.0: session/new-32603 Internal error: Query closed before response received
  • Adapter 0.22.2: session/new → success, full prompt round-trip works
  • All 253 tests pass

Workaround

Users can work around this today via ~/.acpx/config.json:

{
  "agents": {
    "claude": {
      "command": "npx -y @zed-industries/claude-agent-acp@0.22.2"
    }
  }
}

claude-agent-acp 0.21.0 (SDK 0.2.71) has a bug where `session/new`
fails with "Query closed before response received" — the inner Claude
Code subprocess closes during initialization. This was fixed upstream
in 0.22.0 (SDK 0.2.76), but the ^0.21.0 semver range prevents
resolving to 0.22.x.

Verified: adapter 0.22.2 creates sessions successfully, full
round-trip prompt/response works. All 253 tests pass.
Copilot AI review requested due to automatic review settings March 19, 2026 11:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the default semver range used for the built-in Claude ACP adapter command to pick up an upstream fix that prevents session/new failures (“Query closed before response received”).

Changes:

  • Bump @zed-industries/claude-agent-acp adapter range from ^0.21.0 to ^0.22.0 in the built-in agent registry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

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.

2 participants