Repository navigation
Description
[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
- Message receipt is normal — User sends message in Feishu, bot receives it instantly
- Generation is normal — WebChat (Control UI) shows the assistant generating content at normal speed with normal timestamps
- 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
- Visual effect — The user sees 2–4 characters appear, then a pause, then 2–4 more characters, creating a jarring "dribble" effect
- 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/feishuv2026.7.1 (installed via npm projects path)@larksuite/openclaw-larkv2026.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
- Install/upgrade OpenClaw to v2026.7.1
- Configure Feishu channel with
streaming: true(default) - Send any message to the bot via Feishu DM or group chat
- Observe the reply rendering in Feishu client — it will "dribble" out a few characters at a time instead of smooth streaming
- (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)
- [Bug]: Feishu streaming card content shows duplicate/appending text during streaming #33751 — "duplicate/appending text during streaming" ❌ (we do NOT see duplication)
- Feishu streaming card output produces cumulative token duplication #38943 — "cumulative token duplication" ❌ (content is not duplicated)
- fix(feishu): remove streaming card update throttle to prevent duplicates #66148 — "remove 100ms throttle to prevent duplicates/truncation"
⚠️ (might share root cause — the 100ms throttle could cause flush pacing issues, but our symptom is rendering speed, not truncation) - [Bug]: Feishu Duplicate message sent after streaming card completes — blockStreamingCoalesce regression since v2026.4.12 #67791 — "blockStreamingCoalesce regression since v2026.4.12"
⚠️ (mentions duplicate messages after streaming completes, which we do not observe)
Hypothesis
The issue may be related to one of the following changes in 2026.7.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
- CardKit API behavior change — 2026.7.1 may have changed how
update_multior streaming block updates are structured, affecting Feishu's frontend rendering - 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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jul 16, 2026
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:
duplicateCanonical: #91941
Summary: The detailed follow-up establishes the same slow CardKit request and stale-preview backlog already tracked by the canonical latency issue.
Members:
canonical: [Bug]: Feishu streaming card full-content updates cause severe latency regression on long replies #91941 - Open tracker for long-reply CardKit latency and the source-proven dispatcher backlog.adjacent_distinct: [feishu] Streaming card dies during long tool phases: 200850 idle timeout followed by ~1000 blind 300309 retries #139443 - Server-closed streams and repeated terminal errors require additional lifecycle handling beyond coalescing slow successful updates.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:
extensions/feishu/src/reply-dispatcher.ts:387, 24892b0ed705)extensions/feishu/src/streaming-card.ts:554, 24892b0ed705)extensions/feishu/src/streaming-card.test.ts:621, 24892b0ed705)extensions/feishu/src/reply-dispatcher.ts:392, ec9c1a13db89)Likely related people:
Codex review notes: model internal, reasoning medium; reviewed against 24892b0ed705.
wzkagms commentedon Jul 16, 2026
Quick correction on my earlier reply — I investigated the two packages more carefully:
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?
openclaw-barnacle commentedon Jul 31, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
dabuside commentedon Aug 5, 2026
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:
dispatch complete, the card typically takes another 150–213 seconds to reachClosed streaming(nothing logged in between).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.
dabuside commentedon Aug 5, 2026
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 completeat T+5.7s (model call itself returned in 375ms)Started streaming→Closed streaming), with nothing logged in betweenRoot cause: too many HTTP PUTs, each one slow
Reading the plugin source (
extensions/feishu/src/streaming-card.tsin the installed dist):cardkit/v1/cards/{cardId}/elements/content/content. WebSocket is only used for receiving events.STREAMING_UPDATE_THROTTLE_MS = 160,STREAMING_SIGNIFICANT_DELTA_CHARS = 18, plus a "natural boundary" rule that force-flushes on every sentence end (。!?\netc.). A 470-char reply = ~26 PUTs.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)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.wzkagms commentedon Aug 8, 2026
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.