Skip to content

Feishu channel: streaming card text truncation / 飞书流式卡片文字显示不全 #91159

Closed as not planned

Description

@RedSummerP

Bug Description

When streaming: true (default) is enabled for the Feishu channel, response messages are sent as interactive cards that update in real time. However, the card text is often truncated — only part of the response is visible.

To Reproduce

  1. Configure Feishu channel with default settings (streaming defaults to true)
  2. Send any message that triggers a response longer than a few words
  3. The streaming card shows incomplete text

Expected Behavior

Full response text should be visible in the streaming card.

Workaround

Setting "streaming": false under channels.feishu sends messages as plain text instead of interactive cards, which displays the full text correctly.

Environment

  • OpenClaw version: 2026.6.1
  • Feishu channel plugin (websocket mode)
  • OS: Linux

Additional Context

Noticed after upgrading from 2026.5.28 to 2026.6.1. The streaming card rendering appears to have a content limit that truncates longer responses.

Activity

  1. clawsweeper commented on Jun 7, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

    Close as duplicate/superseded: the Feishu streaming-card truncation remains valid, but the same remaining work is now tracked by the open canonical Feishu streaming-card issue, with the table-limit comment covered by a separate open table-fallback issue.

    Canonical path: Use #91916 as the canonical Feishu streaming-card truncation tracker and #43690 for the table-limit fallback variant.

    So I’m closing this here and keeping the remaining discussion on #91916, #43690, and #92708.

    Review details

    Best possible solution:

    Use #91916 as the canonical Feishu streaming-card truncation tracker and #43690 for the table-limit fallback variant.

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

    Yes at source and related-report level: current main still uses the Feishu streaming-card path, and the canonical open issue has newer 2026.6.5 reproduction/config-matrix comments. I did not run a live Feishu tenant reproduction in this read-only review.

    Is this the best way to solve the issue?

    No as a separate tracker: the maintainable path is to keep the richer canonical truncation issue open and carry the table-limit detail to the table-specific issue.

    Security review:

    Security review: No patch is under review, so a security or supply-chain diff review is not applicable.

    AGENTS.md: found and applied where relevant.

    What I checked:

    • Root repository policy read: Read the full root AGENTS.md and applied its OpenClaw issue cleanup requirements for scoped policy, source, tests, current/shipped behavior, related items, and owner history. (AGENTS.md:1, 4644e0c10256)
    • Scoped extension policy read: Read extensions/AGENTS.md; Feishu channel behavior is owned inside the bundled plugin boundary. (extensions/AGENTS.md:1, 4644e0c10256)
    • Current Feishu streaming default still exists: Current main enables Feishu streaming unless account config sets streaming: false or renderMode: raw, matching the reported surface and showing this is not an implemented-on-main close. (extensions/feishu/src/reply-dispatcher.ts:232, 4644e0c10256)
    • Current CardKit update path is still the relevant source surface: Current main updates the Feishu CardKit content element with cumulative content, sequence, and uuid, then treats HTTP OK as success; this is the same streaming-card path discussed in the canonical truncation thread. (extensions/feishu/src/streaming-card.ts:353, 4644e0c10256)
    • Tests cover oversized fallback but not the whole reported live behavior: Adjacent tests prove oversized final text avoids streaming cards and uses chunked message/card fallback, but the remaining canonical issue reports truncation in real Feishu streaming setups after earlier fixes. (extensions/feishu/src/reply-dispatcher.test.ts:429, 4644e0c10256)
    • Canonical open duplicate for the central symptom: [Bug]: Feishu card streaming truncates long responses and error messages overwrite correct replies #91916 is open and covers Feishu streaming-card long-response truncation, including newer 2026.6.5 reproduction/config-matrix comments after the earlier cumulative-content fix.

    Likely related people:

    • m1heng: The Feishu plugin package and README describe the plugin as community maintained by this handle, making them a useful routing contact for Feishu channel behavior. (role: documented community contact; confidence: medium; files: extensions/feishu/package.json, extensions/feishu/README.md)
    • xzq-xu: The CardKit streaming-card support commit credits this handle and added the streaming-card module plus dispatcher integration. (role: introduced behavior; confidence: high; commits: 65be9ccf63f3; files: extensions/feishu/src/streaming-card.ts, extensions/feishu/src/reply-dispatcher.ts)
    • Huaqing.Hao: Authored a Feishu repair that preserved full streaming-card content and touched the same streaming-card/test surface. (role: prior streaming repair author; confidence: high; commits: a5a7239182d5; files: extensions/feishu/src/streaming-card.ts, extensions/feishu/src/streaming-card.test.ts)
    • rexl2018: Authored the Feishu streaming merge semantics and final-reply dedupe hardening across the same session and dispatcher boundary. (role: adjacent hardening author; confidence: high; commits: 3bf6ed181e03; files: extensions/feishu/src/streaming-card.ts, extensions/feishu/src/reply-dispatcher.ts, extensions/feishu/src/reply-dispatcher.test.ts)
    • mushuiyu_xydt: Authored the merged Feishu streaming-card content preservation fix for the earlier suffix-only behavior, which is directly adjacent to the remaining truncation reports. (role: recent related fix author; confidence: medium; commits: 1f1ce8a1fe45; files: extensions/feishu/src/streaming-card.ts, extensions/feishu/src/streaming-card.test.ts)

    Codex review notes: model internal, reasoning high; reviewed against 4644e0c10256.

  2. liudf0716 commented on Jun 7, 2026

    @liudf0716

    +1

  3. loveprruy commented on Jun 7, 2026

    @loveprruy

    {
    "code": 230099,
    "error": {
    "log_id": "202606071908204922BA99C04C1FFD7388",
    "troubleshooter": "排查建议查看(Troubleshooting suggestions): https://open.feishu.cn/search?from=openapi&log_id=202606071908204922BA99C04C1FFD7388&code=230099&method_id=6936075528891154460"
    },
    "msg": "Failed to create card content, ext=ErrCode: 11310; ErrMsg: card table number over limit; ErrorValue: table; "
    }

    Workaround:
    "renderMode": "raw"

  4. 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
  5. 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