Skip to content

bug: /status shows truncated name for local file:// plugins on Windows #40131

Description

@JasonJason-oy

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

  1. On Windows, place any local plugin at %USERPROFILE%.config\opencode\plugins<name>.js
  2. Run opencode and open the /status dialog
  3. 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

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