Skip to content

[Bug]: Feishu streaming mode causes extremely slow frontend rendering after upgrading to v2026.7.1 - characters dribble out a few at a time #108265

Closed as not planned

Description

@wzkagms

[Bug]: Feishu streaming mode causes extremely slow frontend rendering after upgrading to v2026.7.1 — "characters dribble out a few at a time"

Bug Description

After upgrading OpenClaw from a pre-2026.7.1 version to v2026.7.1, Feishu (Lark) streaming mode becomes practically unusable due to extremely slow frontend rendering. Instead of smooth streaming output, the Feishu client renders the assistant's reply character-by-character or a few characters at a time, creating a severe "stuttering" visual effect.

This is not the known "duplicate text" or "truncated text" issues (e.g., #33751, #38943, #66148). The content is correct and complete — the problem is purely the rendering speed/pacing on the Feishu client side.


Regression Context

Before Upgrade After Upgrade
Pre-2026.7.1 (exact previous version unknown, likely 2026.6.x) 2026.7.1 (2d2ddc4)
streaming: true worked smoothly streaming: true causes severe rendering stutter
Replies appeared fluidly in Feishu Replies "dribble out" a few characters per update

Upgrade method: openclaw update (standard stable channel)


Detailed Symptom Breakdown

  1. Message receipt is normal — User sends message in Feishu, bot receives it instantly
  2. Generation is normal — WebChat (Control UI) shows the assistant generating content at normal speed with normal timestamps
  3. Delivery to Feishu is affected — When the reply is streamed back to Feishu, the client renders it extremely slowly, as if playing a typewriter effect at 0.1× speed
  4. Visual effect — The user sees 2–4 characters appear, then a pause, then 2–4 more characters, creating a jarring "dribble" effect
  5. Content integrity — The final message content is complete and correct (no duplication, no truncation)

Verified Workaround

Setting channels.feishu.streaming: false immediately resolves the issue:

  • Replies are sent as complete messages (non-streaming)
  • Feishu client renders them instantly
  • User experience returns to normal

However, this loses the real-time streaming feedback that was working fine before the upgrade.


Environment

OpenClaw:    2026.7.1 (2d2ddc4) — npm global install
Update Channel: stable (default)
OS:          Windows 10.0.26200 (x64)
Node.js:     v24.18.0
Shell:       PowerShell 5.1
Gateway:     ws://127.0.0.1:18789 (local loopback)

Feishu Plugin:

  • @openclaw/feishu v2026.7.1 (installed via npm projects path)
  • @larksuite/openclaw-lark v2026.6.10 (also present)

Feishu Configuration (sanitized):

{
  "channels": {
    "feishu": {
      "enabled": true,
      "defaultAccount": "<ACCOUNT_A>",
      "accounts": {
        "<ACCOUNT_A>": {
          "appId": "<REDACTED>",
          "appSecret": "<REDACTED>",
          "name": "<BOT_NAME_A>",
          "dmPolicy": "pairing"
        },
        "<ACCOUNT_B>": {
          "appId": "<REDACTED>",
          "appSecret": "<REDACTED>",
          "name": "<BOT_NAME_B>",
          "dmPolicy": "pairing"
        }
      },
      "connectionMode": "websocket",
      "domain": "feishu",
      "streaming": true,
      "typingIndicator": true,
      "requireMention": true
    }
  }
}

Multi-agent bindings (root level):

{
  "bindings": [
    { "agentId": "work", "match": { "channel": "openclaw-weixin", "accountId": "<WEIXIN_ACCOUNT>" }},
    { "agentId": "work", "match": { "channel": "feishu", "accountId": "<ACCOUNT_B>" }},
    { "agentId": "main", "match": { "channel": "feishu", "accountId": "<ACCOUNT_A>" }}
  ]
}

Steps to Reproduce

  1. Install/upgrade OpenClaw to v2026.7.1
  2. Configure Feishu channel with streaming: true (default)
  3. Send any message to the bot via Feishu DM or group chat
  4. Observe the reply rendering in Feishu client — it will "dribble" out a few characters at a time instead of smooth streaming
  5. (Verify workaround) Set channels.feishu.streaming: false → reply renders instantly as a complete message

Expected Behavior

Streaming mode should render smoothly in the Feishu client, at a pace similar to pre-2026.7.1 versions — content should flow naturally without perceivable stuttering.

Actual Behavior

Each streaming update pushes only a tiny amount of visible text (2–4 characters), causing the Feishu client to re-render repeatedly and creating a severe "dribble" effect that makes the bot feel broken.


Related Issues (but not exact match)


Hypothesis

The issue may be related to one of the following changes in 2026.7.1:

  1. Chunk pacing / flush timing — The streaming card update interval or chunk size may have changed, causing Feishu CardKit to receive updates too frequently or too sparsely
  2. CardKit API behavior change — 2026.7.1 may have changed how update_multi or streaming block updates are structured, affecting Feishu's frontend rendering
  3. 100ms throttle interaction — If the 100ms throttle mentioned in fix(feishu): remove streaming card update throttle to prevent duplicates #66148 is interacting differently with Feishu's client-side rendering in 2026.7.1, it could explain the stutter

Since streaming: false completely resolves the issue, the bug is definitely in the streaming delivery path, not the generation or general channel logic.


Request

Please investigate what changed in the Feishu streaming card delivery between pre-2026.7.1 and 2026.7.1 that could cause this frontend rendering stutter. Happy to provide additional logs (gateway feishu-streaming module) if needed.

Activity

  1. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    on Jul 16, 2026
  2. clawsweeper commented on Jul 16, 2026

    @clawsweeper
    Contributor

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

    Consolidate this report into the open canonical Feishu latency issue. The detailed follow-up establishes the same slow-request preview backlog; its measurements and workaround are useful supporting evidence, rather than a separate repair scope. The defect remains unfixed.

    Root-cause cluster
    Relationship: duplicate
    Canonical: #91941
    Summary: The detailed follow-up establishes the same slow CardKit request and stale-preview backlog already tracked by the canonical latency issue.

    Members:

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

    Canonical path: #91941 remains open. Its discussion independently reports about 25 seconds of generation followed by roughly 340 seconds of streaming-card activity, with short replies largely unaffected. It already tracks the stale-snapshot queue and preserves related failure reports.

    So I’m closing this here and keeping the remaining discussion on #91941.

    Review details

    Best possible solution:

    Use one canonical repair to coalesce obsolete previews while preserving ordered CardKit writes, full-content payloads, and generation-safe finalization.

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

    Yes, from source: slow CardKit writes followed by rapid cumulative previews serialize obsolete snapshots and delay close. This read-only review did not execute a current-main or live-tenant reproduction.

    Is this the best way to solve the issue?

    Yes: consolidating the shared backlog under the existing latency tracker avoids competing repairs; latest-snapshot scheduling is narrower than adding pacing settings or changing CardKit payload semantics.

    Security review:

    Security review: This is delivery-latency issue triage without a proposed patch or demonstrated security boundary failure.

    AGENTS.md: found and applied where relevant.

    What I checked:

    • Current dispatcher still creates the backlog: Each combined snapshot is captured in partialUpdateQueue and awaits session.update before the next snapshot enters the session. Finalization captures and awaits that queue, so slow forced updates delay the final card. (extensions/feishu/src/reply-dispatcher.ts:387, 24892b0ed705)
    • Session coalescing cannot bypass the caller's queue: update replaces pendingText, but forced updates await the network-backed flush. Natural boundaries and growth of 18 characters bypass the 160 ms throttle. Dispatcher serialization prevents newer snapshots from replacing pending text during those awaited updates. (extensions/feishu/src/streaming-card.ts:554, 24892b0ed705)
    • Existing tests establish replaceable snapshot semantics: The session tests require only the latest throttled snapshot to be sent and separately preserve immediate natural-boundary updates. Those contracts do not require replaying every obsolete dispatcher snapshot. (extensions/feishu/src/streaming-card.test.ts:621, 24892b0ed705)
    • Latest supplied release retains the queue: Read the release source through GitHub after the local release blob was unavailable. v2026.9.5 retains partialUpdateQueue and awaited session.update; this is a duplicate closure, not a claim of a shipped fix. (extensions/feishu/src/reply-dispatcher.ts:392, ec9c1a13db89)
    • Discussion connects the rendering symptom to delivery backlog: The August 5 follow-up reports slow serialized PUTs, 62–355-second card lifecycles, and substantially faster delivery after reducing update count. The reporter endorsed that explanation on August 8. These measurements strengthen the shared delivery-backlog diagnosis despite the initial overlapping-plugin installation.
    • Open canonical report contains the same post-generation tail: [Bug]: Feishu streaming card full-content updates cause severe latency regression on long replies #91941 remains open. Its discussion independently reports about 25 seconds of generation followed by roughly 340 seconds of streaming-card activity, with short replies largely unaffected. It already tracks the stale-snapshot queue and preserves related failure reports.

    Likely related people:

    • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    • joshavant: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

    Codex review notes: model internal, reasoning medium; reviewed against 24892b0ed705.

  3. wzkagms commented on Jul 16, 2026

    @wzkagms
    Author

    Quick correction on my earlier reply — I investigated the two packages more carefully:

    • @openclaw/feishu — OpenClaw's own first-party Feishu plugin (canonical, maintained by the OpenClaw team)
    • @larksuite/openclaw-lark — The Lark/Feishu SDK adapter published by LarkSuite (the official Feishu team)

    They are not dependency/peers — they are two separate implementations of the same integration, both registering overlapping tool names (feishu_chat, etc.). Having both active causes tool name conflicts.

    For the streaming reproduction, should I uninstall @larksuite/openclaw-lark and test with only @openclaw/feishu?

  4. openclaw-barnacle commented on Jul 31, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  5. added
    staleMarked as stale due to inactivity
    and removed
    staleMarked as stale due to inactivity
    on Jul 31, 2026
  6. dabuside commented on Aug 5, 2026

    @dabuside

    Same issue here — running OpenClaw 2026.7.1-2 with @openclaw/feishu 2026.7.1 (DM, streaming enabled by default). Adding some measured data that might help:

    Symptoms observed:

    1. Inbound messages are received instantly; model generation itself is fast (each LLM call completes in <1s).
    2. Two "silent gaps" around the streaming card lifecycle:
      • After dispatch complete, the card typically takes another 150–213 seconds to reach Closed streaming (nothing logged in between).
      • In one run the card stayed open for 213s after generation finished; end-to-end (user message → card fully rendered) was 351s, of which generation was only ~132s.
    3. Long replies (multi-thousand-token output) update noticeably slower, consistent with the full-content update latency described in [Bug]: Feishu streaming card full-content updates cause severe latency regression on long replies #91941.
    4. Once, a turn was force-terminated by the channel's per-chat 300s cap (per-chat task exceeded 300000ms cap), and the user never received the full reply.

    Repro hint: the longer the reply, the worse it gets; short replies (<200 tokens) are roughly fine.

    Happy to provide more log details or test a candidate fix.

  7. dabuside commented on Aug 5, 2026

    @dabuside

    Adding our root-cause findings from a deeper investigation on the same setup (OpenClaw 2026.7.1-2, @openclaw/feishu 2026.7.1, Linux, websocket mode, streaming: true). We confirmed the bottleneck is not generation — it is the streaming-card delivery path.

    Measured timeline (one run, ~470-char reply)

    • dispatch complete at T+5.7s (model call itself returned in 375ms)
    • Streaming card remained open for another ~62-355s (Started streaming → Closed streaming), with nothing logged in between
    • Short replies (<50 chars) close in ~2s; long replies (>200 tokens) take 60-350s

    Root cause: too many HTTP PUTs, each one slow

    Reading the plugin source (extensions/feishu/src/streaming-card.ts in the installed dist):

    1. No websocket push channel — streaming updates go over HTTP PUT to cardkit/v1/cards/{cardId}/elements/content/content. WebSocket is only used for receiving events.
    2. Push cadence is extremely aggressive: STREAMING_UPDATE_THROTTLE_MS = 160, STREAMING_SIGNIFICANT_DELTA_CHARS = 18, plus a "natural boundary" rule that force-flushes on every sentence end (。!?\n etc.). A 470-char reply = ~26 PUTs.
    3. Each PUT waits 2-3s for the Feishu CardKit API to respond (observed card lifecycles: 62s / 85s / 355s, while model generation took <3s).
    4. Updates are serialized through this.queue = this.queue.then(...), so 26 × 2-3s ≈ 60s+ end-to-end, worst case ~6min. This matches the "dribble" rendering — the Feishu client re-renders the card on every small snapshot.

    Local workaround that fixes it (hack on the dist)

    We patched the installed plugin (3 small changes in monitor.account-*.js):

    • STREAMING_UPDATE_THROTTLE_MS: 160 → 5000 (push at most once per 5s)
    • Disabled the "natural sentence boundary" force-flush
    • shouldPushStreamingUpdate: only push on first content, then rely on the 5s throttle (drop the 18-char delta condition)

    Result: 470-char reply = 1-2 PUTs instead of 26; tool-call intermediate short outputs still get flushed every 5s (no more frozen/blank card). Long replies now render in seconds.

    This is clearly a hack on dist files (overwritten on plugin upgrade), so a proper fix should make the push cadence configurable (e.g. channels.feishu.streamingDeltaChars / streamingUpdateThrottleMs) or batch updates until the reply completes. Happy to share the full patch or test a candidate fix.

  8. added
    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:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    and removed
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    on Aug 5, 2026
  9. wzkagms commented on Aug 8, 2026

    @wzkagms
    Author

    Thanks @dabuside for the detailed reproduction data and root-cause analysis — this is exactly what the issue needed. The serialized-queue × slow-PUT explanation (26 PUTs for a 470-char reply) perfectly matches the "dribble" rendering we observed, and your local workaround numbers (1–2 PUTs after throttling to 5s) are strong evidence that the push cadence is the real bottleneck rather than generation.

    Also thanks to the ClawSweeper review for laying out the maintainer decision on the CardKit pacing contract — the latest-snapshot coalescing direction makes sense.

    Sorry for the slow follow-up on my side — I hadn't been able to get back to this thread. I'm on the same setup (OpenClaw 2026.7.1-2 + @openclaw/feishu, streaming enabled by default) and can confirm the long-reply slowdown as well.

    Supporting both directions: making the push cadence configurable (e.g. channels.feishu.streamingUpdateThrottleMs / streamingDeltaChars) or owner-level latest-snapshot coalescing. Happy to test a candidate fix if one lands.

  10. added
    clawsweeper: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.
    no-staleExclude from stale automation
    and removed
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    on Sep 5, 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.clawsweeper: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:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automation

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions