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 — Plugin updates: No way to get latest version after initial install · Issue #10546 · anomalyco/opencode

Plugin updates: No way to get latest version after initial install #10546

New issue
Copy link
New issue
Copy link
Closed
#16998
Closed
Plugin updates: No way to get latest version after initial install#10546
#16998
Copy link
Assignees
thdxr

Description

@ErcinDedeoglu
ErcinDedeoglu
opened on Jan 25, 2026
Issue body actions

Problem

Once a plugin is installed, there's no way to update it to a newer version without manually clearing the cache.

Current behavior

  1. User adds oc-sync (or oc-sync@latest) to their config
  2. OpenCode installs latest version (e.g., 0.1.4), caches resolved version in ~/.cache/opencode/package.json
  3. Plugin author publishes 0.1.5 with bug fixes
  4. User restarts OpenCode - still uses cached 0.1.4
  5. User has no way to know an update is available or how to get it

Root cause

In packages/opencode/src/bun/index.ts:

if (dependencies[pkg] === version && modExists) return mod

Once installed, the cached version is used forever.

Suggested solutions

Option A: Add opencode update command

opencode update plugins  # Update all plugins to latest
opencode update oc-sync  # Update specific plugin

Option B: Periodic version check

  • On startup, check npm registry for newer versions
  • Show notification: "Plugin updates available: oc-sync (0.1.4 → 0.1.5)"

Option C: TTL-based cache invalidation

  • Re-check @latest versions after X days (e.g., 7 days)

Workaround

Currently users must manually:

rm -rf ~/.cache/opencode/node_modules/oc-sync
# or
rm ~/.cache/opencode/package.json

This is not discoverable and plugin authors have no way to notify users of updates.

Reacted by Rajesh Rajendran, Rookie_Zoe, Elijah Olmos, Anomatomato and Joda Stößer

Activity

  1. github-actions
    assigned
    thdxr
    on Jan 25, 2026
  2. github-actions commented on Jan 25, 2026

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

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

    • Plugin Auto-Update Feature #6159: Plugin Auto-Update Feature - Comprehensive feature request covering auto-update policies and configuration
    • Plugins with implied latest version don't auto-update on restart #6774: Plugins with implied latest version don't auto-update on restart - Specifically addresses the 'latest' version not updating issue
    • opencode.json plugins version overwritten on startup #10355: opencode.json plugins version overwritten on startup - Related to plugin version management and caching
    • opencode upgrade doesn't update plugin dependencies in ~/.config/opencode/package.json #10441: opencode upgrade doesn't update plugin dependencies in ~/.config/opencode/package.json - Related to plugin update mechanisms

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

  3. Tarquinen commented on Jan 25, 2026

    @Tarquinen
    Tarquinen
    on Jan 25, 2026
    Member
    More actions

    "plugin": ["opencode-plugin-here@latest"]
    authors can also notify users of updates with toasts by comparing npm version to cache version if needed

  4. athal7 commented on Feb 5, 2026

    @athal7
    athal7
    on Feb 5, 2026
    Contributor
    More actions

    This also affects explicitly versioned plugins. If I have [email protected] cached and update my config to [email protected], OpenCode still uses the cached 0.20.1 until I manually rm -rf ~/.cache/opencode/node_modules/myplugin.

    Expected: OpenCode should compare the requested version against the cached version and reinstall if they differ.

  5. rekram1-node
    closed this as completedin #16998on Mar 11, 2026
  6. phazei commented on Apr 8, 2026

    @phazei
    phazei
    on Apr 8, 2026
    More actions

    I'm on opencode 1.3.17

    I don't see how this was fixed.

    I had:
    "plugin": ["opencode-plugin-here"]

    and it didn't update. Then I changed it to:
    "plugin": ["opencode-plugin-here@latest"]

    and restarted, but still no update.

    Reacted by Martin Kunz, renothing, allen, Tran Van Danh, Cory Plastek, Joe Woodward, Elijah Olmos and Anomatomato
  7. agxs commented on Sep 7, 2026

    @agxs
    agxs
    on Sep 7, 2026
    More actions

    Same issue with 1.18.27

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.