anomalyco / anomalyco/opencode
TUI /status dialog shows full file path instead of plugin name on Windows
@simonklee is already working on this.
Since Aug 29, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
On Windows, file:// plugins in the /status dialog display the full file path instead of just the plugin name.
What happened:
The plugin list shows C:\Users\Administrator\ instead of rtk:
2 Plugins
• C:\Users\Administrator\
• oh-my-openagent @next
Root cause:
In packages/tui/src/component/dialog-status.tsx (line 23):
const path = fileURLToPath(value)
const parts = path.split("/") // only splits on /
fileURLToPath() returns C:\Users\Administrator\.config\opencode\plugins\rtk.ts on Windows. Since there's no /, split("/") returns a single-element array, and pop() returns the entire path string.
How to fix:
Replace split("/") with split(path.sep) from the path module.
Affected:
Only the TUI status dialog display for file:// plugins. No functional impact.
Note: Issue #34141 reported this same bug but was closed without
the fix being merged. Two PRs (#33375, #34183) attempted to fix it
but were also closed. The bug still exists in the current dev branch,
so I'm re-reporting it.
Plugins
rtk (file:// plugin)
OpenCode version
1.18.25
Steps to reproduce
- Create a plugin file at
C:\Users\<user>\.config\opencode\plugins\rtk.ts - Run OpenCode on Windows
- Press
/statusto open the status dialog - Observe the file:// plugin shows the full path
C:\Users\...instead ofrtk
Screenshot and/or share link
Operating System
Windows 11
Terminal
Windows Terminal
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.