fix: avoid zero-delay heartbeat rerun on in-flight skip (openclaw#14901) thanks @joeykrug

This commit is contained in:
Gustavo Madeira Santana
2026-02-12 15:07:59 -05:00
parent 961ca3946b
commit 69bc49b2ae

View File

@@ -916,6 +916,8 @@ export function startHeartbeatRunner(opts: {
continue;
}
if (res.status === "skipped" && res.reason === "requests-in-flight") {
agent.lastRunMs = now;
agent.nextDueMs = now + agent.intervalMs;
scheduleNext();
return res;
}