You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows 11, opencode2 beta-17728: TUI plugins loaded from local paths fail to load. Two documented ways to configure them, both broken:
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."
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.
This issue might be a duplicate of existing issues. Please check:
[BUG] 「V2 (next-17444)」local .ts plugins fail to load on Windows #42763: Same root cause — local plugins fail to load on Windows in V2 because the <abs-path>?mtime=<int> specifier is not importable by the compiled Bun binary on Windows (drive-letter paths need a file:// URL). Your analysis of the fix (using file:///C:/... URLs) matches the diagnosis there.
Activity
github-actions commentedon Aug 20, 2026
This issue might be a duplicate of existing issues. Please check:
<abs-path>?mtime=<int>specifier is not importable by the compiled Bun binary on Windows (drive-letter paths need afile://URL). Your analysis of the fix (usingfile:///C:/...URLs) matches the diagnosis there.