Skip to content

fix(agent): mount @agentclientprotocol/sdk for pi and claude adapters#135

Merged
NathanFlurry merged 1 commit into
mainfrom
fix/agent-acp-sdk-requires
Jun 26, 2026
Merged

fix(agent): mount @agentclientprotocol/sdk for pi and claude adapters#135
NathanFlurry merged 1 commit into
mainfrom
fix/agent-acp-sdk-requires

Conversation

@NathanFlurry

Copy link
Copy Markdown
Member
  • Problem: the pi and claude ACP adapters import @agentclientprotocol/sdk, but it is missing from each agent descriptor's requires, so it is never projected into the VM at /root/node_modules. On runtimes whose module resolver does not fall back to the host tree, the adapter exits code 1 with Cannot resolve module '@agentclientprotocol/sdk' — the failure reported against @agentos-software/claude-code@0.2.0.
  • Fix: add @agentclientprotocol/sdk to requires for both registry/agent/claude and registry/agent/pi. Both packages already declare it as a dependency, so it resolves on the host and gets mounted into the VM.
  • Verified (against the published 0.2.x agents): with the SDK in requires, the VM probe shows /root/node_modules/@agentclientprotocol/sdk is now present (was MISSING); the claude session runs end-to-end on current @rivet-dev/agentos-core, across npm/pnpm/yarn/bun.
  • Scope: touches only index.ts (the descriptor requires). It does not overlap the in-flight adapter-robustness work on stack/fix-agent-adapters-robustness-fixes-to-pi-claude-acp-adapters, which modifies adapter.ts/package.json/tests.

🤖 Generated with Claude Code

- The pi and claude ACP adapters import `@agentclientprotocol/sdk`, but it was missing from each agent descriptor's `requires`, so it was never projected into the VM at `/root/node_modules`.
- On runtimes whose module resolver does not fall back to the host tree, the adapter exits code 1 with "Cannot resolve module '@agentclientprotocol/sdk'" (reported against `@agentos-software/claude-code@0.2.0`).
- Add it to `requires` for both agents so it is mounted regardless of resolver/runtime version; both packages already declare it as a dependency.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@railway-app railway-app Bot temporarily deployed to secure-exec / secure-exec-pr-135 June 26, 2026 23:37 Destroyed
@railway-app railway-app Bot temporarily deployed to rivet-frontend / secure-exec-pr-135 June 26, 2026 23:37 Destroyed
@NathanFlurry NathanFlurry merged commit 3883c2c into main Jun 26, 2026
3 of 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.

1 participant