Description
On Windows, the /status dialog shows local file:// config plugins with a truncated name. A plugin at C:\Users\me.config\opencode\plugins\superpowers.js is displayed as "C:\Users\me" instead of "superpowers".
The name is derived in DialogStatus by splitting the fileURLToPath() result on "/", which does not split Windows backslash paths. The whole path becomes the "filename", and filename.split(".")[0] then truncates it at the first dot in the path.
Plugins
oh-my-openagent@latest
OpenCode version
1.18.11
Steps to reproduce
- On Windows, place any local plugin at %USERPROFILE%.config\opencode\plugins<name>.js
- Run opencode and open the /status dialog
- The plugin appears as "C:\Users<username>" (truncated at the first dot of the path) instead of the plugin file name
Operating System
Windows 11
Terminal
Windows Terminal
Description
On Windows, the /status dialog shows local file:// config plugins with a truncated name. A plugin at C:\Users\me.config\opencode\plugins\superpowers.js is displayed as "C:\Users\me" instead of "superpowers".
The name is derived in DialogStatus by splitting the fileURLToPath() result on "/", which does not split Windows backslash paths. The whole path becomes the "filename", and filename.split(".")[0] then truncates it at the first dot in the path.
Plugins
oh-my-openagent@latest
OpenCode version
1.18.11
Steps to reproduce
Operating System
Windows 11
Terminal
Windows Terminal