test(agents): clarify live subagent steering prompt · openclaw/openclaw@dfcf211
vincentkoc
·
2026-05-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -373,10 +373,14 @@ describeLive("subagent announce live", () => {
|
373 | 373 | const parentToken = `PARENT_SAW_${childToken}`; |
374 | 374 | const parentStartedToken = `PARENT_READY_${nonce}`; |
375 | 375 | const steerToken = `STEER_${nonce}`; |
376 | | -const steerMessage = `${steerToken}: reply exactly ${childToken} now.`; |
| 376 | +const steerMessage = [ |
| 377 | +`${steerToken} has arrived.`, |
| 378 | +"Stop waiting and do not call any tools.", |
| 379 | +`Reply exactly ${childToken} and nothing else.`, |
| 380 | +].join(" "); |
377 | 381 | const childTask = [ |
378 | 382 | `Immediately call sessions_yield with message="waiting for ${steerToken}".`, |
379 | | -`After a steering message containing ${steerToken} arrives, reply exactly ${childToken}.`, |
| 383 | +`After a steering message says ${steerToken} has arrived, stop waiting and reply exactly ${childToken}.`, |
380 | 384 | `Do not reply with ${childToken} before receiving ${steerToken}.`, |
381 | 385 | ].join(" "); |
382 | 386 | const sessionKey = `agent:main:live-subagent-${nonce.toLowerCase()}`; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。