fix(cron): prevent lane timeout during long tool execution · openclaw/openclaw@bf9c59b
ajwan8998
·
2026-06-19
·
via Recent Commits to openclaw:main
File tree
src/agents/embedded-agent-runner
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1853,6 +1853,10 @@ async function runEmbeddedAgentInternal(
|
1853 | 1853 | } else { |
1854 | 1854 | parentAbortSignal?.addEventListener("abort", relayParentAbort, { once: true }); |
1855 | 1855 | } |
| 1856 | +// Periodically report progress during long-running tool execution |
| 1857 | +// so the lane timeout does not expire while a tool is still running |
| 1858 | +// (e.g., exec commands taking >5 minutes) (#94033). |
| 1859 | +const progressInterval = setInterval(() => noteLaneTaskProgress(), 30_000); |
1856 | 1860 | const rawAttempt = await runEmbeddedAttemptWithBackend({ |
1857 | 1861 | sessionId: activeSessionId, |
1858 | 1862 | sessionKey: resolvedSessionKey, |
@@ -2011,6 +2015,7 @@ async function runEmbeddedAgentInternal(
|
2011 | 2015 | throw postCompactionAbortError ?? err; |
2012 | 2016 | }) |
2013 | 2017 | .finally(() => { |
| 2018 | +clearInterval(progressInterval); |
2014 | 2019 | parentAbortSignal?.removeEventListener?.("abort", relayParentAbort); |
2015 | 2020 | if (postCompactionAbortController === attemptAbortController) { |
2016 | 2021 | postCompactionAbortController = undefined; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。