-
-
Notifications
You must be signed in to change notification settings - Fork 69.1k
[Bug]: Cron + isolated session + Feishu announce 投递失败 #32664
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingbug:crashProcess/app exits unexpectedly or hangsProcess/app exits unexpectedly or hangs
Description
Bug type
Crash (process/app exits or hangs)
Summary
问题: 在 isolated session 中使用 cron job 的 announce 模式向飞书发送消息时失败。
临时解决方案:
收到提醒请求后立即手动调用 message tool 发送,不使用 cron announce 模式。
Steps to reproduce
复现步骤:
- 创建 cron job:
openclaw cron add \
--name "测试提醒" \
--at "1m" \
--session isolated \
--message "测试消息" \
--announce \
--channel feishu \
--to "ou_xxxxx"
- 等待 cron 执行
根本原因:
isolated session 中调用 message 工具时,target 参数解析逻辑与主会话不同,导致无法正确识别 user:open_id 或 ou_xxx 格式的飞书用户 ID。
Expected behavior
期望结果:
- 消息成功投递到飞书
环境: - Channel: Feishu
- Session: isolated (cron)
- Delivery mode: announce
- 手动发消息可以成功(使用相同的 to 参数)
Actual behavior
实际结果:
- 日志报错:
[tools] message failed: Action send requires a target. - 或:
[tools] message failed: Unknown target "user" for Feishu - Cron run status: error
- 用户未收到消息
OpenClaw version
OpenClaw 2026.2.26
Operating system
MacOS 15.7.4
Install method
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingbug:crashProcess/app exits unexpectedly or hangsProcess/app exits unexpectedly or hangs
Type
Fields
Give feedbackNo fields configured for issues without a type.