GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Plugins with implied latest version don't auto-update on restart · Issue #6774 · anomalyco/opencode

Plugins with implied latest version don't auto-update on restart #6774

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Plugins with implied latest version don't auto-update on restart#6774
Copy link
Assignees
thdxr

Description

@backnotprop
backnotprop
opened on Jan 3, 2026
Issue body actions

Description

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.

Workaround:

Users can manually clear the cache:

rm -rf ~/.cache/opencode/node_modules/<plugin-name>

Suggested Fix:
#6772

Plugins

plannotator

OpenCode version

latest

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

mac

Terminal

ghostty

Reacted by Robert Dailey, Sergei Razmetov, allen, Fail and Robert

Activity

  1. backnotprop
    added
    bugSomething isn't working
    on Jan 3, 2026
  2. github-actions
    assigned
    thdxr
    on Jan 3, 2026
  3. github-actions commented on Jan 3, 2026

    @github-actions
    github-actionsBot
    on Jan 3, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Infinite installation loop of @aws-sdk/credential-providers on startup when AWS_BEARER_TOKEN_BEDROCK is set #6765: Infinite installation loop of @aws-sdk/credential-providers - describes the same root cause ("latest" version comparison issue)
    • Plugin Auto-Update Feature #6159: Plugin Auto-Update Feature - broader feature request related to plugin version management

    Feel free to ignore if none of these address your specific case.

  4. backnotprop
    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
  5. rekram1-node commented on Jan 3, 2026

    @rekram1-node
    rekram1-node
    on Jan 3, 2026
    Member
    More actions

    do @latest as a workaround for now

    Reacted by Michael Ramos
  6. backnotprop commented on Jan 3, 2026

    @backnotprop
    backnotprop
    on Jan 3, 2026
    ContributorAuthor
    More actions

    @rekram1-node updated my docs for users

  7. backnotprop commented on Jan 7, 2026

    @backnotprop
    backnotprop
    on Jan 7, 2026
    ContributorAuthor
    More actions

    plugin caching is brutal.

    maybe worth taking a look at #6772

  8. thdxr commented on Mar 25, 2026

    @thdxr
    thdxr
    on Mar 25, 2026
    Member
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  9. t1 commented on Apr 6, 2026

    @t1
    t1
    on Apr 6, 2026
    More actions

    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.

  10. hueyexe
    added a commit that references this issue on Apr 8, 2026

    feat: v0.9.0 — structured result parsing, enriched teammate context

    92aabff
  11. thdxr
    removed
    bugSomething isn't working
    on May 3, 2026
  12. rekram1-node
    closed this as not plannedon May 22, 2026
  13. ZeR020
    added a commit that references this issue on Aug 2, 2026

    feat: notify users when a newer release is available

    20eb3d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.