openclaw - 💡(How to fix) Fix EmbeddedAttemptSessionTakeoverError: isolated cron sessions collide with active main session

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…

Isolated cron sessions (sessionTarget: "isolated") intermittently fail with EmbeddedAttemptSessionTakeoverError when the main agent session is concurrently active (e.g., user is chatting via Telegram).

Error Message

EmbeddedAttemptSessionTakeoverError: session file changed while embedded prompt lock was released: /Users/.../.openclaw/agents/main/sessions/<uuid>.jsonl

Root Cause

Isolated cron sessions (sessionTarget: "isolated") intermittently fail with EmbeddedAttemptSessionTakeoverError when the main agent session is concurrently active (e.g., user is chatting via Telegram).

Fix Action

Workaround

Shifted the cron schedule to a time when the main session is unlikely to be active.

Code Example

EmbeddedAttemptSessionTakeoverError: session file changed while embedded prompt lock was released: /Users/.../.openclaw/agents/main/sessions/<uuid>.jsonl
RAW_BUFFERClick to expand / collapse

Summary

Isolated cron sessions (sessionTarget: "isolated") intermittently fail with EmbeddedAttemptSessionTakeoverError when the main agent session is concurrently active (e.g., user is chatting via Telegram).

Error

EmbeddedAttemptSessionTakeoverError: session file changed while embedded prompt lock was released: /Users/.../.openclaw/agents/main/sessions/<uuid>.jsonl

Reproduction

  • An isolated cron job fires while the main agent session is handling an inbound message
  • The isolated session creates its own session file under agents/main/sessions/
  • Both sessions write to the journal concurrently
  • The embedded runner detects the file change and aborts

Frequency

Happens reliably when cron fires during active chat. Recent examples:

  • 2026-05-29 10:30 — exercise nudge failed (main session active)
  • 2026-05-27 10:30 — same job, same error

Jobs that fire at low-traffic times (e.g., 06:00, 02:00) never hit this.

Expected behavior

Isolated cron sessions should not share or conflict with the main agent session's journal. They should be fully independent.

Workaround

Shifted the cron schedule to a time when the main session is unlikely to be active.

Environment

  • OpenClaw 2026.5.27 (27ae826)
  • macOS (arm64), Node v24.13.0

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…

FAQ

Expected behavior

Isolated cron sessions should not share or conflict with the main agent session's journal. They should be fully independent.

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 EmbeddedAttemptSessionTakeoverError: isolated cron sessions collide with active main session