Skip to content

[Bug]: Feishu push messages display literal 'NO_REPLY' text when no reply context exists #56117

Closed
BingqingLyu/openclaw
#1551

Description

@imveraswift

[Bug]: Feishu push messages display literal 'NO_REPLY' text when no reply context exists

Bug Description

When OpenClaw sends heartbeat/push notifications to Feishu without a reply context (no reply_to message_id), the literal text "NO_REPLY" appears in the message content sent to the user.

Steps to Reproduce

  1. Configure a heartbeat or cron job that sends periodic reports to Feishu
  2. Ensure the push has no reply_to field (no prior message to reference)
  3. Observe the delivered Feishu message contains the text: NO_REPLY

Expected Behavior

  • Heartbeat/cron push messages should be delivered cleanly without any "NO_REPLY" text
  • "NO_REPLY" should be a silent instruction (internal), never rendered in user-visible content

Actual Behavior

  • User sees NO_REPLY appended to the end of normal push messages
  • This happens only on messages sent without a reply context (heartbeat/cron pushes)
  • Normal replies (which have reply_to set) do not exhibit this issue

Root Cause Hypothesis

Based on observed behavior:

  1. Feishu plugin has a workaround mechanism to ensure notifications are delivered even without reply context
  2. When there is no reply_to, the system may route through a different code path
  3. The "NO_REPLY" silent instruction is being incorrectly passed through to the rendered message instead of being intercepted before delivery

Environment

  • OpenClaw: 2026.3.x (latest)
  • Plugin: openclaw-lark (Feishu)
  • Connection: WebSocket
  • Channel: feishu direct DM

Evidence

Metadata comparison:

Normal reply (works correctly):

{
  "has_reply_context": true,
  "reply_to": "om_xxxxxxxxxxxx"
}

Heartbeat push (displays NO_REPLY):

{
  "has_reply_context": false  // or missing
}

Example received in Feishu:

📊 **早间播报 2026-03-28 09:01**
[report content...]
NO_REPLY

Impact

  • Push notifications are polluted with internal debug text
  • Degrades user trust in notification quality

Suggested Investigation

  • Check the Feishu plugin's delivery code path for messages without reply_to
  • Verify the "NO_REPLY" instruction is being stripped before render, not after
  • Consider whether the workaround for missing reply context is inadvertently exposing internal tokens

Activity

  1. steipete commented on Apr 25, 2026

    @steipete
    Contributor

    Closing this as implemented after Codex review.

    Current main already suppresses NO_REPLY for heartbeat/cron outbound delivery paths, including mixed-content replies where visible text would otherwise be followed by the silent token. The shared outbound pipeline used by heartbeat delivery drops exact silent payloads when visible content exists, and reply normalization strips leaked trailing NO_REPLY text before channel delivery. The changelog records the cron/announce fix as shipped in v2026.4.15.

    What I checked:

    • Heartbeat uses shared outbound delivery pipeline: Heartbeat sends go through deliverOutboundPayloads, so Feishu heartbeat pushes use the same outbound normalization/suppression path as other channels. (src/infra/heartbeat-runner.ts:1252, 7130e56f872a)
    • Outbound plan suppresses silent payloads when visible content exists: createOutboundPayloadPlan computes hasVisibleNonSilentContent and skips silent NO_REPLY payloads when a visible payload is present, preventing an extra literal NO_REPLY send after normal content. (src/infra/outbound/payloads.ts:200, 7130e56f872a)
    • Reply normalization strips leaked trailing NO_REPLY text: normalizeReplyPayload strips NO_REPLY out of mixed-content text before delivery, covering cases where visible text and the silent token are combined in one payload. (src/auto-reply/reply/normalize-reply.ts:64, 7130e56f872a)
    • Regression coverage for appended NO_REPLY text: Test coverage explicitly asserts that text ending with NO_REPLY is normalized so the token is not present in delivered text. (src/auto-reply/reply/reply-utils.test.ts:122, 7130e56f872a)
    • Regression coverage for outbound delivery not sending literal NO_REPLY: Outbound delivery tests assert that a direct-delivery send does not emit literal NO_REPLY text. (src/infra/outbound/deliver.test.ts:935, 7130e56f872a)
    • Shipped fix noted in changelog: The changelog for v2026.4.15 includes cron/announce fixes preventing trailing NO_REPLY from leaking into delivered summary text. (CHANGELOG.md:552, 7130e56f872a)

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

    Review notes: reviewed against 7130e56f872a; fix evidence: release v2026.4.15.

  2. locked as resolved and limited conversation to collaborators on Apr 28, 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

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions