Skip to content

fix: add missing zod dependency#364

Merged
benbrandt merged 2 commits intozed-industries:mainfrom
maskedband1t:fix/add-missing-zod-dependency
Mar 3, 2026
Merged

fix: add missing zod dependency#364
benbrandt merged 2 commits intozed-industries:mainfrom
maskedband1t:fix/add-missing-zod-dependency

Conversation

@maskedband1t
Copy link
Contributor

Summary

  • @agentclientprotocol/sdk@0.14.1 declares zod as a peer dependency ("^3.25.0 || ^4.0.0") but this package does not include it as a direct dependency
  • On clean installs (e.g. Zed's external agent directory), zod is not hoisted from any other package, causing ERR_MODULE_NOT_FOUND on every agent start
  • Users must manually npm install zod after every update as a workaround

Fix

Add "zod": "^3.25.0 || ^4.0.0" to dependencies to match the SDK's peer dependency range.

Fixes #357

@agentclientprotocol/sdk@0.14.1 declares zod as a peer dependency
("^3.25.0 || ^4.0.0") but this package does not include it as a direct
dependency. This causes ERR_MODULE_NOT_FOUND on every fresh install
or update since zod is not hoisted from any other dependency.

Fixes zed-industries#357
@cla-bot
Copy link

cla-bot bot commented Mar 1, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @maskedband1t on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@maskedband1t
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Mar 1, 2026
@cla-bot
Copy link

cla-bot bot commented Mar 1, 2026

The cla-bot has been summoned, and re-checked this pull request!

@benbrandt benbrandt enabled auto-merge (squash) March 3, 2026 12:00
@benbrandt benbrandt merged commit c2e45e6 into zed-industries:main Mar 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing zod dependency - agent fails to start after every install/update

2 participants