Use managed exact plugin versions for auto updates#4513
Open
biggameking wants to merge 1 commit into
Open
Conversation
Contributor
|
Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA). To sign the CLA, please comment on this PR with: This is a one-time requirement. Once signed, all your future contributions will be automatically accepted. I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
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.
Summary
@latestentriesWhy
oh-my-openagentcurrently writes dynamic plugin entries such as@latest, which keeps startup coupled to OpenCode's plugin resolution path. When that path is slow or unstable, users can get multi-minute stalls before the plugin even loads. This change does not fix OpenCode core's startup fallback, but it does removeoh-my-openagentfrom relying on that path after install.Testing
bun test src/cli/config-manager/plugin-name-with-version.test.tsbun test src/cli/config-manager/plugin-detection.test.tsbun test src/hooks/zauc-mocks-bg/background-update-check.test.tsbun test src/hooks/zauc-mocks-ws/workspace-resolution.test.tsbun test src/hooks/auto-update-checker/hook.test.tsbun test src/hooks/zauc-mocks-hook/hook.test.tsbun test src/hooks/auto-update-checker/checker/pinned-version-updater.test.tsNotes
bun.lock,assets/oh-my-opencode.schema.json) out of this PR.plugin-entry.test.ts; it is not introduced by this change.Summary by cubic
Switch plugin installs to managed exact versions with a persisted release channel. This removes
@lateststalls at startup and lets auto‑update advance pinned installs safely.New Features
oh-my-openagent@<version>viaresolvePluginInstallReference, returning the exact entry and its channel....-plugin-state.jsonso updates track the right channel.oh-my-openagent, migrate legacyoh-my-opencodesafely).Migration
Written for commit a186d12. Summary will update on new commits. Review in cubic