Repository navigation
Description
Bug type: Behavior bug
Summary: Isolated cron jobs (sessionTarget: "isolated") consistently fail with "LLM request failed" or "timed out (last phase: model-call-started)" regardless of timeoutSeconds setting; model requests never reach the provider (usage.input=0), and manual cron run triggers initially work but eventually also fail after repeated failures.
Steps to reproduce:
- Configure an isolated cron job (sessionTarget: "isolated" with an agent turn prompt).
- Wait for automatic cron trigger at the scheduled time.
- Observe
LLM request failedortimed out (last phase: model-call-started)in gateway logs. - Run
openclaw cron run <cron-id>manually — this works initially (14s–28s response time). - Wait for another automatic failure (e.g., 5+ consecutive failures).
- Run
cron runagain — it now fails as well. - Restart the gateway → manual triggers work again temporarily, then fail after another automatic trigger fails.
- Set
timeoutSeconds: 0as workaround — does not help.
Expected behavior: Isolated cron jobs should consistently execute the agent turn prompt and complete successfully, similar to non-isolated cron triggers.
Actual behavior: All automatic cron triggers fail (5+ consecutive attempts). Manual cron run initially succeeds (14s–28s) but later also fails. usage.input: 0 in diagnostics confirms the model request never reaches the provider. queueDepth=1 persists. Error from diagnostics: "LLM request failed" with underlying error "Request was aborted". consecutiveErrors counter keeps increasing. Gateway restart provides only temporary recovery.
OpenClaw version: 2026.6.1 (commit 2e08f0f)
Operating system: macOS 15.4 (Darwin arm64)
Install method: npm global (openclaw@2026.6.1)
Model: deepseek/deepseek-v4-flash
Provider / routing chain: openclaw → zai (api_key auth) → deepseek
Additional provider/model setup details:
- Auth profile: zai:cn with mode: api_key
Additional information:
- Similar issues: Cron isolated sessions timing out after 2026.3.8 update #40868, cron
sessionTarget="isolated"+agentTurncan time out on a minimal prompt #42632, DeepSeek V4 Pro: model-call-started timeout on isolated cron sessions (OpenClaw 2026.5.20) #86208, Isolated agent cron jobs failing: stalled before first model call #81475, [Bug]: LLM request timeout ignores configured timeout settings (agent/channel/tool timeouts not respected) #46049, [Bug] Hardcoded 60s timeout during prompt processing cannot be configured – makes local LLMs with slow prompt processing unusable #60203 - Fix PRs: fix(cron): per-attempt AbortControllers and deferred execution timeout #42482 (independent AbortController + deferred timeout), fix(cron): start isolated job timeout after queue wait #41796 (isolated cron timeout starts after queue wait)
- Current version 2026.6.1 does not include these fixes
- Workaround tested: timeoutSeconds: 0 — does not bypass the internal hardcoded ~60s timeout
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 8, 2026
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.
Close as a duplicate of the active canonical report: current main still emits the implicated cron prompt envelope, and the latest controlled production A/B evidence links that remaining failure family to the canonical investigation and candidate repair.
Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.
Canonical path: Consolidate the envelope repair and provider-specific validation under the canonical report rather than keeping parallel investigations open.
So I’m closing this here because the remaining work is already tracked in the canonical issue.
Review details
Best possible solution:
Consolidate the envelope repair and provider-specific validation under the canonical report rather than keeping parallel investigations open.
Do we have a high-confidence way to reproduce the issue?
No local reproduction was run; however, the latest thread comment supplies a controlled production A/B, and current source confirms that the implicated envelope remains.
Is this the best way to solve the issue?
Yes for triage: the canonical report is the narrowest place to validate and land the shared envelope repair, while this issue adds no distinct remaining owner boundary.
Security review:
Security review: This is issue triage without a proposed patch.
AGENTS.md: found and applied where relevant.
What I checked:
src/cron/isolated-agent/run-prepare.ts:538, d2be00e171f6)src/cron/isolated-agent.session-identity.test.ts:171, d2be00e171f6)src/cron/isolated-agent/run-prepare.ts:220, d2be00e171f6)docs/releases/2026.7.1.md. (docs/releases/2026.7.1.md:1961, 7fefc5ff58de)src/cron/isolated-agent/run-prepare.ts:538, d30c036b68c5)Likely related people:
src/agents/embedded-agent-runner/run/llm-idle-timeout.ts)src/cron/isolated-agent/run-prepare.ts,src/cron/isolated-agent.session-identity.test.ts)Codex review notes: model internal, reasoning high; reviewed against d2be00e171f6.
TecnoTalarn commentedon Jun 9, 2026
I am experiencing the exact same issue. The cron execution is failing on my setup as well.
Environment & Setup:
qwen3:14b).This appears to be a regression. The cron feature was working perfectly fine on my previous installation using OpenClaw version
2026.5.12.Let me know if you need me to pull any specific logs to help debug this!
yangzhe1991 commentedon Jun 9, 2026
Same issue here. Not sure how much it has to do with the new version, but I indeed encountered the same issue after upgrading from the early May version to the latest one.
My current debugging result is that in crontasks, LLM requests seem to easily get stuck and become "stalled sessions", while normal tasks do not. Moreover, because the timeout configured at the model provider level (default 600s) is longer than the stalled judgment time (default 360s), the model request does not retry but directly kills the entire cron task.
My current workaround is to change the model provider-level timeout to 120s, ensuring that the model timeout occurs first rather than the session stalling. This way, the model will retry, and after 1-2 retries, the cron task will finally complete.
TecnoTalarn commentedon Jun 9, 2026
@yangzhe1991 Thanks for the suggestion. I've just implemented your workaround and I'll wait until tomorrow to see the actual results.
I tested a cron job right after rebooting and it worked perfectly, but as mentioned in other posts on this issue, this is the expected behavior right after a restart. I'll report back tomorrow with an update!
Thanks!
c0o1sy1z3 commentedon Jun 11, 2026
Same issue here.
I have two independent agents in the same environment. Both cron consistently fails on schedule but succeeds on manual trigger(expect for the weather skill).
Agent A fails with deepseek/deepseek-v4-flash with the message: Cron job "xxx" failed: LLM request failed.
Agent B fails with minimax/MiniMax-M2.7 with the message: Cron job "xxx" failed: FailoverError: The AI service is temporarily overloaded. Please try again in a moment.
I tried different time period and never succeed on schedule. The models can't be overloaded coz they respond at the same time in other sessions.
To be honest, this issue disturbs me since middle of May. I upgraded from 4.xx to 5.28 at that time. Before that the cron never failed like this. I tried lot's of methods to fix it but failed.
Several days ago I found this post: 91636 I upgraded it to 6.5 and the issue still happened. The ONLY difference is: Agent B tried three times automatically and the last time succeeded.
Current version: OpenClaw 2026.6.5 (5181e4f)
Operation system: macOS Tahoe 26.5.1
TecnoTalarn commentedon Jun 11, 2026
I’m reporting that the issue still persists after updating to version 2026.6.5.
I have already tried reducing the timeout duration as a workaround, but unfortunately, it did not resolve the problem. As a temporary measure, I have moved these tasks to the system's crontab instead of using the OpenClaw scheduler. While this keeps things running, it is significantly more cumbersome to manage.
I look forward to a fix for the integrated cron service. Thanks for your hard work on this.
22 remaining items
anoblet commentedon Aug 3, 2026
I am also experiencing this issue.
Dytchem commentedon Aug 14, 2026
Adding production data that may be useful to everyone in this thread (this is the same failure family we've been tracking in #121953):
On our setup, after switching the cron user-message envelope from
[cron:<jobId> <jobName>]to[Cron:(case-only change, same producer), the affected 10-minute job ran 200 consecutive runs with zero LLM request failures (2026-08-13 02:05 → 08-14 14:14 local; queried viaopenclaw cron runs --limit 200):ok/ 8error, 0 LLM stalls/timeouts. The 8 errors are all tool-layer (local file-edit failures, one subprocess failure) — the model call never failed in any of them.: keep-alivestalls (that stall shape disappeared entirely).For those still affected on 2026.6.x/2026.7.x: worth checking whether your failing cron turns' user messages carry the
[cron:...]envelope prefix — the controlled cold-cache A/B (bracket grammar vs plain text at the same position) reproduces the stall on the bracket form only. Relevant PR: #122035 ; controlled A/B evidence: https://gist.github.com/Dytchem/4ad1035e016241dd8a99211a4974244dFor yangzhe1991's timeout-race workaround (provider timeout 120s): that works around the second stall path (watchdog kill vs provider timeout ordering); the envelope fix addresses the trigger itself, so both can be relevant depending on provider.