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
Subagent and Workflow child preflight fails when pi-intercom is active in the parent #493
Activity
naivezip commentedon Sep 8, 2026
你好!
该问题与 #483 为完全相同的重复问题,分析结论与建议的修复方案完全一致。
目前修复代码及相关测试均已完成,并已提交至 PR #494:#494
PR #494 修复要点:
intercom移出子会话工具面:在extensions/shared/child-session.ts的CHILD_EXCLUDED_TOOL_NAMES中添加"intercom"。这保证了inheritedChildToolAllowlist、effectiveChildToolAllowlist和childToolPolicy在构造子代理与 Workflow 工具集合时,始终将intercom自动过滤排除。blockedPackageSources()继续将pi-intercom排除在子会话资源与扩展配置之外,防止同进程并发子会话通过process.env产生身份串号,保留了 setup: 移除 OpenPI 对 pi-intercom 的主动安装与配置职责 #128 的安全约定。child-session.test.ts的 fail-closed 漂移守卫和tool-surface.test.ts的工具目录校验。intercom时,子会话继承列表自动丢弃intercom,且bindChildSessionExtensions预检正常通过。tt-a1i commentedon Sep 9, 2026
新证据(print-mode + 与 #483 同因)
同意:这是 #483 的重复,机制同属 child-session,不是 #455 Web 总索引。研究记录(未提交):
docs/research/EXPERIMENT_CHILD_SESSION_2026-09-09.md。本轮只读源码与 npm 元数据,未pi install。复现(父会话激活
intercom→ Direct/Workflow child 预检失败)对@tt-a1i/openpi0.8.1 /origin/main0d17f45成立:inheritedChildToolAllowlist(pi.getActiveTools(), …)点名父 active 工具,blockedPackageSources()从 child 摘掉包。当前实验对照工作树a9b40f0没有这两套 API,默认 spawn 不投影父工具面,因此默认路径不会预检必挂。把
intercom从 requested 清单里丢掉,能停 0.8.1 的挂起,并应保持 #128 的资源隔离。它 不让 child 的confirm()到达 parent:child 绑定是{ mode: "print" },hasUI === false,confirm()恒为false。那是「无人可答」,不要记成用户拒绝。pi-intercom还把PI_INTERCOM_SESSION_ID写进共享process.env;同进程并发 child 会串身份。工具send在!hasUI时跳过confirmSend(fail-open)。parent-forwarded ask 的合同在 #497,通道归 OpenPI。不要用 intercom 当父子权限桥。不新开安装器。