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 Plan Mode 与现有 ready gate,把 /plan、/plan implement、/plan fresh 在无交互编辑器/不支持该模式的 Web runtime 中映射为稳定的 handled-but-blocked receipt,明确返回原因与下一步,而不是清空输入后伪装成功;在具备原生 seam 时再转交 Pi,不在 Web 侧新建 Plan 状态机。覆盖 ready、idle、unsupported、重复命令和工具门仍关闭的测试。
建议验收仍只盯 Plan Ready 交接:可见的 handled-but-blocked(或真 editor 预填)、fresh 不支持时保留 ready、未批准时门继续关、/plan off 有可见回执、测试同时锁 persist 与工具门,不能只断言 HTTP / outcome:"handled"。不要在浏览器改写 plan state 来开门。
Activity
testikun commentedon Sep 8, 2026
我来认领 Plan Ready 后 Web 实施命令的 fail-closed 反馈切片。
技术方案:沿用 Pi Plan Mode 与现有 ready gate,把
/plan、/plan implement、/plan fresh在无交互编辑器/不支持该模式的 Web runtime 中映射为稳定的 handled-but-blocked receipt,明确返回原因与下一步,而不是清空输入后伪装成功;在具备原生 seam 时再转交 Pi,不在 Web 侧新建 Plan 状态机。覆盖 ready、idle、unsupported、重复命令和工具门仍关闭的测试。tt-a1i commentedon Sep 9, 2026
源码对照(2026-09-09),不扩大本 Issue 的实现范围。
本工作树
a9b40f0044ee59c360a6077c1c0bdbdbd30da10b没有web/,但extensions/plan-mode/index.ts已经是同一组!ctx.hasUI→notify+return。origin/main0d17f4577fe31315fe6c95370d251bdb4e2413cf仍bindExtensions({ mode: "print" })、不传uiContext。Pi6160683(0.85.1)的noOpUIContext.notify仍是空操作;hasUI()是uiContext !== noOpUIContext,不是 TTY。所以本 Issue 的静默 handled 在发布线和本树 plan 源码上仍成立。本树plan-mode测试全员hasUI: true,CI 绿证明不了这条。新的分档(避免用「绑 RPC」或「断言 handled」来修):
Web ≠ RPC。 RPC 文档写明
ctx.hasUI === true,custom()立即undefined,setEditorText/notify是 fire-and-forget。因此/plan implement在 Web/print 上停在!hasUI(门仍关),在 RPC 上会走进setEditorText+clearPlan(写门打开),即使 host 丢掉set_editor_text。不要把 Web 改绑mode: "rpc"当本 Issue 的修复。/plan off已经能改权威。clearPlan不看hasUI。print/Web 上这是「状态变了、收据被吞」,不是再一条 blocked。验收里的可见回执是补收据,不要拦住off。同一
handled+ 空 notify 不只三条/plan。 手打 slash 一律进 handler(_tryExecuteExtensionCommand返回 true)。print/Web 上/btw/subagents/lg/ps/tasks也是权威不变、操作员看不见原因;/sessions只往 Host stdout 打列表、不切换;/cron与/workflows stop会改调度/abort 但同样看不见。这些分别属于 Web 侧问:怎样呈现已有 Pi-native /btw 而不污染主上下文? #477 / feat(web): add inspectable and controllable OpenPI capability panels #346 / sessions picker,不要并进本 PR。RPC/sessions另有一条:hasUI为真却走废掉的custom(),会落到「No sessions found」假收据。confirm() === false不是用户拒绝(print no-op)。本 Issue 的 plan 门用的是hasUI,不要改成裸confirm。ask_user的no-ui正文已经是模型可见的 fail-closed,不要为对齐本票改成摘工具。建议验收仍只盯 Plan Ready 交接:可见的 handled-but-blocked(或真 editor 预填)、fresh 不支持时保留 ready、未批准时门继续关、
/plan off有可见回执、测试同时锁 persist 与工具门,不能只断言 HTTP /outcome:"handled"。不要在浏览器改写 plan state 来开门。