You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Pi provider on Windows: "Could not determine the pi version: pi --version exited with ENOENT" #5332
On Windows, with Pi installed globally through npm, BB cannot load Pi models. The model picker shows "Could not determine the pi version: pi --version exited with ENOENT", although pi --version works in a terminal. Reinstalling or upgrading Pi does not help. There are two causes: BB's version probe cannot run npm's pi.cmd shim, and once that is fixed, launching Pi through the shim breaks the extra stdio pipes BB's Pi extension depends on.
Versions and environment
bb 0.45.0 desktop app (originally observed); reproduced from source at f135a001e72942cee9118d2693208ec0725e2f18 with pnpm dev
Windows 11 (build 26200)
Node 22.23.1, from the official installer (C:\Program Files\nodejs)
Pi: @earendil-works/pi-coding-agent 1.1.0, installed with npm install -g
npm creates %APPDATA%\npm\pi.cmd and pi.ps1; there is no pi.exe
Steps to reproduce
On Windows, install Node 22 with the official installer.
In PowerShell, confirm: pi --version prints 1.1.0, and where.exe pi lists ...\AppData\Roaming\npm\pi and ...\AppData\Roaming\npm\pi.cmd.
Start bb and run bb provider models pi (or, in the UI: New thread → Select model → Pi tab).
Expected vs actual
Expected: Pi models are listed and Pi threads can start.
Actual (bb provider models pi, and the same text in the model picker):
Could not load models for pi (failed)
Could not determine the pi version: `pi --version` exited with ENOENT. Install @earendil-works/pi-coding-agent 0.84.0 or newer: npm.cmd install -g @earendil-works/pi-coding-agent@latest
With only the version probe fixed (for example, running it through cross-spawn), the catalog and sessions fail next with:
pi exited (code 1, signal null): Error: Failed to load extension "C:\Users\<user>\AppData\Local\Temp\bb-provider-bridge-provider-pi-XXXX\pi\bb-pi-extension.mjs": Failed to load extension: Unsupported fd type: UNKNOWN Hint: Start without extensions using "pi -ne".
Checks
I reproduced this on the latest release or on main, or I say above that I could not.
I searched open and closed issues for the same problem.
changed the title [-]Pi provider on Windows: "Could not determine the pi version: `pi --version` exited with ENOENT" when Pi is installed globally with npm[/-][+][BUG] Pi provider on Windows: "Could not determine the pi version: `pi --version` exited with ENOENT"[/+]on Oct 10, 2026
Finding: The version probe invokes the bare Pi command through execFile, unlike the portable RPC launch path. Native Windows shim resolution and extra-pipe inheritance remain unverified.
Evidence: On trusted main, the synthetic shim-only probe returned ENOENT in two clean Linux checkouts; the explicit-Node control passed both times. Eight existing maintenance/install-gate tests passed. The complete reproduction test is embedded in the report.
No PR: The native Windows failure was not reproduced, so the strict simple-fix gate was not met.
Still reproducible on bb 0.48.1 with pi 1.4.0: the version-probe cause is gone (bb updates reports Pi 1.4.0 Up to date on the Windows host), but the second cause — the bridge extension failing with Unsupported fd type: UNKNOWN — blocks both bb provider models pi --machine <windows-host> and Pi thread start. Fresh report with exact commands and output: #6790
Activity
[-]Pi provider on Windows: "Could not determine the pi version: `pi --version` exited with ENOENT" when Pi is installed globally with npm[/-][+][BUG] Pi provider on Windows: "Could not determine the pi version: `pi --version` exited with ENOENT"[/+]bb-slop-cop commentedon Oct 10, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-pi,partial-repro.execFile, unlike the portable RPC launch path. Native Windows shim resolution and extra-pipe inheritance remain unverified.Fix Pi Windows npm shim probing and RPC pipes (#5271)
skillet07 commentedon Nov 1, 2026
Still reproducible on bb 0.48.1 with pi 1.4.0: the version-probe cause is gone (
bb updatesreportsPi 1.4.0 Up to dateon the Windows host), but the second cause — the bridge extension failing withUnsupported fd type: UNKNOWN— blocks bothbb provider models pi --machine <windows-host>and Pi thread start. Fresh report with exact commands and output: #6790Carry the Pi bridge channel over a socket so every launcher works (#6857