test: allow slow packaged agent acceptance · openclaw/openclaw@04c650c
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -205,17 +205,21 @@ async function runSubagentCleanupScenario(params: {
|
205 | 205 | const { gateway, pidPath, pidsPath, exitPath } = params; |
206 | 206 | await resetProbeFiles({ pidPath, pidsPath, exitPath }); |
207 | 207 | |
208 | | -const run = await gateway.request<AgentRunResult>("agent", { |
209 | | -message: "Use available context and then stop.", |
210 | | -sessionKey: `agent:main:subagent:docker-${randomUUID()}`, |
211 | | -agentId: "main", |
212 | | -lane: "subagent", |
213 | | -cleanupBundleMcpOnRunEnd: true, |
214 | | -idempotencyKey: randomUUID(), |
215 | | -deliver: false, |
216 | | -timeout: 90, |
217 | | -bestEffortDeliver: true, |
218 | | -}); |
| 208 | +const run = await gateway.request<AgentRunResult>( |
| 209 | +"agent", |
| 210 | +{ |
| 211 | +message: "Use available context and then stop.", |
| 212 | +sessionKey: `agent:main:subagent:docker-${randomUUID()}`, |
| 213 | +agentId: "main", |
| 214 | +lane: "subagent", |
| 215 | +cleanupBundleMcpOnRunEnd: true, |
| 216 | +idempotencyKey: randomUUID(), |
| 217 | +deliver: false, |
| 218 | +timeout: 90, |
| 219 | +bestEffortDeliver: true, |
| 220 | +}, |
| 221 | +{ timeoutMs: 240_000 }, |
| 222 | +); |
219 | 223 | assert( |
220 | 224 | run.status === "accepted" && run.runId, |
221 | 225 | `agent did not accept subagent cleanup run: ${JSON.stringify(run)}`, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。