Skip to content

[Bug]: Feishu streaming replies only show latest token in 6.1 #91562

Closed

Description

@Narlea

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Feishu streaming replies only display the latest token instead of accumulating text after upgrading to OpenClaw 6.1.

Steps to reproduce

  1. Upgrade OpenClaw to version 6.1.
  2. Enable streaming in the Feishu channel configuration.
  3. Send a message to the bot in Feishu.
  4. Observe the streaming reply behavior.

Expected behavior

Streaming replies should progressively append previous tokens, for example:

你
你好
你好啊

Actual behavior

The reply only shows the latest token during streaming, for example:

你
好
啊

instead of progressively accumulating text.

OpenClaw version

2026.6.1

Operating system

macOS 15.6.1

Install method

No response

Model

deepseek-v4-flash

Provider / routing chain

OpenClaw → deepseek provider → deepseek-v4-flash

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 9, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 12:34 PM ET / 16:34 UTC.

    Summary
    Keep this issue open: current main and the latest v2026.6.9 release still replace ordinary Feishu streaming final chunks with the latest payload, and the exact linked fix PR is still open and unmerged.

    Reproducibility: yes. at source level. Current main still reduces ordinary non-error Feishu streaming final chunks to the latest payload and assigns that value as the whole streaming-card buffer.

    Root-cause cluster
    Relationship: canonical
    Canonical: #91562
    Summary: This issue is the narrow Feishu incremental-final latest-token case; it has an open exact fix candidate and partially overlaps broader Feishu streaming-card delivery trackers.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    A linked open PR already owns the implementation path, so ClawSweeper should not queue a separate fix PR from this issue.

    Review details

    Best possible solution:

    Repair, prove, and land or replace the linked Feishu plugin-local final-chunk accumulation PR, while keeping broader streaming-card reliability work on the wider tracker.

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

    Yes, at source level. Current main still reduces ordinary non-error Feishu streaming final chunks to the latest payload and assigns that value as the whole streaming-card buffer.

    Is this the best way to solve the issue?

    Yes for the issue boundary: the fix belongs in the Feishu streaming-card buffer because that plugin owns CardKit rendering. The linked PR is the right implementation lane, but it still needs review and real behavior proof or maintainer override before merge.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • No live Feishu/CardKit tenant run was performed in this read-only review; reproduction confidence comes from source and linked PR evidence.
    • The linked fixing PR is still open and proof/review-gated, so closing this issue before merge would drop the exact regression tracker.
    • The broader Feishu streaming-card tracker remains open for adjacent content-loss, stale-content, and duplication cases that may interact with this narrow fix.

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

    Label changes

    Label justifications:

    • P1: This is a user-facing Feishu channel regression where streamed reply text can visibly drop for real users.
    • impact:message-loss: The reported behavior loses earlier streamed reply tokens from the visible Feishu card.
    Evidence reviewed

    What I checked:

    • Repository policy read: Root AGENTS.md and the scoped extensions guide were read; Feishu is plugin-owned channel code, and the review policy required source, tests, current/shipped behavior, and related PR context before deciding. (AGENTS.md:1, c2ee9b0be8ae)
    • Documented streaming behavior: Feishu/Lark streaming is documented as real-time card updates while text is generated, making latest-token-only display a broken existing channel behavior rather than a new feature request. Public docs: docs/channels/feishu.md. (docs/channels/feishu.md:274, c2ee9b0be8ae)
    • Current main source reproduction: On current main, normal non-error final chunks call mergeStreamingFinalText, which returns nextText when appendError is false, so ordinary incremental final chunks are not accumulated. (extensions/feishu/src/reply-dispatcher.ts:42, c2ee9b0be8ae)
    • Current final buffer overwrite: The active streaming-card final path still assigns streamText = text before flushing the Feishu card, matching the reported latest-token-only symptom for incremental finals. (extensions/feishu/src/reply-dispatcher.ts:740, c2ee9b0be8ae)
    • Adjacent tests do not cover the reported shape: Current tests cover cumulative final payloads and error-final append behavior, but search found no landed regression for ordinary incremental final chunks like the issue's token sequence. (extensions/feishu/src/reply-dispatcher.test.ts:721, c2ee9b0be8ae)
    • Latest release still has the same branch: The v2026.6.9 release tag still contains the same Feishu final streaming-card assignment, so the reported behavior is not fixed in the latest shipped release. (extensions/feishu/src/reply-dispatcher.ts:740, c645ec4555c0)

    Likely related people:

    • m1heng: The Feishu package metadata describes the bundled plugin as community maintained by this handle, making them a routing candidate for Feishu channel behavior. (role: declared plugin contact; confidence: medium; files: extensions/feishu/package.json)
    • LeftX: Commit 65be9cc added Feishu CardKit streaming-card support across the dispatcher and streaming session surfaces involved here. (role: introduced streaming-card behavior; confidence: high; commits: 65be9ccf63f3; files: extensions/feishu/src/reply-dispatcher.ts, extensions/feishu/src/streaming-card.ts)
    • rexl2018: Commit 3bf6ed1 hardened Feishu streaming merge semantics and final reply dedupe in the same dispatcher/session path. (role: prior streaming merge contributor; confidence: high; commits: 3bf6ed181e03; files: extensions/feishu/src/reply-dispatcher.ts, extensions/feishu/src/streaming-card.ts, extensions/feishu/src/reply-dispatcher.test.ts)
    • mushuiyu_xydt: Commit 1f1ce8a shipped a Feishu streaming-card content preservation fix in the same session module and tests. (role: recent related fix author; confidence: high; commits: 1f1ce8a1fe45; files: extensions/feishu/src/streaming-card.ts, extensions/feishu/src/streaming-card.test.ts)
    • Peter Steinberger: Commit 7cca3d4 added current-main logic for preserving replies before error finals in the same Feishu dispatcher final-delivery area. (role: recent adjacent contributor; confidence: high; commits: 7cca3d4618b9; files: extensions/feishu/src/reply-dispatcher.ts, extensions/feishu/src/reply-dispatcher.test.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:linked-pr-openClawSweeper found an open linked pull request for this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    on Jun 15, 2026
  3. self-assigned this
    on Jun 24, 2026
  4. steipete-oai commented on Jul 29, 2026

    @steipete-oai
    Contributor

    Thanks @Narlea for the precise token-by-token report and @draix for investigating this in #91698. I rechecked the current main source and the actual DeepSeek → OpenClaw → Feishu callback path, rather than relying on the old bot assessment or synthesizing multiple authoritative final events.

    DeepSeek’s official streaming contract emits incremental choices[].delta.content Server-Sent Events. The current bundled DeepSeek provider uses the shared streaming pipeline; the embedded agent accumulates those provider deltas, and the runner passes partial snapshots to the channel. Feishu’s existing partial callback and snapshot accumulator already render them cumulatively through mergeStreamingText.

    I independently executed the unchanged production implementation through the real Feishu dispatcher/CardKit update path with both shapes:

    • Provider fragments 你, 好, 啊 → visible CardKit updates 你, 你好, 你好啊; authoritative card close 你好啊.
    • Provider snapshots 你, 你好, 你好啊 → the same cumulative updates and authoritative close.
    • Full Feishu adjacent validation: 7 suites, 291/291 tests passed on an isolated Blacksmith Testbox, including ingress, dispatcher, CardKit, media, and bot behavior. Fresh independent xhigh review of the two test-only reproductions: clean.

    The production blobs I executed were separately checked against live current main and matched exactly (reply-dispatcher.ts 4344d9c01985, streaming-card.ts 086d805a56a9, DeepSeek provider b3a3ead7a60e, runner 8e5d8c098f7f, subscriber 3e82e995ae13). #91698 is closed and was never merged; I am not claiming it shipped. Its synthetic repeated-final assumption would also change authoritative snapshot semantics and fails current cumulative-final coverage, so merging a heuristic there would introduce a regression.

    This is source-backed and exercised CardKit-path proof; I did not use or claim a live Feishu tenant or a live DeepSeek API credential. Closing as completed because the reported DeepSeek streaming route and exact reported visible behavior already work on current main. If the symptom remains on the latest release, please share the affected version, Feishu streaming configuration, and a redacted provider event trace, and we can reopen for that distinct runtime path.

  5. locked as resolved and limited conversation to collaborators on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.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