fix(preview): sanitize channel-derived versions for plugin installs#16222
fix(preview): sanitize channel-derived versions for plugin installs#16222anduimagui wants to merge 3 commits into
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
8ca6602 to
d823cd7
Compare
d823cd7 to
b42cec4
Compare
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #16224
Type of change
What does this PR do?
This fixes preview version generation when the channel/branch name contains / (for example opencode/lucky-forest), which produced a non-semver prerelease label and broke plugin dependency installs in desktop dev/new workspace flows.
The patch sanitizes preview channel/version strings to semver-safe tokens and adds a pluginVersion guard in config install logic so invalid preview versions automatically fall back to *.
How did you verify your code works?
Screenshots / recordings
N/A (non-UI fix).
Checklist