Skip to content

fix: 修复子 Agent 压缩后完成提醒漏报 - #254

Closed
mutallipp wants to merge 2 commits into
maplezzk:mainfrom
mutallipp:muta/fix_subagent-squash-done
Closed

mutallipp wants to merge 2 commits into
maplezzk:mainfrom
mutallipp:muta/fix_subagent-squash-done

Conversation

@mutallipp

Copy link
Copy Markdown
Contributor

问题

自主子 Agent 使用 session_squash 的 next-user 模式保存任务快照后,可能没有正常 stop 事件,从而漏掉完成上报提醒,导致父 Agent 无法及时收到结果。

改动

  • pi-session-tools 在 next-user 分支和摘要持久化成功后,通过公共事件总线发布 pi-session-tools:squash-completed。
  • pi-interactive-subagents 在 spawn/resume 时显式传递实际交互模式,只对仍空闲的自主子 Agent 补偿一次延迟完成提醒。
  • 保留禁用提醒、人工接管、中断、新活动、过期 session/leaf、已完成上报等安全边界;不对交互子 Agent 或 auto 压缩追加补偿提醒。
  • 补充单元测试与跨扩展集成测试,同步中英文提示和说明文档。

验证

范围

本 PR 仅提交本次子 Agent 压缩后完成提醒漏报修复,涉及 pi-interactive-subagents 和 pi-session-tools 及其测试、文档;不包含其他功能改动。

@mutallipp

Copy link
Copy Markdown
Contributor Author

按提交方要求,改为从 fork 的 main 向 upstream main 提交。此 PR 已由 #255 替代,关闭本 PR,不合并。

@mutallipp mutallipp closed this Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant