openclaw - 💡(How to fix) Fix Feishu: @所有人 not delivered to bot + requireMention:false causes multi-bot echo loop [2 comments, 2 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#74817Fetched 2026-05-01 05:41:02
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
2
Timeline (top)
commented ×2mentioned ×2closed ×1cross-referenced ×1

Root Cause

Root cause (suspected): Feishu's API does not send @所有人 as a distinct event type. It expands @所有人 into individual mention events for each group member. OpenClaw's Feishu channel handler receives individual mention events but has no way to detect the original intent was an @所有人 call. There is no mention_type: "everyone" field in the received payload.

Fix Action

Fix / Workaround

Current workarounds:

  • Set requireMention: true for all but one bot (so only the mentioned bot responds)
  • Use separate groups for each bot
  • Add logic to detect and ignore bot-authored messages

Code Example

User → message
Bot-A responds
Bot-B sees Bot-A's message → responds
Bot-A sees Bot-B's message → responds again
...infinite loop

---

"ignoreOtherBots": true

---

{
  "channels": {
    "feishu": {
      "accounts": {
        "yingbot": {
          "dmPolicy": "allowlist",
          "groupAllowFrom": ["oc_xxxxxxxx", "oc_yyyyyyyy", "oc_zzzzzzzz"],
          "groupPolicy": "allowlist",
          "requireMention": false
        },
        "consulting-bot": {
          "dmPolicy": "open",
          "groupAllowFrom": ["oc_xxxxxxxx"],
          "groupPolicy": "allowlist",
          "requireMention": false
        }
      }
    }
  }
}
RAW_BUFFERClick to expand / collapse

Feishu (飞书) Bot: @所有人 Not Received + Multi-Bot Echo Loop

Issue Summary

Two related problems with Feishu group chat bot configuration in OpenClaw:


Problem 1: @所有人 ( @everyone ) Not Delivered to Bot

Severity: Medium

Description: When a user mentions @所有人 in a Feishu group, the bot does not receive the event. Even when requireMention: false is configured, @所有人 consistently fails to trigger the bot, making it effectively unusable as a group-wide announcement mechanism.

Expected behavior: Bot should receive and respond to @所有人 mentions, same as individual @bot_name mentions.

Actual behavior: Bot silently ignores @所有人 — no event arrives at OpenClaw.

Root cause (suspected): Feishu's API does not send @所有人 as a distinct event type. It expands @所有人 into individual mention events for each group member. OpenClaw's Feishu channel handler receives individual mention events but has no way to detect the original intent was an @所有人 call. There is no mention_type: "everyone" field in the received payload.


Problem 2: requireMention: false Causes Bot Echo Loop in Multi-Bot Groups

Severity: High

Description: When multiple bots are in the same Feishu group with requireMention: false, any user message triggers ALL bots to respond. Bot responses then trigger each other in an endless loop:

User → message
  → Bot-A responds
    → Bot-B sees Bot-A's message → responds
      → Bot-A sees Bot-B's message → responds again
        → ...infinite loop

This also results in response contamination — bots read each other's outputs as conversation context, corrupting the actual user's thread.

Affected configuration: All bots in the same group with requireMention: false and no groupPolicy: "allowlist" entry preventing them from seeing each other's messages.

Current workarounds:

  • Set requireMention: true for all but one bot (so only the mentioned bot responds)
  • Use separate groups for each bot
  • Add logic to detect and ignore bot-authored messages

Requested feature: A built-in way to configure "ignore messages from other bots" per account, e.g.:

"ignoreOtherBots": true

Or a groupPolicy option like "bots": "ignore" to prevent bot-to-bot message loops without requiring requireMention: true.


Environment

  • OpenClaw version: (latest)
  • Feishu channel
  • Multiple accounts/bots in same group
  • WebSocket connection mode (connectionMode: "websocket")

Relevant Config

{
  "channels": {
    "feishu": {
      "accounts": {
        "yingbot": {
          "dmPolicy": "allowlist",
          "groupAllowFrom": ["oc_xxxxxxxx", "oc_yyyyyyyy", "oc_zzzzzzzz"],
          "groupPolicy": "allowlist",
          "requireMention": false
        },
        "consulting-bot": {
          "dmPolicy": "open",
          "groupAllowFrom": ["oc_xxxxxxxx"],
          "groupPolicy": "allowlist",
          "requireMention": false
        }
      }
    }
  }
}

Tags

feishu, group-chat, mention, everyone, multi-bot, echo-loop

extent analysis

TL;DR

To address the Feishu bot issues, consider setting requireMention: true for all but one bot in a group or implementing logic to ignore bot-authored messages.

Guidance

  • Verify the Feishu API documentation to confirm if there's an official way to handle @所有人 mentions, as the current behavior suggests it expands into individual mention events.
  • Implement a custom solution to detect and handle @所有人 mentions, potentially by tracking the original message content or using a unique identifier.
  • To prevent the bot echo loop, set requireMention: true for all but one bot in the group, or use separate groups for each bot.
  • Consider adding a groupPolicy option like "bots": "ignore" to prevent bot-to-bot message loops without requiring requireMention: true.

Example

No code snippet is provided as the issue lacks specific implementation details, but a potential solution could involve checking the message content for @所有人 and handling it accordingly.

Notes

The provided configuration and environment details suggest that the issues are related to the Feishu channel and multi-bot setup. However, without further information on the Feishu API and OpenClaw's Feishu channel handler, a definitive solution cannot be provided.

Recommendation

Apply a workaround by setting requireMention: true for all but one bot in the group, as this is a straightforward and effective way to prevent the bot echo loop.

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