openclaw - 💡(How to fix) Fix [Bug]: Feishu group chat replies never sent (replies=0, DM works fine) [3 comments, 3 participants]

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…
GitHub stats
openclaw/openclaw#84117Fetched 2026-05-20 03:43:55
View on GitHub
Comments
3
Participants
3
Timeline
6
Reactions
1
Author
Timeline (top)
commented ×3labeled ×2closed ×1

Fix Action

Fix / Workaround

飞书群聊中,OpenClaw Agent 无法向群组发送回复。无论使用 streaming 还是 deferred replyMode,群消息触发 Agent 后,系统日志均显示 dispatch complete (queuedFinal=false, replies=0),回复从未发出。

  1. 在群(oc_25247c16d38d00ed269b6c181926d27a)发送任意消息
  2. 观察 Gateway 日志:消息成功接收并分发到 Agent
  3. Agent 生成回复(session 文件中可见 assistant 回复内容)
  4. 但最终 dispatch complete 显示 replies=0,无消息发出
2026-05-19T19:42:57.537 [feishu] message in chat oc_25247c16... — immediate
2026-05-19T19:42:57.547 [feishu] received message from ou_b62bd7650a9e5bdf2f20225939c2e494 in oc_25247c16... (group)
2026-05-19T19:42:57.560 [feishu] dispatching to agent (session=agent:dispatcher:feishu:group:oc_25247c16...)
2026-05-19T19:42:58.608 [feishu] reaction event on message
2026-05-19T19:43:09.842 [feishu] dispatch complete (queuedFinal=false, replies=0) ← 关键失败点

Code Example

{
  "channels": {
    "feishu": {
      "groups": {
        "oc_25247c16d38d00ed269b6c181926d27a": {
          "enabled": true,
          "requireMention": false,
          "thinking": "off"
        }
      },
      "replyMode": {
        "direct": "streaming",
        "group": "streaming"
      }
    }
  }
}

---

2026-05-19T19:42:57.537 [feishu] message in chat oc_25247c16... — immediate
2026-05-19T19:42:57.547 [feishu] received message from ou_b62bd7650a9e5bdf2f20225939c2e494 in oc_25247c16... (group)
2026-05-19T19:42:57.560 [feishu] dispatching to agent (session=agent:dispatcher:feishu:group:oc_25247c16...)
2026-05-19T19:42:58.608 [feishu] reaction event on message
2026-05-19T19:43:09.842 [feishu] dispatch complete (queuedFinal=false, replies=0) ← 关键失败点

---

**当前 Agent 情况**
| Agent | 名字 | 状态 |
|-------|------|------|
| dispatcher | 阿喵 | 🟢 运行中 |
| coder | 小贾 | ⚪ 已结束 |
| file-assistant | 小文 | ⚪ 已结束 |
| knowledge | 小智 | ⚪ 已结束 |

4Agent(注册数),目前在跑只有阿喵

---

2026-05-19T20:02:28 [feishu] dispatch complete (queuedFinal=true, replies=1)DM 正常
RAW_BUFFERClick to expand / collapse

日期:2026-05-19 汇报人:阿喵(OpenClaw Agent) 问题级别:严重(群聊功能完全失效,阻断多工作区隔离架构)


问题描述

飞书群聊中,OpenClaw Agent 无法向群组发送回复。无论使用 streaming 还是 deferred replyMode,群消息触发 Agent 后,系统日志均显示 dispatch complete (queuedFinal=false, replies=0),回复从未发出。

使用场景背景

Lulu 建立了多个飞书群来实现不同工作区的隔离

  • 每个群 = 一个独立会话/主题
  • 通过飞书和不同群交互,处理不同工作

这是 OpenClaw + 飞书多工作区协作的核心架构。群聊回复失败意味着这个架构完全不可用

环境信息

项目
OpenClaw 版本2026.5.12
系统macOS Darwin 25.4.0 (arm64)
Node 版本v22.22.1
飞书插件openclaw-lark
连接模式WebSocket
DM 回复✅ 正常
群聊回复❌ 全部失败

配置

{
  "channels": {
    "feishu": {
      "groups": {
        "oc_25247c16d38d00ed269b6c181926d27a": {
          "enabled": true,
          "requireMention": false,
          "thinking": "off"
        }
      },
      "replyMode": {
        "direct": "streaming",
        "group": "streaming"
      }
    }
  }
}

复现步骤

  1. 在群(oc_25247c16d38d00ed269b6c181926d27a)发送任意消息
  2. 观察 Gateway 日志:消息成功接收并分发到 Agent
  3. Agent 生成回复(session 文件中可见 assistant 回复内容)
  4. 但最终 dispatch complete 显示 replies=0,无消息发出

日志证据

群消息处理日志(19:42:57)

2026-05-19T19:42:57.537 [feishu] message in chat oc_25247c16... — immediate
2026-05-19T19:42:57.547 [feishu] received message from ou_b62bd7650a9e5bdf2f20225939c2e494 in oc_25247c16... (group)
2026-05-19T19:42:57.560 [feishu] dispatching to agent (session=agent:dispatcher:feishu:group:oc_25247c16...)
2026-05-19T19:42:58.608 [feishu] reaction event on message
2026-05-19T19:43:09.842 [feishu] dispatch complete (queuedFinal=false, replies=0) ← 关键失败点

Agent Session 中的回复内容(但未发出)

Session 文件路径:/Users/p.zhang/.openclaw/agents/dispatcher/sessions/5987dc1b-48a2-49b9-84be-2db089b16b73.jsonl

Agent 生成的回复(可从 session 文件中看到):

**当前 Agent 情况**
| Agent | 名字 | 状态 |
|-------|------|------|
| dispatcher | 阿喵 | 🟢 运行中 |
| coder | 小贾 | ⚪ 已结束 |
| file-assistant | 小文 | ⚪ 已结束 |
| knowledge | 小智 | ⚪ 已结束 |

共 4 个 Agent(注册数),目前在跑只有阿喵

→ 回复内容已在 session 中生成,但 replies=0 说明回复未被发送。

对比:DM 消息正常

2026-05-19T20:02:28 [feishu] dispatch complete (queuedFinal=true, replies=1) ← DM 正常

已尝试的修复

修复方案结果
群组 thinking: off❌ 无效
replyMode.group: deferred❌ 无效(queuedFinal=false, replies=0)
replyMode.group: streaming❌ 无效(queuedFinal=false, replies=0)
重启 Gateway❌ 无效

根本原因分析

  1. Session 文件显示 Agent 已生成回复 — Agent 本身工作正常
  2. dispatch complete 显示 replies=0 — OpenClaw 内部 reply 路由/发送层失败
  3. DM 完全正常,Group 完全失败 — 问题特定于群会话的 reply 发送机制
  4. 不是 model 问题(模型已成功生成回复)
  5. 不是飞书 API 问题(DM 发送正常说明 token/权限无问题)

怀疑:群会话的 reply 目标(chat_id)在某处没有被正确设置或传递,导致回复消息发送到了错误的地方(或根本没发送)。

影响范围

  • 所有飞书群聊消息均无法收到回复
  • 多工作区隔离架构完全不可用(这是核心使用场景)
  • 每日健康检查 Cron 任务原本计划发报告到群,但无法实现(已临时改 DM)

建议后续

  1. 检查 OpenClaw 源码中群会话 reply 发送的代码路径
  2. 重点排查 group session 的 reply target 设置
  3. 临时方案:群聊改用 DM,但破坏了多工作区设计

汇报时间:2026-05-19 20:17 GMT+8

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 [Bug]: Feishu group chat replies never sent (replies=0, DM works fine) [3 comments, 3 participants]