Skip to content

opencode2: plugin list crashes and plugins from config not loaded #37533

Description

@mrofisr

Summary

opencode2 (next) does not load or list plugins configured in ~/.config/opencode/opencode.json. The opencode2 plugin list command crashes with a chdir bug (ENOENT: no such file or directory, chdir '/home/ubuntu' -> 'plugin').

Environment

  • opencode version: 0.0.0-next-15747 (next channel)
  • OS: Linux 6.17.0-1018-oracle aarch64 (Ubuntu 24.04)
  • Terminal: TERM_PROGRAM=tmux, TERM=tmux-256color
  • Shell: /bin/bash
  • Install/channel: next (via volta)
  • Active plugins: superpowers, oh-my-openagent (configured but not loaded)

Reproduction

  1. Configure plugins in ~/.config/opencode/opencode.json:
    {
      "plugins": [
        "superpowers@git+https://github.com/obra/superpowers.git",
        "oh-my-openagent@latest"
      ]
    }
  2. Run: opencode2 plugin list

Expected Behavior

Configured plugins should be listed with their status.

Actual Behavior

Error: ENOENT: no such file or directory, chdir '/home/ubuntu' -> 'plugin'

Additional Context

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions