Skip to content

[BUG] Feishu streaming card overwrites text instead of appending (#87896 regression) #91401

Closed

Description

@richardataxai-lab

Bug Report: Feishu streaming card overwrites text instead of appending

Summary

After OpenClaw update to 2026.6.1, Feishu streaming card behavior changed: characters are being overwritten instead of appended during streaming, causing only a few characters to be visible at a time.

Environment

  • OpenClaw Version: 2026.6.1 (2e08f0f)
  • Model: xiaomi/mimo-v2.5-pro (with reasoning enabled)
  • Channel: Feishu (WebSocket mode)
  • OS: macOS 26.2 (arm64)

Current Behavior

When streaming is enabled (channels.feishu.streaming: true), the Feishu card:

  1. Shows a few characters initially
  2. Those characters get overwritten by new characters
  3. Only a small portion of the text is visible at any time
  4. The "typewriter effect" (appending characters one by one) is broken

Expected Behavior

The Feishu card should:

  1. Append characters one by one (typewriter effect)
  2. Show the thinking process progressively
  3. Show the final answer after thinking completes
  4. Never overwrite existing characters

Steps to Reproduce

  1. Configure OpenClaw with Feishu channel
  2. Set channels.feishu.streaming: true (or omit it, as it defaults to true)
  3. Use a model with reasoning capability (e.g., xiaomi/mimo-v2.5-pro)
  4. Send a message that triggers thinking
  5. Observe the Feishu card behavior

Additional Context

Related Changes

This issue appears to be introduced by the recent update:

Related Issues

Current Workaround

Set channels.feishu.streaming: false to disable streaming. This avoids the overwrite issue but loses the typewriter effect and thinking process visibility.

Logs

2026-06-08T17:25:07.911+08:00 [feishu] Started streaming: cardId=7648953240243899375
2026-06-08T17:25:21.879+08:00 [feishu] Closed streaming: cardId=7648953240243899375
2026-06-08T17:25:21.883+08:00 [feishu] dispatch complete (queuedFinal=false, replies=0)

Activity

  1. clawsweeper commented on Jun 8, 2026

    @clawsweeper
    Contributor

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

    Close as implemented on current main: after v2026.6.1, commit 6a0fdea removed suffix-only Feishu streaming card updates and now sends cumulative content, so the reported overwrite regression is fixed on main but not yet in the latest release.

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

    Review details

    Best possible solution:

    Keep the current-main cumulative Feishu streaming-card update behavior and ship it in the next release; users on v2026.6.1 can keep using the documented non-streaming workaround until that release is available.

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

    Yes for the reported release/source path: v2026.6.1 sent suffix-only payloads on Feishu streaming-card updates, matching the overwrite-visible symptom. I did not reproduce it against current main because current main no longer has that suffix path.

    Is this the best way to solve the issue?

    Yes. The current-main fix is the narrow owner-boundary solution because it changes the Feishu streaming session to send cumulative content, while leaving dispatcher callers and user configuration unchanged.

    Security review:

    Security review: Non-PR issue triage; no patch security or supply-chain review applies.

    AGENTS.md: found and applied where relevant.

    What I checked:

    • Current main sends cumulative streaming updates: FeishuStreamingSession.update() now calls updateCardContent(mergedText) after merging the new text with current state, so the CardKit content update receives the full visible card text rather than a suffix. (extensions/feishu/src/streaming-card.ts:475, 6a0fdea90ad0)
    • Current main sends full final text on close: The final close path now sends text directly when the final reply extends the displayed content, instead of computing and sending an append-only suffix. (extensions/feishu/src/streaming-card.ts:531, 6a0fdea90ad0)
    • Regression coverage expects cumulative payloads: The streaming-card tests now assert update bodies such as hello world and hello world!, matching the cumulative behavior needed for an overwrite-style CardKit update endpoint. (extensions/feishu/src/streaming-card.test.ts:247, 6a0fdea90ad0)
    • v2026.6.1 still had suffix-only behavior: The latest release source still defined resolveStreamingCardAppendContent(...) and used the resulting suffix in streaming-card updates, matching the user-reported v2026.6.1 overwrite symptom. (extensions/feishu/src/streaming-card.ts:157, 2e08f0f4221f)
    • Fix provenance: The diff from v2026.6.1 to current main removes the suffix helper, changes update/final paths to pass full text, and updates tests from suffix expectations to cumulative expectations. (extensions/feishu/src/streaming-card.ts:154, 6a0fdea90ad0)
    • Main-only release provenance: git branch --contains shows the fix on main; git tag --contains returned no release tag, so the fix is current-main-only after v2026.6.1. (6a0fdea90ad0)

    Likely related people:

    • Vincent Koc: Authored the current-main fix that removed suffix-only Feishu streaming-card updates and has recent Feishu-area history in the local git log. (role: recent area contributor; confidence: high; commits: 6a0fdea90ad0, 6d38bd476893, d609f71c9b74; files: extensions/feishu/src/streaming-card.ts, extensions/feishu/src/reply-dispatcher.ts)
    • ArthurNie: Authored the merged Feishu reply-dispatcher fallback PR referenced by the report, which touched the same streaming reply surface shortly before the regression report. (role: recent related PR author; confidence: medium; commits: 7c15c2765ebb; files: extensions/feishu/src/reply-dispatcher.ts, extensions/feishu/src/streaming-card.ts)
    • LeftX: Git history shows the Feishu CardKit streaming-card support originated in this authored commit, making them relevant for the affected behavior history. (role: introduced streaming card support; confidence: medium; commits: 65be9ccf63f3; files: extensions/feishu/src/streaming-card.ts)
    • m1heng: The Feishu README and plugin manifest identify the Feishu/Lark plugin as community maintained by this handle, making them a useful routing candidate for follow-up review. (role: documented plugin steward; confidence: medium; files: extensions/feishu/README.md, extensions/feishu/openclaw.plugin.json)

    Codex review notes: model gpt-5.5, reasoning high; reviewed against 310d28f719b8; fix evidence: commit 6a0fdea90ad0, main fix timestamp 2026-06-07T19:09:49+09:00.

  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    on Jun 8, 2026
  3. richardataxai-lab commented on Jun 8, 2026

    @richardataxai-lab
    Author

    Thanks for the quick fix! The commit 6a0fdea has been merged, but it does not seem to be included in the latest beta releases yet (2026.6.2-beta.1, 2026.6.5-beta.2). When will this fix be included in an official release? We are currently using streaming: false + renderMode: card as a workaround, but we would love to get the streaming typewriter effect back. Thanks!

  4. locked as resolved and limited conversation to collaborators on Jun 11, 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