fix(qa): enforce fanout completion drain · openclaw/openclaw@0e71ae5
vincentkoc
·
2026-06-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -152,18 +152,6 @@ flow:
|
152 | 152 | expr: "fanoutSpawnRequests.length >= 2" |
153 | 153 | message: |
154 | 154 | expr: "`expected at least two sessions_spawn tool calls during subagent fanout scenario, saw ${fanoutSpawnRequests.length}`" |
155 | | - - forEach: |
156 | | -items: |
157 | | -expr: "config.expectedChildCompletionMarkers" |
158 | | -item: childCompletionMarker |
159 | | -actions: |
160 | | - - call: waitForOutboundMessage |
161 | | -args: |
162 | | - - ref: state |
163 | | - - lambda: |
164 | | -params: [candidate] |
165 | | -expr: "String(candidate.text ?? '').trim() === childCompletionMarker" |
166 | | - - 10000 |
167 | 155 | - set: details |
168 | 156 | value: |
169 | 157 | expr: "outbound.text" |
@@ -251,4 +239,19 @@ flow:
|
251 | 239 | expr: "lastError === '__done__'" |
252 | 240 | message: |
253 | 241 | expr: "lastError instanceof Error ? formatErrorMessage(lastError) : String(lastError ?? 'fanout retry exhausted')" |
| 242 | + - if: |
| 243 | +expr: "Boolean(env.mock)" |
| 244 | +then: |
| 245 | + - forEach: |
| 246 | +items: |
| 247 | +expr: "config.expectedChildCompletionMarkers" |
| 248 | +item: childCompletionMarker |
| 249 | +actions: |
| 250 | + - call: waitForOutboundMessage |
| 251 | +args: |
| 252 | + - ref: state |
| 253 | + - lambda: |
| 254 | +params: [candidate] |
| 255 | +expr: "String(candidate.text ?? '').trim() === childCompletionMarker" |
| 256 | + - 10000 |
254 | 257 | detailsExpr: "details" |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。