Skip to content

Place the OpenCode plugin where the loader looks - #13

Merged
NovusEdge merged 1 commit into
mainfrom
fix/opencode-plugin-discovery
Sep 13, 2026
Merged

Place the OpenCode plugin where the loader looks#13
NovusEdge merged 1 commit into
mainfrom
fix/opencode-plugin-discovery

Conversation

@NovusEdge

Copy link
Copy Markdown
Owner

Answers q75 (ledger d81).

Problem

planOpenCode wrote ~/.config/opencode/plugins/docket/index.ts. OpenCode discovers plugins with the glob {plugin,plugins}/*.{ts,js} and include: "file". One star plus a file-only filter means a file one level down never matches, so every OpenCode install has shipped a plugin OpenCode ignored, with no error.

Read out of the installed binary:

glob("{plugin,plugins}/*.{ts,js}", {cwd, absolute:!0, include:"file", dot:!0, symlink:!0})

What changed

Change Detail
planOpenCode writes plugins/docket.ts
install and update remove the pre-0.11.0 plugins/docket/index.ts
buildUninstall removes both paths
docs/integrations.md drops the manual-move instructions

Two planner tests cover the new path and the removal of the undiscoverable one.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ba1BDHfYkW4jh4foQWhT1K

OpenCode globs {plugin,plugins}/*.{ts,js} with include:"file". The nested
plugins/docket/index.ts the installer wrote never matched, so every OpenCode
install shipped a plugin OpenCode ignored. Installs and uninstalls now remove
that file.

Signed-off-by: NovusEdge <novusedge0@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 08932c46-8ca4-4841-bc9e-fd99b1f7190f

📥 Commits

Reviewing files that changed from the base of the PR and between 3a0d8b2 and 7c283b3.

📒 Files selected for processing (3)
  • docs/integrations.md
  • installer/planner.go
  • installer/planner_test.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@NovusEdge
NovusEdge merged commit d1aea2e into main Sep 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant