Repository navigation
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Bug Report
All sessionTarget: "isolated" cron jobs fail immediately with:
TypeError: Cannot read properties of undefined (reading 'sourceReplyDeliveryMode')
First appeared: 2026.5.18 (May 18, 2026)
Still present: 2026.5.19
Last working: 2026.5.12
Details
- Jobs fail in ~90-250ms — the agent never starts
- The error occurs in the isolated agent runner initialization, before any agent turn begins
- Affects ALL isolated cron jobs regardless of:
deliverymode (noneorannounce)sessionKeypresencewakeMode(nowornext-heartbeat)
- Jobs with
sessionTarget: "main"(systemEvent payload) are unaffected
Working vs Broken Comparison
| Job | sessionTarget | Delivery | Status |
|---|---|---|---|
| Monday Pipeline | isolated | announce | ✅ Last ran successfully May 18 8 AM (before update) |
| Friday Review | isolated | none | ✅ Last ran successfully May 16 3 PM |
| Morning Briefing | isolated | none → announce | ❌ Failing since May 18 |
| Lead Response Monitor | isolated | none → announce | ❌ Failing since May 18 |
| Daily Content Scrape | isolated | none → announce | ❌ Failing since May 18 |
| Daily Note Generator | isolated | announce | ❌ Never ran (created after regression) |
| Jesse Sadlowski Prep | main (systemEvent) | n/a | ✅ Not yet due |
Reproduction
- Create any cron job with
sessionTarget: "isolated"andpayload.kind: "agentTurn" - Trigger it (scheduled or manual
cron run) - Observe immediate failure with
sourceReplyDeliveryModeerror
Environment
- macOS 15.x (Apple Silicon)
- Node v25.9.0
- OpenClaw 2026.5.19 (installed via npm)
- Model: zai/glm-5
- Channel: Telegram
Run History (example job)
Last successful run: 2026-05-17 08:00 MDT — completed in 17s, glm-5, normal usage
First failed run: 2026-05-18 08:00 MDT — failed in 148ms with the undefined error
All subsequent runs: same error, same ~100-250ms duration
Reacted by clawsweeper and Art Bandin
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon May 21, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 19, 2026, 9:21 PM ET / 01:21 UTC.
Summary
Keep open: current
mainand the latest release still contain the unguarded isolated-cronsourceDeliverydereference, and the linked closing PR at #85249 is open rather than merged.Reproducibility: Partially. Source inspection shows the executor still dereferences
params.sourceDelivery.sourceReplyDeliveryMode, matching an omitted-sourceDeliverycrash, but this review did not run a live packaged cron job against currentmain.Root-cause cluster
Relationship:
canonicalCanonical: #85051
Summary: This issue is the active canonical report for the isolated cron
sourceReplyDeliveryModecrash, with an open linked PR as the candidate fix and closed duplicates carrying the same symptom.Members:
fixed_by_candidate: fix(cron): guard against undefined sourceDelivery in isolated executor #85249 - The open PR uses closing syntax for this issue and directly guards the missingsourceDeliveryexecutor path.duplicate: [Bug]: Cron job with agentTurn payload fails: TypeError reading 'sourceReplyDeliveryMode' #84939 - Closed issue reports a cronagentTurnTypeError readingsourceReplyDeliveryMode.duplicate: [Bug]: Cron job with agentTurn payload fails with TypeError: Cannot read properties of undefined #85178 - Closed issue reports the same cronagentTurnTypeError around undefined source delivery state.duplicate: Bug: agentTurn cron jobs crash on sourceReplyDeliveryMode (v2026.5.22) #86862 - Closed issue reports the same cron crash onsourceReplyDeliveryModein v2026.5.22.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Ways to help us reproduce this
Next step
No new repair lane should start while an open closing PR already targets this crash.
Review details
Best possible solution:
Review and land or replace #85249, then close this issue after the fix reaches
main.Do we have a high-confidence way to reproduce the issue?
Partially. Source inspection shows the executor still dereferences
params.sourceDelivery.sourceReplyDeliveryMode, matching an omitted-sourceDeliverycrash, but this review did not run a live packaged cron job against currentmain.Is this the best way to solve the issue?
Yes for triage. Keeping this issue open while maintainers review the linked fix PR is the narrowest path; a new automated fix PR would duplicate the existing candidate.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
sourceDeliverycrash shape.Codex review notes: model internal, reasoning high; reviewed against 50b5238b3895.
Label changes
Label justifications:
P1: The issue reports a regression that prevents isolated scheduled agent jobs from starting.impact:crash-loop: Affected cron jobs repeatedly fail immediately during isolated runner initialization.Evidence reviewed
What I checked:
createCronPromptExecutorstill readsparams.sourceDelivery.sourceReplyDeliveryModedirectly, so an executor call with omittedsourceDeliverymatches the reported TypeError. (src/cron/isolated-agent/run-executor.ts:246, 50b5238b3895)prepared.context.sourceDeliveryintoexecuteCronRun, which narrows the suspected failing shape to a stale or version-skew executor call rather than the ordinary current-source call path. (src/cron/isolated-agent/run.ts:1468, 50b5238b3895)v2026.6.8contains the same directparams.sourceDelivery.sourceReplyDeliveryModeread. (src/cron/isolated-agent/run-executor.ts:246, 844f405ac1be)HEADnorv2026.6.8containssource-delivery-fallbackorrun.source-deliveryguard files under the isolated cron agent path. (src/cron/isolated-agent, 50b5238b3895)sourceDelivery. (4aa60ff3e934)4c613fbfe05f4dc7ee66dfffa5bc48dc3f370816centralized cron source-delivery planning and introduced the executor boundary usingparams.sourceDelivery.sourceReplyDeliveryMode. (src/cron/isolated-agent/run-executor.ts:156, 4c613fbfe05f)Likely related people:
steipete, and that commit madesourceDeliverythe executor boundary field named by the crash. (role: introduced source-delivery refactor; confidence: high; commits: 4c613fbfe05f; files:src/cron/isolated-agent/run.ts,src/cron/isolated-agent/run-executor.ts,src/cron/isolated-agent/run.message-tool-policy.test.ts)obviyusdefine semantics that the linked guard needs to preserve. (role: adjacent cron delivery contributor; confidence: medium; commits: 49ae60d6cae1, 13a0d7a9e035; files:src/cron/isolated-agent/run.ts,src/cron/isolated-agent/run.message-tool-policy.test.ts)sourceDeliveryisolated cron crash and adds fallback tests. (role: linked fix PR author; confidence: high; commits: 4aa60ff3e934; files:src/cron/isolated-agent/source-delivery-fallback.ts,src/cron/isolated-agent/run.source-delivery-guard.test.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.ai-freer commentedon Jun 25, 2026
Adding a clean-deployment data point in case it helps narrow the repro shape.
Environment
2026.6.10(commitaa69b12), installed vianpm install -g openclaw@2026.6.10apply-patches.shonExecStartPre; none touch therun.ts↔run-executor.tslazy-import boundary or theSourceDeliveryPlanshapeObservation
20 active cron jobs, all
payload.kind: "agentTurn"(sessionTargetmix ofisolatedandsession:...), running for ~24h since upgrade:lastRunStatus: "ok"— including representative agentTurn crons likewiki-daily-compile,todo-health-morning/evening,warm-compress-daily-dryrun,self-improving-daily-reflection,weekly-signal-digest,memory-health-check-weekly,storage-patrol-weekly,weekly-cross-system-digestmonthly-retro) — unrelated, a model-routing context blowup (claude-opus-4-7pulled ~2M input tokens); nosourceReplyDeliveryModeTypeErrorReading
This is consistent with the PR #85249 problem statement: the unguarded
params.sourceDelivery.sourceReplyDeliveryModedereference is still in currentmain/v2026.6.10(src/cron/isolated-agent/run-executor.ts), but a cleannpminstall + cleandistdoes not trigger it in the normal isolated cron path becauserun.tspassesprepared.context.sourceDeliveryinto the executor.The bug is present-but-conditional: it needs a path that bypasses the
run.tsplanner (partial build, stale compiled JS, ESM module cache holding old executor shape, or out-of-tree callers).Not claiming this is harmless — the unguarded dereference is still worth fixing, and #85249's fallback planner is the right shape. Just adding evidence that clean
2026.6.xdeployments aren't reproducing the crash, which may explain the lack of new reports.