Skip to content

opencode upgrade doesn't update plugin dependencies in ~/.config/opencode/package.json #10441

Closed

Description

@cbingb666

Description

opencode upgrade successfully updates OpenCode binary but fails to update plugin dependencies in `~/.config/opencode/package.json`.

Observed behavior:

After running `opencode upgrade`, the command reports success and the binary is upgraded:

  • `opencode --version` shows new version (e.g., 1.1.34) ✓
  • `/opt/homebrew/bin/opencode` symlink points to new version ✓

However, the plugin dependency remains outdated:

  • `~/.config/opencode/package.json` still has `"@opencode-ai/plugin": "1.1.31"` ✗
  • `~/.config/opencode/node_modules/@opencode-ai/plugin/package.json` shows old version ✗

Expected behavior:

`opencode upgrade` should update both:

  1. The OpenCode binary
  2. The plugin dependencies in `~/.config/opencode/package.json`

This causes a version mismatch between the CLI and its plugin, potentially leading to compatibility issues or unexpected behavior.

Plugins

  • oh-my-opencode
  • opencode-antigravity-auth@1.3.1

OpenCode version

1.1.34 (after upgrade)

Steps to reproduce

  1. Install OpenCode via Homebrew with plugin dependencies at version 1.1.31
  2. Run `opencode upgrade`
  3. Observe:
    • Binary upgrades successfully to 1.1.34
    • `opencode --version` shows 1.1.34
  4. Check plugin version:
    ```bash
    cat ~/.config/opencode/package.json # Shows "@opencode-ai/plugin": "1.1.31"
    ```
  5. Manually update plugin:
    ```bash
    cd ~/.config/opencode
    bun add @opencode-ai/plugin@1.1.34
    ```
  6. Now plugin version matches binary version

Workaround:

Users need to manually update the plugin with:
```bash
cd ~/.config/opencode
bun add @opencode-ai/plugin@latest
```

Screenshot and/or share link

```bash

Before upgrade

$ opencode --version
1.1.31

$ opencode upgrade
(ASCII art shown)
┌ Upgrade
│
● Using method: brew
│
● From 1.1.31 → 1.1.34
│
◇ Upgrade complete
│
└ Done

After upgrade - binary updated

$ opencode --version
1.1.34

But plugin not updated

$ cat ~/.config/opencode/package.json
{
"dependencies": {
"@opencode-ai/plugin": "1.1.31" # <- Still old!
}
}

$ ls ~/.config/opencode/node_modules/@opencode-ai/plugin/package.json
...version": "1.1.31" # <- Still old!
```

Operating System

macOS 15.3 (Apple Silicon)

Terminal

iTerm2

Activity

  1. github-actions commented on Jan 24, 2026

    @github-actions
    Contributor

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

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

  2. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

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

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

Metadata

Metadata

Assignees

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