You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plugins with implied latest version don't auto-update on restart #6774
When a plugin is configured without a version (defaulting to "latest"):
{
"plugin": ["@plannotator/opencode"]
}
It doesn't update to newer versions on subsequent OpenCode starts.
Root Cause
In packages/opencode/src/bun/index.ts, after installing a "latest" plugin, the resolved version is saved to the cache:
if (version === "latest") {
resolvedVersion = installedPkg.version // e.g. "0.2.3"
}
parsed.dependencies[pkg] = resolvedVersion // Saves "0.2.3", not "latest"
On next startup, the check parsed.dependencies[pkg] === version compares "0.2.3" === "latest" which is false, so it proceeds to reinstall - but Bun's registry cache often returns the same version.
changed the title [-]Plugins with "latest" version don't auto-update on restart[/-][+]Plugins with implied latest version don't auto-update on restart[/+]on Jan 3, 2026
git dependencies (e.g. git+https://github.com/...) are pinned by commit SHA in bun.lock, and bun install never re-resolves them, unlike npm deps where at least version ranges or @latest could theoretically trigger updates.
Activity
github-actions commentedon Jan 3, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
[-]Plugins with "latest" version don't auto-update on restart[/-][+]Plugins with implied latest version don't auto-update on restart[/+]rekram1-node commentedon Jan 3, 2026
do @latest as a workaround for now
backnotprop commentedon Jan 3, 2026
@rekram1-node updated my docs for users
backnotprop commentedon Jan 7, 2026
plugin caching is brutal.
maybe worth taking a look at #6772
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
t1 commentedon Apr 6, 2026
git dependencies (e.g.
git+https://github.com/...) are pinned by commit SHA inbun.lock, andbun installnever re-resolves them, unlikenpm depswhere at least version ranges or@latestcould theoretically trigger updates.feat: v0.9.0 — structured result parsing, enriched teammate context
feat: notify users when a newer release is available