Skip to content

[Bug]: Cron + isolated session + Feishu announce 投递失败 #32664

@mcyami

Description

@mcyami

Bug type

Crash (process/app exits or hangs)

Summary

问题: 在 isolated session 中使用 cron job 的 announce 模式向飞书发送消息时失败。

临时解决方案:
收到提醒请求后立即手动调用 message tool 发送,不使用 cron announce 模式。

Steps to reproduce

复现步骤:

  1. 创建 cron job:
openclaw cron add \
  --name "测试提醒" \
  --at "1m" \
  --session isolated \
  --message "测试消息" \
  --announce \
  --channel feishu \
  --to "ou_xxxxx"
  1. 等待 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:crashProcess/app exits unexpectedly or hangs

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions