Skip to content

Error when installing with v2.1.4 #115

Closed

Description

@jeffabailey
opencode plugin add opencode-self-improvement
opencode plugin update opencode-self-improvement
Plugin "opencode-self-improvement" is already configured in ~/.config/opencode/opencode.json
Error: Plugin is not configured: opencode-self-improvement
    at <anonymous> (/$bunfs/root/chunk-4nv3x3ct.js:2:1642)
    at cli.plugin.inspect (/$bunfs/root/chunk-e9f1wj84.js:2:1390)
    at cli.plugin.inspect (definition) (/$bunfs/root/chunk-4nv3x3ct.js:2:339)
    at cli.plugin.update (/$bunfs/root/chunk-z55429sy.js:7:21212)
    at cli.plugin.update (definition) (/$bunfs/root/chunk-e9f1wj84.js:2:1341)
cat ~/.config/opencode/opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
  },
  "plugins": [
    "opencode-self-improvement"
  ]
}

Activity

  1. jeffabailey commented on Oct 26, 2026

    @jeffabailey
    Author

    Looks like its working?

    Image
  2. abogartz commented on Oct 26, 2026

    @abogartz
    Owner

    Thanks for the report! Good news: nothing is wrong with your config or the plugin — your screenshot is exactly right, the plugin is installed and loading. This is a startup race inside opencode 2.1.4's own plugin CLI.

    What happens

    opencode plugin update <name> asks the background service for its loaded plugin inventory. If the service isn't running yet, the CLI spawns it and queries immediately — but the service's plugin.list handler returns the inventory before plugin activation finishes (it doesn't await Plugin.awaitActivation, unlike several other server handlers). The CLI then sees an empty inventory and reports Plugin is not configured, even though the entry is in opencode.json and the plugin is loading right then.

    Reproduced on 2.1.4 (macOS arm64, isolated sandbox HOME):

    $ opencode service stop
    $ opencode plugin update opencode-self-improvement
    Error: Plugin is not configured: opencode-self-improvement   # exit 1
    $ opencode plugin update opencode-self-improvement           # run again
    No plugin updates available
    

    opencode plugin list has the same race and prints No plugins found on the first call per cold directory.

    Workaround: just run the command again — the second call finds everything. (The server log confirms the plugin loading inside the first, failing call.)

    Upstream: tracked in anomalyco/opencode#54654, fix pending in anomalyco/opencode#56998 (adds the missing awaitPlugins to the plugin.list/check/update handlers). I've confirmed this plugin update failure variant on that issue.

    Nothing to fix on the plugin side; #134 adds a troubleshooting row to the README so others finding this error know to re-run. Fine to close this as a duplicate of the upstream bug.

  3. added a commit that references this issue on Oct 26, 2026
  4. abogartz-opencode-self-improvement commented on Oct 26, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.14.10 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions