openclaw - 💡(How to fix) Fix Isolated cron task ledger rows can miss backing session keys [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

Isolated cron jobs can create detached task ledger records with no childSessionKey because task creation reads job.sessionKey. Isolated cron jobs normally derive their backing session from cron:<jobId> at execution time instead of storing job.sessionKey.

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Problem

Isolated cron jobs can create detached task ledger records with no childSessionKey because task creation reads job.sessionKey. Isolated cron jobs normally derive their backing session from cron:<jobId> at execution time instead of storing job.sessionKey.

Impact

A successful isolated cron run can look detached from its backing cron session in task-status views or cleanup/reporting flows. Operators may see the task as missing its backing session even though the cron run completed successfully.

Expected

For isolated cron jobs without an explicit sessionKey, the task ledger should point at the stable backing cron session key: agent:<agentId>:cron:<jobId>. Per-run transcript sessions can still use the :run:<sessionId> suffix.

Repro shape

  1. Configure an isolated cron job with sessionTarget: "isolated", payload.kind: "agentTurn", and no sessionKey.
  2. Let the cron run successfully.
  3. Inspect the detached task ledger row for cron:<jobId>:<startedAt>.

Expected: childSessionKey is the backing cron session key. Actual: childSessionKey can be missing.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Isolated cron task ledger rows can miss backing session keys [1 pull requests]