openclaw - 💡(How to fix) Fix Cron job delivery missing `to` field for openclaw-weixin

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…

Error Message

When creating one-off cron jobs (scheduled tasks) targeting the openclaw-weixin channel, the delivery.to field is occasionally not populated, causing the job to fail with a "requires target" error at execution time. 3. When the job triggers, it fails with error: "Delivering to openclaw-weixin requires target" In my instance, 5 out of ~20 openclaw-weixin cron jobs were affected. All failed silently with error status and no delivery.

Fix Action

Workaround

Manually edit ~/.openclaw/cron/jobs.json to add the missing to field: "to": "[email protected]"

Code Example

{
  "delivery": {
    "mode": "announce",
    "channel": "openclaw-weixin",
    "accountId": "5777c963aa4d-im-bot"
  }
}

---

{
  "delivery": {
    "mode": "announce",
    "channel": "openclaw-weixin",
    "to": "[email protected]",
    "accountId": "5777c963aa4d-im-bot"
  }
}
RAW_BUFFERClick to expand / collapse

Bug Description

When creating one-off cron jobs (scheduled tasks) targeting the openclaw-weixin channel, the delivery.to field is occasionally not populated, causing the job to fail with a "requires target" error at execution time.

Affected Version

OpenClaw v2026.4.26 (17c3fa238f70)

Reproduction Steps

  1. Create a one-off cron job with delivery.channel: "openclaw-weixin" and delivery.mode: "announce"
  2. Leave delivery.to unspecified during creation
  3. When the job triggers, it fails with error: "Delivering to openclaw-weixin requires target"

Expected Behavior

When delivery.channel is set to openclaw-weixin and the session context has a known chat ID (e.g. [email protected]), the delivery.to field should be automatically populated with the session's chat ID.

Actual Behavior

The delivery.to field is sometimes missing from the saved job configuration.

Broken job (missing to):

{
  "delivery": {
    "mode": "announce",
    "channel": "openclaw-weixin",
    "accountId": "5777c963aa4d-im-bot"
  }
}

Working job (has to):

{
  "delivery": {
    "mode": "announce",
    "channel": "openclaw-weixin",
    "to": "[email protected]",
    "accountId": "5777c963aa4d-im-bot"
  }
}

Impact

In my instance, 5 out of ~20 openclaw-weixin cron jobs were affected. All failed silently with error status and no delivery.

Workaround

Manually edit ~/.openclaw/cron/jobs.json to add the missing to field: "to": "[email protected]"

Suggested Fix

In the cron job creation flow (likely in the API handler or UI form submission), when delivery.channel === "openclaw-weixin" and the request originates from an active weixin session, automatically populate delivery.to from the session's chat_id / user_id.

This is similar to how the accountId is correctly auto-populated in some cases — the to field should follow the same pattern.

Environment

  • OS: Linux 6.8.0-100-generic (x64)
  • Node: v24.14.0
  • OpenClaw: v2026.4.26
  • Channel: openclaw-weixin

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 Cron job delivery missing `to` field for openclaw-weixin