openclaw - 💡(How to fix) Fix [Bug]: 定时任务微信投递失败 [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

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…
GitHub stats
openclaw/openclaw#54303Fetched 2026-04-08 01:29:16
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×2commented ×1cross-referenced ×1

Error Message

deliveryStatus: "unknown" error: "Delivering to 腾讯通路 requires target"

Code Example

deliveryStatus: "unknown"
error: "Delivering to 腾讯通路 requires target"

---

"delivery": {
  "mode": "announce",
  "channel": "weixin",
  "to": "[email protected]"
}

---
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Summary

问题描述

OpenClaw 定时任务执行成功,但消息无法推送到微信用户。

环境信息

  • 平台:macOS (Darwin 24.1.0 arm64)
  • OpenClaw 版本:2026.3.13 (61d171a)
  • 通道:weixin / wechat-access

Steps to reproduce

复现步骤

  1. 创建定时任务,设置 delivery 投递到微信
  2. 任务按时执行,数据获取成功
  3. 系统显示 deliveryStatus: "delivered" 或 "unknown"
  4. 用户实际未收到任何微信消息

Expected behavior

OpenClaw 定时任务执行成功

Actual behavior

错误日志

deliveryStatus: "unknown"
error: "Delivering to 腾讯通路 requires target"

即使配置了正确的 to 参数:

"delivery": {
  "mode": "announce",
  "channel": "weixin",
  "to": "[email protected]"
}

消息仍然无法送达。

对比测试

  • 手动通过 message 工具发送:✅ 成功,用户能收到
  • 定时任务自动投递:❌ 失败,用户收不到

影响

定时任务功能对微信用户不可用,功能形同虚设。

建议

检查 weixin/wechat-access 通道的投递逻辑,特别是 delivery 模块如何调用 message 发送。

OpenClaw version

2026.3.13 (61d171a)

Operating system

macOS (Darwin 24.1.0 arm64)

Install method

No response

Model

minimax

Provider / routing chain

weixin / wechat-access

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

Fix Plan

To resolve the issue of messages not being delivered to WeChat users, we need to modify the delivery logic in the weixin/wechat-access channel.

Here are the steps:

  • Check the delivery module to ensure it correctly handles the to parameter.
  • Verify that the to parameter is being passed correctly to the message sending function.
  • Update the delivery module to handle cases where the target is required for delivering to 腾讯通路.

Example code changes:

# In delivery module
def deliver_message(message, to, channel):
    if channel == 'weixin' and 'target' not in message:
        # Handle the case where target is required
        message['target'] = to
    # Rest of the delivery logic

# In weixin/wechat-access channel
def send_message(message):
    delivery_module.deliver_message(message, message['to'], 'weixin')

Verification

To verify that the fix worked:

  • Create a new timed task with the updated delivery module.
  • Set the task to deliver to a WeChat user.
  • Check if the user receives the message.
  • Verify that the deliveryStatus is updated correctly.

Extra Tips

  • Ensure that the to parameter is correctly configured in the task settings.
  • Test the message sending function separately to ensure it works as expected.
  • Consider adding logging to the delivery module to track any issues that may arise during message delivery.

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

OpenClaw 定时任务执行成功

Still need to ship something?

×6

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

Back to top recommendations

TRENDING