Skip to content

[Bug] Custom plugins display full Windows path instead of plugin name #22119

Closed as duplicate

Description

@FurryWolfX

Description

On Windows, custom plugins show the Windows path (e.g., C:\Users\worph\) instead of the plugin name.

Expected Behavior

Plugin list should display the plugin's actual name (the file name), similar to how it works on WSL/Linux.

Actual Behavior

On Windows:

  • Custom plugins display Windows path like C:\Users\worph\ as the description
  • On WSL/Linux, the same plugin correctly shows just the directory name

Root Cause

File: packages/opencode/src/cli/cmd/tui/feature-plugins/system/plugins.tsx

Function: meta() (lines 30-38)

function meta(item: TuiPluginStatus, width: number) {
  if (item.source === "internal") {
    if (width >= 120) return "Built-in plugin"
    return "Built-in"
  }
  const next = source(item.spec) // Only handles file:// URLs
  if (next) return next
  return item.spec // Returns raw Windows path as-is
}

The source() function only handles file:// URLs but not raw Windows absolute paths (e.g., C:\Users\worph\...). When the plugin spec is a Windows path, it falls through to return item.spec, displaying the path.

Plugins

custom plugins

OpenCode version

1.4.3

Steps to reproduce

  1. On Windows, add a custom local plugin (e.g., a plugin in a local directory)
  2. Use /status in TUI
  3. Observe that the plugin shows the Windows path instead of just the plugin name

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on Apr 12, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. Ruzo commented on May 7, 2026

    @Ruzo

    Any plan for a fix? It's important for running opencode natively on Windows in order to have access to processes like certification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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