chore: cleanup versioned zod imports#3460
Merged
Merged
Conversation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR removes versioned Zod imports (zod/v4) and replaces them with standard imports (zod) across the entire codebase. This cleanup ensures compatibility with the standard Zod package structure and eliminates references to a versioned import path that may not exist in standard Zod distributions.
- Standardized all Zod imports from
zod/v4tozod - Updated import statements across 60+ files in the codebase
- Minor code formatting improvements in
patch.tsandripgrep.ts
Reviewed Changes
Copilot reviewed 54 out of 54 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/plugin/src/tool.ts | Updated Zod import to standard path |
| packages/opencode/src/util/log.ts | Updated Zod import to standard path |
| packages/opencode/src/util/error.ts | Updated Zod import to standard path |
| packages/opencode/src/tool/*.ts | Updated Zod imports across all tool definitions |
| packages/opencode/src/session/*.ts | Updated Zod imports across all session modules |
| packages/opencode/src/provider/*.ts | Updated Zod imports in provider modules; added return type annotation |
| packages/opencode/src/lsp/*.ts | Updated Zod imports in LSP-related files |
| packages/opencode/src/file/*.ts | Updated Zod imports in file utilities; fixed trailing semicolon |
| packages/opencode/src/config/config.ts | Updated Zod import to standard path |
| packages/opencode/src/bus/index.ts | Updated both Zod imports (value and type) |
| packages/opencode/src/auth/*.ts | Updated Zod imports in authentication modules |
| packages/opencode/script/schema.ts | Updated Zod import in schema script |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Collaborator
|
/oc Do the following:
|
Contributor
|
Done! I've removed the |
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Collaborator
|
Thank you! |
xywsxp
pushed a commit
to xywsxp/opencode
that referenced
this pull request
Apr 24, 2026
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Rwanbt
pushed a commit
to Rwanbt/opencode
that referenced
this pull request
May 5, 2026
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
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.

No description provided.