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
Hi! I am working on this issue. I will add a bounded aggregate snapshot projection for Direct Subagents, preserving lifecycle identity and exact result artifacts while testing single-large and multi-agent boundaries before opening a PR.
Follow-up: I audited the current implementation and did not find a distinct aggregate-snapshot persistence seam. The real paths are the per-agent manager snapshot, bounded aggregate result projection, process-local pending delivery map, and UI transcript projection, each with separate semantics. I am not opening a speculative PR that would blur those contracts; the issue remains open for a future design that names the canonical aggregate boundary and its recovery requirements.
Activity
627150795 commentedon Aug 28, 2026
Hi! I am working on this issue. I will add a bounded aggregate snapshot projection for Direct Subagents, preserving lifecycle identity and exact result artifacts while testing single-large and multi-agent boundaries before opening a PR.
627150795 commentedon Aug 28, 2026
Follow-up: I audited the current implementation and did not find a distinct aggregate-snapshot persistence seam. The real paths are the per-agent manager snapshot, bounded aggregate result projection, process-local pending delivery map, and UI transcript projection, each with separate semantics. I am not opening a speculative PR that would blur those contracts; the issue remains open for a future design that names the canonical aggregate boundary and its recovery requirements.
tt-a1i commentedon Sep 8, 2026
本轮核对建议把 #180 收窄到一个已经找到、可以无模型调用复现的边界:Direct Subagent 的待投递结果没有总数量或字节上限。
核对日期:2026-09-08;源码:
ed9dbc1018f890fd54375f5371990ddfee8af5df。下面区分源码事实、确定性探针与建议,不把探针当成实际 Session 的内存 Benchmark。原文“聚合 snapshot 持久化/restore”没有对应到当前独立的持久化 seam,之前的评论也已指出这一点。这里补充真实的 pending completion 路径,保留原讨论历史。
当前路径与触发条件
MAX_TRACKED=64只裁剪自己的 entries,不会移除 inbox 中已经保存的 payload。因此,父一直执行当前 turn、持续补充已经完成的 child 时,待投递数量可以超过 64;manager 的保留上限不能约束这个集合。
可重现探针
在上述 revision 的仓库根目录运行下面命令。本轮使用 Node
v26.3.0,不安装依赖、不启动 child、不请求模型。观测结果:
pendingBeforeParentSettled=256;settle 后pendingAfter=0、deliveredCount=256、deliveredBytes=16779922。这证明当前队列接受并保存了约 16 MiB 的结果文本,且一次向 dispatcher 交付全部 256 项;不代表测得真实 Session 的 RSS,也不证明已有用户触发 OOM。已有保护与建议范围
模型可见文本已有 48 KiB 整批截断及公平分配,所以这里不是“模型上下文无界”。本轮也不重新主张存在一个独立的 persisted snapshot/restore 边界。
Background Terminal 已有可参考的 running + pending + reserved 准入限制。Direct Subagent 可以选择总量反压,或在投递前保存完整结果、让 inbox 只保留有界投影和恢复引用;具体方案需要同时保持 wait 消费与发送失败重试语义。
建议最小验收:
这是一项待实施的范围建议,不代表已修复或已采用新的架构约束。