fix: yield while waiting for subagent completions · openclaw/openclaw@4251415
steipete
·
2026-04-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { isCronSessionKey } from "../routing/session-key.js"; |
2 | 2 | |
3 | 3 | export const SUBAGENT_SPAWN_ACCEPTED_NOTE = |
4 | | -"Auto-announce is push-based. After spawning children, do NOT call sessions_list, sessions_history, exec sleep, or any polling tool. Wait for completion events to arrive as user messages, track expected child session keys, and only send your final answer after ALL expected completions arrive. If a child completion event arrives AFTER your final answer, reply ONLY with NO_REPLY."; |
| 4 | +"Auto-announce is push-based. After spawning children, do NOT call sessions_list, sessions_history, exec sleep, or any polling tool. Track expected child session keys. If any required child completion has not arrived yet, call sessions_yield to end the turn and wait for completion events as user messages. Only send your final answer after ALL expected completions arrive. If a child completion event arrives AFTER your final answer, reply ONLY with NO_REPLY."; |
5 | 5 | export const SUBAGENT_SPAWN_SESSION_ACCEPTED_NOTE = |
6 | 6 | "thread-bound session stays active after this task; continue in-thread for follow-ups."; |
7 | 7 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。