Skip to content

tui: local plugins fail to load on Windows #43644

Closed as duplicate
Closed as duplicate

Description

@ransagy

On Windows 11, opencode2 beta-17728: TUI plugins loaded from local paths fail to load. Two documented ways to configure them, both broken:

  1. Drop a plugin file in ~/.config/opencode/plugins/tui/ — per the docs: "OpenCode also discovers JavaScript and TypeScript plugins from plugins/tui under the global config directory and project .opencode directories."
  2. Reference it from cli.json, e.g. "plugins": ["./plugins/tui/status.js"] — same shape as the documented "./plugins/status.ts" example.

Both fail in the TUI with:

Cannot find module 'C:/Users/me/.config/opencode/plugins/tui/status.js?mtime=1787229062999' imported from B/~BUN/root/chunk-q1n955ge.js

Notably:

  • Server-side plugins from the identical local path (same ?mtime= suffix) load fine.
  • In the TUI, plugin packages installed into the cache load fine (entrypoint is a plain file:// URL).

Platform difference, probed with the same bun version opencode2 is built on (1.3.14):

  • Windows: import("C:/.../x.js") fails — even without the ?mtime=. import("file:///C:/.../x.js?mtime=...") works.
  • Linux (WSL): import("/tmp/.../x.js?mtime=...") works fine.

So the entry string for local plugins (a raw drive path) can't be imported by bun on Windows.

Environment: Windows 11 (win32 x64, 10.0.26100), opencode2 0.0.0-beta-17728, PowerShell, no terminal emulator env vars.

Happy to provide logs or a minimal repro if useful.

Activity

  1. github-actions commented on Aug 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions