Repository navigation
Replies: 2 comments 2 replies
|
The two observations point to separate lifecycle counters that should be made explicit rather than inferred from the same append-only session log. For deletion, I’d make For the agent count, expose two values: This gives plugins predictable lifecycle semantics and prevents unbounded session growth without losing audit history. If this addresses the design gap, could you please click GitHub’s Mark as answer on this reply? |
|
Source-verified answer. Both observations hold, and the second one is a property of a fold rather than a cache bug. 1. No deletion channel — confirmed, and it is wider than the three packages you checked. The public storage contract is One half of your proposal is already expressible today, which matters for the design: 2. The "N subagents" number is a fold over the event log, not a census of storage. The client accumulates it in 3. Plugin-mountability, since we screen for it every round. Read side: a plugin can enumerate via For context, this is the second report on this axis we have seen: #5696 / #5995 describe the in-memory half — a hydrated session registry entry is dropped only when its owning scope tears down, so a long-lived process grows monotonically. Delete-on-disk and evict-in-memory are the same missing retention policy seen from two sides, which is why they probably want one design rather than two patches. We have no published asset that touches deletion; the closest thing of ours only reads logs ( |
Uh oh!
There was an error while loading. Please reload this page.
重度使用dsh一个月,也自行开发了一个多agent编排插件,目前发现有两个关于dsh会话生命周期设计缺失的问题
1、没有删除会话的通道,数据只能无限积累
归档只是执行门禁(拒绝跑模型),数据全留;删工作区明确保留会话记录;三个核心包里不存在 deleteSession API(0.2.0-rc.2 源码实证)。
实机影响:重度使用 6 周积累 3400+ 会话目录 / 1.5GB;宿主启动随会话数变慢;一次性子代理生态(任务看板类插件)每周产生数百死会话,无官方处置通道。
请求:deleteSession 一等 API(明确活体/休眠/子代理血统/派生存储的语义)+ GUI 删除入口 + 插件作者生命周期指南
2、「N 个子智能体」计数 = 历史累计 spawn 数,删除子会话后不降
删除某根会话的 193 个已结算子会话目录(磁盘 3431→3238),重启宿主(新进程晚于删除 48 秒),计数纹丝不动;被删 id 在 storages 里零残留——枚举显然来自根会话 append-only 日志里的 spawn 事件链,语义是「历史上生过多少」而非「现存多少」。
建议:拆分显示「现存 X / 历史 Y」,或提供注册面与磁盘对账的 prune 路径。
All reactions