Skip to content

Feishu group messages receive replies=0 after upgrading to 2026.5.3 #77666

Closed

Description

@fuermos

Problem

After upgrading to OpenClaw 2026.5.3, Feishu group chat messages are received by the agent but no reply is sent back to Feishu.

Symptoms

  • Group message received → dispatch complete replies=0
  • Direct messages work fine (replies=2, replies=4)
  • Agent generates reply (confirmed via session file) but Feishu channel receives nothing
  • Downgrading to 2026.5.2 resolves the issue

Log excerpt

feishu[default]: received message from ou_xxx in oc_208152848b7fc8ba24219cad05c915d1 (group)
feishu[default]: dispatching to agent (session=agent:main:feishu:group:oc_208152848b7fc8ba24219cad05c915d1)
feishu[default]: dispatch complete (queuedFinal=false, replies=0)

Configuration

  • OpenClaw: 2026.5.3 (reproduced)
  • Feishu: WebSocket mode, requireMention: false, groupPolicy: open
  • Downgrade to 2026.5.2 fixes it

Agent session confirms reply was generated

role: assistant, stopReason: stop, usage: {input: 22572, output: 225}

So the agent produces a reply but it never reaches the Feishu channel.

Environment

  • OpenClaw: 2026.5.3
  • Node: 24.15.0
  • OS: Linux
  • Feishu channel: WebSocket

Fix

Downgrading to 2026.5.2 restores group chat functionality.

Expected behavior

Group chat should work the same as in 2026.5.2.

Activity

  1. clawsweeper commented on May 5, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I did a careful shell check against current main, and this is already implemented.

    The Feishu group queuedFinal=false, replies=0 regression is fixed on current main and shipped: normal group replies default back to automatic delivery, and the merged Feishu fallback repair covers accepted turns that complete without visible output.

    I found the merged PR that appears to have closed this: #87896: fix(feishu): fallback when accepted turns send no visible reply.

    So I’m closing this as already implemented rather than keeping a duplicate issue open.

    Review details

    Best possible solution:

    Keep the shipped v2026.6.1+ implementation and route any new Feishu replies=0 reports by their specific current surface, such as the separate open P2P/DM report, rather than keeping this 2026.5.3 group default regression open.

    Do we have a high-confidence way to reproduce the issue?

    Yes. The issue and follow-up comments give a concrete 2026.5.x regression path, and current source/tests show the implicated delivery-mode suppression and Feishu no-visible fallback behavior that now prevents the reported group silence class.

    Is this the best way to solve the issue?

    Yes. The implemented fix is the maintainable owner-boundary solution: shared code restores automatic normal group delivery and exposes dispatch metadata, while Feishu owns the channel-specific no-visible fallback instead of rereading transcripts or bypassing policy.

    Security review:

    Security review: This is an issue cleanup review without a patch diff, so no patch security review applies.

    AGENTS.md: found and applied where relevant.

    What I checked:

    • Current source: group replies no longer default to suppression: Current main resolves normal group/channel source replies to automatic unless messages.groupChat.visibleReplies or global messages.visibleReplies explicitly requests message_tool; this matches the workaround that restored replies for affected users. (src/auto-reply/reply/source-reply-delivery-mode.ts:91, a189baa4b344)
    • Current test: default group turns are visible: Regression coverage asserts an empty config plus group chat produces automatic delivery and does not suppress source replies. (src/auto-reply/reply/source-reply-delivery-mode.test.ts:397, a189baa4b344)
    • Current source: Feishu no-visible fallback gate: Feishu now calls ensureNoVisibleReplyFallback after a dispatched turn settles with no queued/counted visible final reply, while excluding policy-denied or intentional message-tool-only turns. (extensions/feishu/src/bot.ts:1851, a189baa4b344)
    • GitHub provenance: merged Feishu fallback PR: The related PR merged as 7c15c27 on 2026-05-31T20:33:14Z and its branch commits added the fallback, empty streaming/card close coverage, and active broadcast zero-final coverage discussed in this issue. (7c15c2765ebb)
    • Git history provenance: merge commit details: The merge commit subject is fix(feishu): fallback when accepted turns send no visible reply (#87896), tying the current Feishu fallback implementation to the merged repair line referenced in the issue comments. (7c15c2765ebb)
    • Release provenance: first stable release contains the fix: GitHub compare reports v2026.6.1 is ahead of 7c15c27 with that merge commit as the merge base, so the fix is included in the published v2026.6.1 stable release and later releases. (7c15c2765ebb)

    Likely related people:

    • ArthurNie: Provided the production Feishu no-visible-reply context and authored the original PR branch commit that added fallback behavior for accepted turns with no visible output. (role: incident reporter and source implementation author; confidence: medium; commits: 7b14e4d82408, 7c15c2765ebb; files: extensions/feishu/src/bot.ts, extensions/feishu/src/reply-dispatcher.ts, src/auto-reply/reply/dispatch-from-config.ts)
    • steipete: Authored the follow-up commits that covered the remaining functional gaps noted in the issue comments and merged the Feishu fallback PR. (role: recent repair contributor and merger; confidence: high; commits: 15876911b608, 7834e3e987a3, 7c15c2765ebb; files: extensions/feishu/src/bot.ts, extensions/feishu/src/bot.broadcast.test.ts, extensions/feishu/src/reply-dispatcher.ts)
    • vincentkoc: Current local blame in this grafted checkout attributes the Feishu fallback predicate and source-reply resolver lines to the current snapshot commit, so this is a weak but useful routing signal for adjacent current-main questions. (role: recent area contributor in current-main snapshot; confidence: low; commits: ae8da992ce; files: extensions/feishu/src/bot.ts, src/auto-reply/reply/source-reply-delivery-mode.ts)

    Codex review notes: model internal, reasoning high; reviewed against a189baa4b344; fix evidence: merged PR #87896, release v2026.6.1, commit 7c15c2765ebb.

  2. ArthurNie commented on May 5, 2026

    @ArthurNie
    Contributor

    Confirming this is still hitting users on 2026.5.4 + @larksuite/openclaw-lark@2026.4.10 + @martian-engineering/lossless-claw@0.9.4.

    Reproduce

    • Feishu group with mention required, bot @-mentioned
    • Gateway logs dispatching to agent → ~20s later dispatch complete (queuedFinal=false, replies=0, effectiveReplies=0, sidePathSatisfied=false, sidePathSends=0)
    • Session trajectory shows the agent did emit a clean text-only final assistant turn (e.g. "收到。")
    • Feishu API confirms zero bot messages in the group
    • Same bot, same gateway: P2P (DM) chat works perfectly — queuedFinal=true, replies=1, reply visible
    • Even /new system command in the same group reports delivered=false — dispatchSystemCommand also relies on the SDK deliver callback, which message_tool_only mode suppresses for groups

    Workaround (verified working on 5.4)

    "messages": {
      "groupChat": {
        "visibleReplies": "automatic"
      }
    }

    After systemctl --user restart openclaw-gateway, group dispatches resume: dispatch complete (queuedFinal=true, replies=1), bot reply visible in Feishu API.

    Suggestions

    The 5.3 default change has high blast radius for existing Feishu deployments where operators don't see the new docs page. Two cheap mitigations:

    1. Startup warning when messages.groupChat.visibleReplies is unset AND a Feishu/Slack/Discord plugin is enabled — point operators at the migration doc
    2. Per-channel migration default — preserve the 5.2 visible-replies default for installations that upgraded from <5.3, only apply the new message_tool_only default to fresh installs

    Diagnosis took several hours because the symptom (replies=0, no transport error in gateway log) is indistinguishable from a real reply-pipeline bug. A clearer diagnostic like dispatch suppressed by visibleReplies=message_tool (chatType=group) at the suppression site would have saved the trip.

  3. yangzhe1991 commented on May 13, 2026

    @yangzhe1991

    Still existing this issue in 2026.5.7, @ArthurNie 's workaround is still working in 5.7

  4. openclaw-barnacle commented on May 31, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  5. ArthurNie commented on May 31, 2026

    @ArthurNie
    Contributor

    Still relevant; please do not stale-close.

    This issue is part of the same active Feishu delivery-integrity line as:

    The current blocker on #87896 is not missing proof; it is still functional coverage:

    1. empty streaming/card closes should not count as visible output before actual content is sent;
    2. active broadcast zero-final dispatches need to call the no-visible-reply fallback too.

    Until those paths are fixed and accepted, Feishu group/direct messages that end with replies=0 remain a live regression class, especially for group/channel surfaces. Please keep this open as the group-message tracking issue rather than letting stale automation close it.

  6. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    on Jun 14, 2026
  7. locked as resolved and limited conversation to collaborators on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions