Cron Delivery Fix
/install cron-delivery-fix
Cron Delivery Fix
Diagnose and fix OpenClaw cron job message delivery failures. Uses scripted operations to prevent manual configuration errors.
Trigger Conditions
- User reports "didn't receive scheduled task message"
- Cron status shows
deliveredbut user didn't receive it - Cron status shows
not-delivered - Need to batch-check/fix all cron delivery configs
Core Lessons (Historical Incident Log)
This issue recurred on multiple dates. Each manual fix introduced new problems:
- Session context: Isolated session cron jobs lack contextToken, causing silent message failures
- Missing params: Some tasks were missing
to/channel/accountId, resulting in incomplete delivery - Config wipe: Manual
--no-deliveraccidentally cleared delivery configs; wrong--sessioncaused invalid combinations
Root cause: Manually running openclaw cron edit one by one easily misses parameters or creates illegal configs.
Solution: Use scripts for unified management. Never manually edit cron session/delivery fields.
Delivery Config Specification
Valid Config Combinations
| sessionTarget | payload.kind | delivery.mode | Description |
|---|---|---|---|
| isolated | agentTurn | announce | AI executes + cron auto-delivers summary (requires complete to/channel/accountId) |
| isolated | agentTurn | none | AI self-delivers via message tool (must include send params in prompt) |
| main | systemEvent | none | Triggers in main session (no independent delivery) |
Invalid Configurations
| Combination | Error Reason |
|---|---|
| main + agentTurn | Gateway rejects: main cron jobs require payload.kind="systemEvent" |
| announce + missing to | No delivery target, message cannot be sent |
| announce + missing accountId | Multi-account setups deliver to wrong account |
| none + agent in isolated session | AI's message tool lacks contextToken in isolated session |
Standard Template for Delivery Tasks
All cron jobs that need to send messages to users must have:
sessionTarget: isolated
payload.kind: agentTurn
delivery.mode: announce
delivery.channel: \x3Cyour-channel-id>
delivery.to: \x3Cyour-user-id>
delivery.accountId: \x3Cyour-account-id>
Standard Template for Silent Tasks
Tasks that don't need to send messages:
sessionTarget: isolated
payload.kind: agentTurn
delivery.mode: none
Operation Flow
Step 1: Diagnose
bash skills/cron-delivery-fix/scripts/diagnose.sh
Outputs delivery status of all cron jobs, flagging problematic ones.
Step 2: Fix
# Fix a single job
bash skills/cron-delivery-fix/scripts/fix-single.sh \x3Cjob-id> [--announce|--silent]
# Fix all delivery-type jobs
bash skills/cron-delivery-fix/scripts/fix-all.sh
# Restore a broken job (with valid config)
bash skills/cron-delivery-fix/scripts/restore.sh \x3Cjob-id>
Step 3: Verify
# Run diagnosis again to confirm no issues
bash skills/cron-delivery-fix/scripts/diagnose.sh
# Manual trigger test
openclaw cron run \x3Cjob-id>
Prohibited Operations
- Never manually use
openclaw cron edit --session mainon agentTurn-type tasks - Never use
--no-deliverto clear delivery config then re-add params one by one (easy to miss params) - Never modify cron config without validating the combination is legal
- Never fix cron without running
diagnose.shto verify afterwards
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install cron-delivery-fix - After installation, invoke the skill by name or use
/cron-delivery-fix - Provide required inputs per the skill's parameter spec and get structured output
What is Cron Delivery Fix?
Diagnose and fix OpenClaw cron job delivery failures. Script-based approach to prevent manual config errors. Fixes silent delivery failures, missing delivery... It is an AI Agent Skill for Claude Code / OpenClaw, with 61 downloads so far.
How do I install Cron Delivery Fix?
Run "/install cron-delivery-fix" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Cron Delivery Fix free?
Yes, Cron Delivery Fix is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Cron Delivery Fix support?
Cron Delivery Fix is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Cron Delivery Fix?
It is built and maintained by Shimon Xin (@shimonxin); the current version is v1.0.1.