Skip to content

[Bug]: 2026.6.1 飞书流式回复仅显示最后一个字符(卡片被 update 而非 patch) #90164

Closed

Description

@wjm7220

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

流式消息每个 chunk 覆盖前一个,最终只剩最后一个字符

Steps to reproduce

飞书渠道全部用户

Expected behavior

channels.feishu.streaming = false

Actual behavior

用 patch API 增量更新卡片内容

OpenClaw version

2026.6.1

Operating system

Ubuntu24.04

Install method

npm global

Model

Qwen 3.6

Provider / routing chain

openclaw->Qwen3.6

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Activity

  1. clawsweeper commented on Jun 4, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 4, 2026, 12:57 AM ET / 04:57 UTC.

    Summary
    Keep open: current main still strips Feishu streaming-card updates down to suffix content before sending the CardKit update request, and the shipped v2026.6.1 tests still assert that suffix-only payload shape, so the reported last-character overwrite remains actionable.

    Reproducibility: yes. for source reproduction: current main turns cumulative Feishu stream text into suffix-only CardKit update payloads, which matches the reported overwrite symptom. I did not run a live Feishu tenant scenario, so this is not marked as fully reproduced.

    Next step
    This is a narrow, source-reproducible bundled Feishu channel regression with clear likely files and focused tests.

    Review details

    Best possible solution:

    Align the Feishu streaming-card update call with the CardKit contract so each visible card update preserves cumulative reply text, then update the suffix-only regression tests accordingly without disabling streaming by default.

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

    Yes for source reproduction: current main turns cumulative Feishu stream text into suffix-only CardKit update payloads, which matches the reported overwrite symptom. I did not run a live Feishu tenant scenario, so this is not marked as fully reproduced.

    Is this the best way to solve the issue?

    Yes, the best fix is a narrow Feishu plugin repair that makes streaming-card updates preserve cumulative visible content. Adding a new config switch or making users set channels.feishu.streaming=false would be a workaround, not the right product fix.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • A live Feishu/Lark tenant reproduction was not run in this read-only review, so the issue is source-reproducible rather than end-to-end reproduced.

    Codex review notes: model gpt-5.5, reasoning high; reviewed against 68307afb5b0d.

    Label changes

    Label justifications:

    • P1: A released Feishu channel regression can visibly drop streamed assistant reply content for affected users.
    • impact:message-loss: The failure mode is streamed message content being overwritten during Feishu delivery, leaving only the final chunk visible.
    Evidence reviewed

    Acceptance criteria:

    • node scripts/run-vitest.mjs extensions/feishu/src/streaming-card.test.ts
    • node scripts/run-vitest.mjs extensions/feishu/src/reply-dispatcher.test.ts

    What I checked:

    • Issue report: The reporter describes Feishu streaming replies overwriting each chunk and leaving only the last character visible on v2026.6.1 with npm global install on Ubuntu 24.04.
    • Streaming session sends suffix-only content: The current Feishu streaming-card session computes appendContent from the previously sent text and sends that suffix to updateCardContent, which matches the reported overwrite failure if the update endpoint replaces element content. (extensions/feishu/src/streaming-card.ts:480, 68307afb5b0d)
    • Card update request uses replacement-style PUT payload: updateCardContent sends a PUT request to the card element content URL with content: text, so the important behavior question is whether that call receives the complete current card text or only the latest suffix. (extensions/feishu/src/streaming-card.ts:360, 68307afb5b0d)
    • Dispatcher provides cumulative stream text: The reply dispatcher builds cumulative stream text and passes that combined text to streaming.update, so the suffix-only payload is introduced inside the streaming-card session rather than by the channel dispatcher. (extensions/feishu/src/reply-dispatcher.ts:287, 68307afb5b0d)
    • Existing test locks suffix-only behavior: The Feishu streaming-card test expects the update body for hello -> hello small to contain only " small", confirming current coverage does not protect full visible content for replacement-style updates. (extensions/feishu/src/streaming-card.test.ts:181, 68307afb5b0d)
    • Release parity check: The v2026.6.1 tag still contains the same suffix-only streaming-card test expectation, so the latest shipped release has not fixed the reported behavior. (extensions/feishu/src/streaming-card.test.ts:181, 2e08f0f4221f)

    Likely related people:

    • LeftX: Commit history identifies the original Feishu Card Kit streaming-card support in commit 65be9cc, which created the affected streaming-card path. (role: introduced feature; confidence: medium; commits: 65be9ccf63; files: extensions/feishu/src/streaming-card.ts, extensions/feishu/src/reply-dispatcher.ts)
    • Huaqing.Hao: Commit a5a7239 is directly titled as preserving full Feishu streaming-card content and changed the same streaming-card session logic. (role: adjacent bugfix author; confidence: high; commits: a5a7239182; files: extensions/feishu/src/streaming-card.ts, extensions/feishu/src/streaming-card.test.ts)
    • rexl2018: Commit 3bf6ed1 hardened Feishu streaming merge semantics and final reply dedupe across the same streaming-card and dispatcher files. (role: recent adjacent contributor; confidence: high; commits: 3bf6ed181e; files: extensions/feishu/src/streaming-card.ts, extensions/feishu/src/reply-dispatcher.ts, extensions/feishu/src/streaming-card.test.ts)
    • Peter Steinberger: Recent Feishu dispatcher and streaming-card history includes multiple refactors and the current shallow-main blame snapshot, so this is a useful routing candidate for repository-side review. (role: recent area contributor; confidence: medium; commits: 510f4276b5, 62edfdffbd, 143ae5a5b0; files: extensions/feishu/src/reply-dispatcher.ts, extensions/feishu/src/streaming-card.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 4, 2026
  3. locked as resolved and limited conversation to collaborators on Jun 7, 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.bugSomething isn't workingclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions