fix: bump claude adapter range to ^0.22.0#163
Open
moritzketzer wants to merge 1 commit intoopenclaw:mainfrom
Open
fix: bump claude adapter range to ^0.22.0#163moritzketzer wants to merge 1 commit intoopenclaw:mainfrom
moritzketzer wants to merge 1 commit intoopenclaw:mainfrom
Conversation
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.
There was a problem hiding this comment.
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-acpadapter range from^0.21.0to^0.22.0in 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
session/newfails with"Query closed before response received"when using the Claude adapter.The current range
^0.21.0resolves 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.0to^0.22.0.Verification
session/new→-32603 Internal error: Query closed before response receivedsession/new→ success, full prompt round-trip worksWorkaround
Users can work around this today via
~/.acpx/config.json:{ "agents": { "claude": { "command": "npx -y @zed-industries/claude-agent-acp@0.22.2" } } }