anomalyco / anomalyco/opencode

TUI /status dialog shows full file path instead of plugin name on Windows

Open
#46,101 1 comment 0 reactions 1 assignee View on GitHub

@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
  1. Create a plugin file at C:\Users\<user>\.config\opencode\plugins\rtk.ts
  2. Run OpenCode on Windows
  3. Press /status to open the status dialog
  4. Observe the file:// plugin shows the full path C:\Users\... instead of rtk
Screenshot and/or share link
Image
Operating System

Windows 11

Terminal

Windows Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.