Uh oh!
There was an error while loading. Please reload this page.
fix(bun): always check for updates when plugin version is implied latest - #6772
Closed
backnotprop wants to merge 1 commit into
Closed
fix(bun): always check for updates when plugin version is implied latest#6772backnotprop wants to merge 1 commit into
backnotprop wants to merge 1 commit into
Conversation
backnotpropforce-pushed
the
fix/plugin-latest-update
branch
from
January 3, 2026 21:02
8bb0d68 to
80c41b4CompareTwo changes to ensure "latest" plugins actually get updates: 1. Skip early return cache check for "latest" versions - Ensures we always attempt an install, not skip based on cached version 2. Add --no-cache flag for "latest" versions - Forces Bun to bypass its registry cache and fetch fresh from npm - This is the key fix: without --no-cache, bun add --force still uses cached registry metadata Users with "@plannotator/opencode" (no version) were stuck on old versions because Bun's registry cache wasn't being invalidated.
backnotpropforce-pushed
the
fix/plugin-latest-update
branch
from
January 3, 2026 21:12
80c41b4 to
81507b3Comparebacknotprop
commented
Jan 3, 2026
ContributorAuthor
Probably don't merge this. Not tested extensively |
thdxrforce-pushed
the
dev
branch
3 times, most recently
from
January 30, 2026 14:37
f1ae801 to
08fa7f7CompareContributor
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
backnotprop
commented
Mar 7, 2026
ContributorAuthor
It's still bad that this is a problem. |
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 freeto 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
Fixes an issue where plugins configured with implied
"latest"version (or no version) were not updating to newer versions on subsequent OpenCode starts.Problem
When a user configures a plugin like:
{ "plugin": ["@plannotator/opencode"] }The install flow was:
version = "latest", installs package, resolves to"0.2.3""@plannotator/opencode": "0.2.3"to cacheversion = "latest", cache has"0.2.3""0.2.3" === "latest"→ false → proceeds to reinstallbun add --forceuses cached registry data, doesn't fetch new versionUsers were stuck on old versions unless they manually cleared
~/.cache/opencode/.Solution
Skip the early cache return when
version === "latest":This ensures:
@pkg@1.0.0) still skip reinstalls via cachebun addto check for updatesTest plan
"latest"version