Skip to content

Windows: compiled OMP fails to load plugins resolving @oh-my-pi/pi-* from B:\~BUN\root #1292

Description

@gabrielmoreira

Description

On Windows native, OMP itself starts, but installed/enabled plugins do not become available. No plugin-provided tools or commands appear after startup, reload, enable/disable, or reinstall/update.

The plugins are installed and omp plugin doctor reports them as OK, but extension initialization fails at runtime because OMP tries to resolve internal @oh-my-pi/pi-* packages from Bun's compiled runtime root:

B:\~BUN\root

The failure appears to happen before plugin tools/commands can be registered.

This looks specific to the compiled Windows executable / Bun runtime module resolution path, not to missing plugin installs.

Possibly related to #1215, but this report covers Windows native with multiple common plugins failing after update/reinstall.


Steps to Reproduce

Existing environment repro

  1. Install OMP on Windows native.
  2. Install/update these plugins:
omp plugin install @juicesharp/rpiv-ask-user-question@latest
omp plugin install @oh-my-pi/swarm-extension@latest
omp plugin install @plannotator/pi-extension@latest
omp plugin install @runfusion/fusion@latest
omp plugin install pi-autoresearch@latest
  1. Verify plugin state:
omp plugin list --json
omp plugin doctor --json
  1. Start OMP.
  2. Try reloading or toggling plugins:
/reload-plugins

or disable/re-enable plugins from the UI/CLI.

  1. Observe that no plugin-provided tools/commands appear.
  2. Check the OMP log:
%USERPROFILE%\.omp\logs\omp.<date>.log

Minimal fresh-environment repro idea

On a clean Windows native machine/profile:

omp --version
bun --version

omp plugin install @juicesharp/rpiv-ask-user-question@latest
omp plugin install @oh-my-pi/swarm-extension@latest
omp plugin install @plannotator/pi-extension@latest
omp plugin install @runfusion/fusion@latest

omp plugin list --json
omp plugin doctor --json

omp

Then check whether plugin-provided tools/commands are registered. If they are not, inspect:

%USERPROFILE%\.omp\logs\omp.<date>.log

for Failed to load extension errors resolving @oh-my-pi/pi-* from B:\~BUN\root.


Expected Behavior

Enabled plugins should load successfully.

Plugin-provided tools, commands, UI components, or extension behavior should be available after OMP startup or after /reload-plugins.

Plugins should be able to import OMP internal packages such as:

@oh-my-pi/pi-tui
@oh-my-pi/pi-coding-agent
@oh-my-pi/pi-agent-core

without failing module resolution from Bun's compiled runtime root.


Error Output

Failed to load extension
path="C:\Users\<user>\.omp\plugins\node_modules\@juicesharp\rpiv-ask-user-question\index.ts"
error="Failed to load extension: ResolveMessage: Cannot find module '@oh-my-pi/pi-tui' from 'B:\~BUN\root'"

Failed to load extension
path="C:\Users\<user>\.omp\plugins\node_modules\@oh-my-pi\swarm-extension\src\extension.ts"
error="Failed to load extension: ResolveMessage: Cannot find module '@oh-my-pi/pi-coding-agent' from 'B:\~BUN\root'"

Failed to load extension
path="C:\Users\<user>\.omp\plugins\node_modules\@plannotator\pi-extension\index.ts"
error="Failed to load extension: ResolveMessage: Cannot find module '@oh-my-pi/pi-agent-core' from 'B:\~BUN\root'"

Failed to load extension
path="C:\Users\<user>\.omp\plugins\node_modules\@runfusion\fusion\dist\extension.js"
error="Failed to load extension: ResolveMessage: Cannot find module '@oh-my-pi/pi-coding-agent' from 'B:\~BUN\root'"

After updating to the latest available plugin versions, the same errors still occur.


Platform

Windows (native)


omp version

omp/15.1.8

Bun version

1.3.14

Provider

Other

This does not appear provider-specific. The failure happens during plugin/extension initialization before plugin capabilities are available.


Area

Extensions / Plugins


Additional context

Installed plugin state after update

omp plugin list --json reports the plugins installed and enabled:

{
  "npm": [
    {
      "name": "@juicesharp/rpiv-ask-user-question",
      "version": "1.12.0",
      "enabled": true
    },
    {
      "name": "@oh-my-pi/swarm-extension",
      "version": "13.17.0",
      "enabled": true
    },
    {
      "name": "@plannotator/pi-extension",
      "version": "0.19.21",
      "enabled": true
    },
    {
      "name": "@runfusion/fusion",
      "version": "0.32.0",
      "enabled": true
    },
    {
      "name": "pi-autoresearch",
      "version": "1.4.0",
      "enabled": true
    }
  ],
  "marketplace": []
}

omp plugin doctor --json reports the plugin directory, package manifest, node_modules, and all five plugins as OK.

So the issue does not look like a missing install or broken plugin directory.

Things tried

I tried the following:

  1. Updated all installed npm plugins to latest:
omp plugin install @juicesharp/rpiv-ask-user-question@latest
omp plugin install @oh-my-pi/swarm-extension@latest
omp plugin install @plannotator/pi-extension@latest
omp plugin install @runfusion/fusion@latest
omp plugin install pi-autoresearch@latest
  1. Restarted OMP.
  2. Tried reloading plugins.
  3. Tried disabling/re-enabling plugins.
  4. Verified plugin install state with:
omp plugin list --json
omp plugin doctor --json
  1. Temporarily removed/renamed stale user-level OMP package/launcher paths to rule out a local stale runtime issue, including:
%USERPROFILE%\node_modules\@oh-my-pi\pi-coding-agent
%USERPROFILE%\node_modules\.bin\omp*

That removed an older separate failure mode involving malformed Windows paths, but the active failure remained:

Cannot find module '@oh-my-pi/...' from 'B:\~BUN\root'

Why this seems like an OMP runtime/loader issue

The plugins are present and enabled, but extension loading fails when resolving OMP internal packages from the compiled Bun executable root:

B:\~BUN\root

The affected imports are internal OMP packages used by plugins:

@oh-my-pi/pi-tui
@oh-my-pi/pi-coding-agent
@oh-my-pi/pi-agent-core

The result is that OMP starts, but plugin capabilities never register, so no new plugin tools or commands appear.

Note about pi-autoresearch

pi-autoresearch is installed and enabled, but it does not appear in the same extension-load errors. Its manifest declares:

{
  "pi": {
    "extensions": ["./extensions"],
    "skills": ["./skills"]
  }
}

The installed structure contains:

extensions/pi-autoresearch/index.ts

So it may be resolving to zero extension entrypoints depending on how plugin extension path discovery handles nested extension directories. This may be separate from the B:\~BUN\root import-resolution failure affecting the other four plugins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentAgent runtime planning and orchestrationbugSomething isn't workingduplicateThis issue or pull request already existsplatform:windowsWindows-specificprio:p1High: significant impact, near-term fixsetupInstallation and setuptriaged

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions