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
通过 pi install npm:@tt-a1i/openpi(v0.5.0)安装后,在 Pi TUI 中执行 /web,提示 OpenPI Web Workbench exited with code 1.;直接运行 openpi web 同样失败。
复现
pi list
# npm:@tt-a1i/openpi# ~/.pi/agent/npm/node_modules/@tt-a1i/openpicd~/.pi/agent/npm/node_modules/@tt-a1i/openpi/bin
node openpi.js web --no-workspace --no-open
输出:
Failed to start OpenPI Web Workbench: Cannot find module '@earendil-works/pi-coding-agent'
Require stack:
- ~/.pi/agent/npm/node_modules/@tt-a1i/openpi/web/runtime/pi-runtime.ts
Activity
FHMinyi commentedon Sep 2, 2026
我来认领这个修复。
计划按方向 1 实现:父扩展(extensions/web/index.ts)在 Pi 进程内解析
@earendil-works/pi-coding-agent的入口路径,通过 env 传给子进程;子进程(bin/openpi.js)用该路径配置 jiti alias,重定向 web/runtime/pi-runtime.ts 的裸导入。会先在真实 Pi 环境验证父进程侧的可靠解析方式(不同安装方式下import.meta.resolve/createRequire的行为),再补 tests/extensions/web/index.test.ts 的 env 传递断言。验证会包含:
bun run check、bun run test、npm 安装路径的真实 /web smoke。fix(web): hand resolved pi-coding-agent entry to the /web child proce…