fix(qa-lab): cap agent wait timeout payloads · openclaw/openclaw@1c63da0
openclaw
·
2026-06-22
·
via Recent Commits to openclaw:main
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -698,7 +698,7 @@ describe("qa suite runtime agent process helpers", () => {
|
698 | 698 | |
699 | 699 | expect(gatewayCall).toHaveBeenCalledWith( |
700 | 700 | "agent.wait", |
701 | | -{ runId: "run-oversized", timeoutMs: 9e15 }, |
| 701 | +{ runId: "run-oversized", timeoutMs: MAX_TIMER_TIMEOUT_MS }, |
702 | 702 | { timeoutMs: MAX_TIMER_TIMEOUT_MS }, |
703 | 703 | ); |
704 | 704 | }); |
|
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|
@@ -347,15 +347,16 @@ async function waitForAgentRun(
|
347 | 347 | runId: string, |
348 | 348 | timeoutMs = 30_000, |
349 | 349 | ) { |
| 350 | +const waitTimeoutMs = resolveTimerTimeoutMs(timeoutMs, 30_000); |
350 | 351 | try { |
351 | 352 | return (await env.gateway.call( |
352 | 353 | "agent.wait", |
353 | 354 | { |
354 | 355 | runId, |
355 | | - timeoutMs, |
| 356 | +timeoutMs: waitTimeoutMs, |
356 | 357 | }, |
357 | 358 | { |
358 | | -timeoutMs: resolveQaGatewayTimeoutWithGraceMs(timeoutMs), |
| 359 | +timeoutMs: resolveQaGatewayTimeoutWithGraceMs(waitTimeoutMs), |
359 | 360 | }, |
360 | 361 | )) as { status?: string; error?: string }; |
361 | 362 | } catch (error) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。