Skip to content

fix(acp): re-apply Claude ACP adapter upgrade to @agentclientprotocol scope#449

Merged
theahura merged 4 commits intomainfrom
auto/rich-kit-20260421-055005
Apr 21, 2026
Merged

fix(acp): re-apply Claude ACP adapter upgrade to @agentclientprotocol scope#449
theahura merged 4 commits intomainfrom
auto/rich-kit-20260421-055005

Conversation

@theahura
Copy link
Copy Markdown
Contributor

Summary

🤖 Generated with Nori

Investigation Details

The "Failed to create ACP session" error was traced through the full error chain (sacp_connection.rs:507spawn_and_relay.rs:59-78agent.rs:273). Manual protocol testing with v0.30.0 confirmed:

  • initialize handshake succeeds (protocol version V1 negotiation)
  • session/new request succeeds (schema fields cwd and mcpServers are correct)
  • NewSessionResponse deserializes correctly despite new fields (modes, configOptions)

End-to-end TUI verification with NORI_MANAGED_BY_NPM=1 (to force npx and the real v0.30.0 adapter) confirmed full round-trip: spawn → handshake → session → prompt → response.

Test Plan

  • test_get_claude_code_config verifies the built-in Claude config uses the new package name
  • All 443 passing ACP crate tests still pass (14 pre-existing failures in backend::tests::part3 are unrelated — they require a mock ACP binary)
  • End-to-end TUI verification: built nori binary, launched via tmux with real Claude adapter v0.30.0, sent a message and received a response
  • Clippy clean

Share Nori with your team: https://www.npmjs.com/package/nori-skillsets

theahura and others added 4 commits April 21, 2026 10:04
…scope

The original upgrade (PR #447) was reverted in PR #448 due to a
"Failed to create ACP session" error. Investigation showed the error
was transient — the new adapter v0.30.0 is fully protocol-compatible
with our schema v0.11.6. End-to-end verification via tmux confirmed
spawn, handshake, session creation, prompt submission, and response
all work correctly with @agentclientprotocol/claude-agent-acp@0.30.0.

The old package @zed-industries/claude-agent-acp is frozen at 0.23.1
and deprecated.
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
The v0.30.0 adapter resolves its native binary via require.resolve()
on platform-specific optional deps. On Linux it tries the musl
variant first; if that file exists but the musl loader is missing,
the binary silently fails to execute, causing "Failed to create ACP
session". Setting CLAUDE_CODE_EXECUTABLE to the system-installed
claude binary sidesteps this entirely.

Also adds @latest suffix to the package name to force bunx to resolve
the correct scope instead of a stale @zed-industries cache entry.
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
@theahura theahura merged commit 2d4d34a into main Apr 21, 2026
3 checks passed
@theahura theahura deleted the auto/rich-kit-20260421-055005 branch April 21, 2026 16:07
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.

1 participant