Skip to content

feat: discover nested plugin index entrypoints under .opencode/plugin#31641

Open
Desperado wants to merge 1 commit into
anomalyco:2.0from
Desperado:feat/nested-plugin-discovery
Open

feat: discover nested plugin index entrypoints under .opencode/plugin#31641
Desperado wants to merge 1 commit into
anomalyco:2.0from
Desperado:feat/nested-plugin-discovery

Conversation

@Desperado

@Desperado Desperado commented Jun 10, 2026

Copy link
Copy Markdown

Issue for this PR

Feature PR; no linked issue.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Extends auto-discovery under .opencode/plugin/ to pick up nested index.{js,ts} entrypoints (one and two levels deep), in addition to top-level *.{js,ts} files. Helper modules in the same folder are not auto-loaded.

This matches how multi-file plugins are usually laid out (e.g. plugin/my-runner/index.js plus local helpers).

How did you verify your code works?

bun test packages/opencode/test/config/config.test.ts --test-name-pattern "loads nested plugin|loads auto-discovered"

Screenshots / recordings

N/A — config loading only.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Scan one- and two-level nested index.{js,ts} files in addition to top-level
plugin files so multi-file plugins can live in subdirectories.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Jun 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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