Repository navigation
Description
Environment
- OpenClaw 2026.6.5
- OS: Linux 6.17.0-35-generic (x64, Ubuntu)
- Node: v24.16.0
- Model:
deepseek/deepseek-v4-flash - Channel: Telegram (direct DM)
- Gateway mode:
local
Bug 1 — sessionTarget: "main" with payload.kind: "systemEvent" silently does nothing
The cron job is created successfully (gateway logs [gateway] cron: job created). At the scheduled time, the job is never executed — no systemEvent is injected into the main session. No error in any log, no user-visible failure message. The job does not appear in cron: list after its execution window.
Bug 2 — sessionTarget: "isolated" stalls during AI model calls (model_call)
The cron job starts, an isolated session is created. The session gets stuck in state=processing with activeWorkKind=model_call. Diagnostic logs show:
classification=stalled_agent_run
reason=active_work_without_progress
lastProgressAge=135s → 165s → 195s (keeps increasing)
recovery=none
The delivery announce is never sent to Telegram. The agent never produces any output — it remains in model_call:stream_progress forever.
Bug 3 — cron: wake with mode: "now" reports success but fails
The tool API returns { "ok": true }, but the gateway sends a user-visible error message: ⚠️ ⏰ Cron: now failed. No detailed error in the logs.
What does work (workaround)
Cron isolated that runs deterministic Python scripts (no AI model calls) works perfectly. Delivery announce to Telegram is delivered successfully. Example: python3 daily_summary.py (calendar + tasks fetch, no model calls) completed in ~2s.
Relevant logs
Gateway journal:
Jun 10 08:34:08 luciano-X870 node[164032]: [gateway] cron: job created
Diagnostic (repeated every ~30s while stalled):
Jun 10 09:02:16 luciano-X870 node[164032]: [diagnostic] stalled session:
sessionId=f3d3e8bd-...
sessionKey=agent:main:cron:<id>:run:<id>
state=processing
age=166s
queueDepth=1
reason=active_work_without_progress
classification=stalled_agent_run
activeWorkKind=model_call
lastProgress=model_call:stream_progress
lastProgressAge=165s
recovery=none
cron run --force output:
{
"ok": true,
"enqueued": true,
"runId": "manual:<id>:<ts>:1"
}Then it also stalls the same way.
Expected behavior
- Cron with
sessionTarget: "main"+systemEventshould inject the event into the main session - Cron with
sessionTarget: "isolated"should be able to make AI model calls and complete normally cron: wakewithmode: "now"should either work or return a clear error- Stalled sessions should have automatic recovery or timeout
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 10, 2026
Thanks for the context here. I did a careful shell check against current
main, and this is already implemented.The reported indefinite isolated-cron stream stall, main-session event loss, and wake acknowledgement interpretation are addressed by current main code and documentation; the narrower DeepSeek latency/retry report remains separately tracked.
So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review details
Best possible solution:
Keep the finite cron-stream guard and explicit queue-acknowledgement contract; investigate the distinct DeepSeek prefix latency/retry behavior in #121953.
Do we have a high-confidence way to reproduce the issue?
No high-confidence current-main reproduction remains: the inspected isolated-run path has a finite watchdog, and the main-session path has composed real-heartbeat coverage. This read-only review did not execute a provider-backed run.
Is this the best way to solve the issue?
Yes for the reported no-recovery failure: a bounded stream watchdog at the embedded-runner owner is the maintainable repair, while a wake response correctly reports queue acceptance rather than asynchronous completion.
Security review:
Security review: No proposed patch is under review.
AGENTS.md: found and applied where relevant.
What I checked:
src/agents/embedded-agent-runner/run/llm-idle-timeout.ts:295, 69913572f4a8)src/agents/embedded-agent-runner/run/attempt-stream.ts:318, 69913572f4a8)src/agents/embedded-agent-runner/run/llm-idle-timeout.test.ts:80, 69913572f4a8)src/cron/service/timer-execution.ts:292, 69913572f4a8)docs/automation/cron-jobs.md. (docs/automation/cron-jobs.md:738, 69913572f4a8)src/agents/embedded-agent-runner/run/llm-idle-timeout.ts:218, 215be4e4ee20)Likely related people:
src/agents/embedded-agent-runner/run/llm-idle-timeout.ts,src/agents/embedded-agent-runner/run/llm-idle-timeout.test.ts)src/cron/service/timer-execution.ts,src/cron/service/wake.ts,docs/automation/cron-jobs.md)Codex review notes: model internal, reasoning high; reviewed against d47a684a37c9; fix evidence: commit 69913572f4a8, main fix timestamp 2026-08-29T00:15:50-07:00.
FBfvis commentedon Jul 1, 2026
I am coming from #98647, which was closed as a duplicate of this issue.
I can confirm that this still reproduces on OpenClaw app version
v2026.6.11.My environment:
lightContext: falseObserved behavior:
model_call:stream_progressThis suggests the full chain is not completely broken, but DeepSeek isolated cron streaming is unstable or intermittently stalls. The retry path can recover, but the first run may still hang for several minutes before timeout.
The same DeepSeek provider works normally in the main chat session.
42 remaining items