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
Child tool preflight failed: requested tool "intercom" is unavailable after
child extensions initialized. Check the Agent Type tools list and child
extension loading.
Activity
naivezip commentedon Sep 8, 2026
我来认领这个issue
tt-a1i commentedon Sep 9, 2026
新证据(print-mode + 双树)
源码对照,未安装、未运行
pi-intercom。研究记录(本工作树,未提交):docs/research/EXPERIMENT_CHILD_SESSION_2026-09-09.md。本 Issue 的挂起:对 0.8.1 成立,对本工作树默认 spawn 不成立
inheritedChildToolAllowlist(pi.getActiveTools(), …)+blockedPackageSources()在@tt-a1i/openpi0.8.1 /origin/main0d17f45存在。父会话激活intercom→ 继承 allowlist 点名该工具 → child settings 已摘包 → 预检把有意的排除升级成整条委托失败。Direct 与 Workflow 都投影父 active tools。这个根因句是对的。当前文档/实验对照的工作树是
a9b40f0(package.json仍写 0.4.0):没有这两个函数,默认subagent_spawn不投影父 active tools。无agent_type时不设 allowlist,预检跳过。同装 intercom 不会在这条默认路径上预检必挂。过滤器只认node_modules/pi-intercom路径;git/local 安装漏过(#128 评论要求的三种 source,0.8.1 已做,此树未做)。PR #494 的测试布局是
tests/extensions/...,不能按路径 cherry-pick 进a9b40f0。加
"intercom"到排除表:能停挂起,不是身份根因0.8.1 上这是正确的 可见性 补丁。它不改变下面的运行时事实:
bindChildSessionExtensions({ mode: "print" })。noOpUIContext:hasUI === false,confirm()恒为false,select/input/custom为undefined。subagents:child:session-created,也 不设PI_SUBAGENT_PARENT_SESSION或任何PI_INTERCOM_*/PI_SUBAGENT_*。因此 child 不能把确认弹到唯一 parent TUI。
confirm() === false是「无人可答」,不是「用户拒绝」。权限 ask 的转发在 #497,通道必须归 OpenPI、按 child id 寻址;不要用 intercom /contact_supervisor当父子桥。为什么 intercom 仍必须 parent-only(即使预检修好)
pi-intercom0.13.0 在session_start写入进程级process.env.PI_INTERCOM_SESSION_ID,shutdown 时按 该实例启动时 看到的值 restore。同进程并发 child 共享一份 env:后启动的 child 覆盖父身份,先退出的 child 把 env 恢复成错误的 sibling id。contact_supervisor还靠一组PI_SUBAGENT_*;OpenPI 从不设置。另外:工具路径
send用confirmSend && ctx.hasUI。print-mode 下hasUI为假 → 跳过确认并发送(fail-open)。outbox 路径才会confirmation_unavailable。把包放进 child「好让它问人」会得到静默跨会话 send,不是 parent 对话框。漂移守卫
本包工具未分类 →
child-session.test.tsfail-closed。社区工具名 不进 这张扫描表。在a9b40f0把"intercom"写进CHILD_EXCLUDED_TOOL_NAMES会触发「排除表名字必须仍被本包注册」。#494 改守卫是改合同,不是一行名单。结构性修复仍是:继承投影丢掉「所属包已被 child 剔除」的工具,而不是为每个社区包手写一个排除名。不改 #128 的隔离结论。不引入新安装器。
tt-a1i commentedon Sep 9, 2026
补一条:#483 的结构性修复 ≠ 第三方名录 / firewall
不改本 Issue 的根因句(0.8.1 inherit 点名
intercom+blockedPackageSources摘包 → 预检把有意排除升级成委托失败)。本对照树a9b40f0默认 spawn 不投影父 active,这条挂起在那边不成立。后续研究(未提交):
docs/research/EXPERIMENT_THIRD_PARTY_CHILD_FILTER_2026-09-09.md。家在 #169 的「未分类 child fail-closed」,不是本票长出包黑名单。"intercom"能停 这一次 0.8.1 挂起。它必须同时改双向漂移守卫(本包未注册的名字不能待在CHILD_EXCLUDED_TOOL_NAMES)。不要把「排除表可以任意塞社区名」写成新合同。dap/mcp/eval。本轮未
pi install、未实现、未开新 Ideas。fix(child-session): dynamically exclude blocked package tools from ch…
fix(child-session): dynamically exclude blocked package tools from ch…
fix(child-session): align inherited tools with blocked package proven…