-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Description
Summary
The agent fails to start after every install or update. Zed shows:
Internal error: "server shut down unexpectedly"
Cause
@agentclientprotocol/sdk@0.14.1 declares zod as a peer dependency:
"peerDependencies": {
"zod": "^3.25.0 || ^4.0.0"
}But claude-agent-acp doesn't include zod in its own dependencies to satisfy it. When Zed installs the agent, zod ends up missing from node_modules:
WARN [agent_servers::acp] agent stderr: Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'zod' imported from
~/Library/Application Support/Zed/external_agents/claude-agent-acp/0.19.2/node_modules/@agentclientprotocol/sdk/dist/acp.js
Suggested Fix
Add zod as a direct dependency in package.json:
"dependencies": {
"@agentclientprotocol/sdk": "0.14.1",
"@anthropic-ai/claude-agent-sdk": "0.2.62",
"zod": "^4.0.0"
}Workaround
cd ~/Library/Application\ Support/Zed/external_agents/claude-agent-acp/0.19.2
npm install zodHas to be repeated after every update.
Environment
- Agent version: 0.19.2
- Node: v22.16.0
- OS: macOS
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels