Skip to content

fix(plugin): import solid runtime plugin support in plugin loader#22046

Open
YumaKakuya wants to merge 1 commit intoanomalyco:devfrom
sorted-ai:fix/plugin-loader-solid-runtime-support
Open

fix(plugin): import solid runtime plugin support in plugin loader#22046
YumaKakuya wants to merge 1 commit intoanomalyco:devfrom
sorted-ai:fix/plugin-loader-solid-runtime-support

Conversation

@YumaKakuya
Copy link
Copy Markdown

@YumaKakuya YumaKakuya commented Apr 11, 2026

Issue for this PR

Closes #22045

Type of change

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

What does this PR do?

The TUI plugin runtime imports @opentui/solid/runtime-plugin-support at the top of packages/opencode/src/cli/cmd/tui/plugin/runtime.ts:1, which lets Solid plugins register themselves inside a compiled binary. The plugin loader used by the server process at packages/opencode/src/plugin/loader.ts does not have the same import, so a server plugin that ships compiled .tsx components cannot find its Solid runtime when loaded from a compiled binary.

The fix is a single import at the top of plugin/loader.ts, matching the existing TUI pattern.

How did you verify your code works?

I hit this while working on a local server plugin that ships a compiled .tsx component: without the import the plugin silently failed to mount, with the import it renders correctly. I did not add a unit test — the change is a single import that mirrors the TUI pattern, and there's no existing test coverage for plugin loader imports to extend.

Screenshots / recordings

N/A — no UI change.

Checklist

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

@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 Apr 11, 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.

Solid runtime plugin support missing from plugin/loader.ts

1 participant