Skip to content

fix(openclaw): cron yield descendant finalization#2234

Open
btc69m979y-dotcom wants to merge 1 commit into
release/2026.6.30from
fix/cron-yield-descendant-finalization
Open

fix(openclaw): cron yield descendant finalization#2234
btc69m979y-dotcom wants to merge 1 commit into
release/2026.6.30from
fix/cron-yield-descendant-finalization

Conversation

@btc69m979y-dotcom

Copy link
Copy Markdown
Collaborator

Summary

  • 修复 sessions_yield 后子 agent 完成事件无法驱动父 agent 继续执行的问题
  • 阻止 yielding 状态下 active requester steering 将 completion 事件写入当前已结束的 run
  • cron finalization 阶段增加 yield continuation 循环,支持多轮驱动父 agent 直到所有 descendant 完成
  • 覆盖三种场景:普通会话并行子 agent、cron 并行子 agent、cron 串行子 agent

Test plan

  • 验证普通会话并行子 agent 场景:A 完成唤醒主 agent 后 B 的 completion 不被吞掉
  • 验证 cron 并行子 agent 场景:A/B 完成后主 agent 能输出最终结果
  • 验证 cron 串行子 agent 场景:A 完成后主 agent 能继续启动 B 并最终输出结果
  • 确认 patch 可正常应用到 openclaw-runtime v2026.6.1

sessions_yield 后子 agent 完成事件未能驱动父 agent 继续执行,导致 cron
定时任务中主 agent 无法回收子 agent 结果。添加 patch 阻止 yielding 状态
下的 steering 写入,并在 cron finalization 阶段支持 yield continuation
循环驱动父 agent 直到所有子 agent 完成。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant