Repository navigation
Closed
Description
Summary
When Feishu channel streaming is enabled with card render mode, replies show an abnormal typewriter effect (1-2 characters at a time) and the final card content is truncated — often leaving only the last character (e.g. "?"), with all other text lost.
Environment
- OpenClaw version: 2026.5.28 (also reproduced on 2026.5.27)
- Feishu plugin:
@openclaw/feishu@2026.5.28 - Model:
deepseek/deepseek-v4-flash - Agent:
main - Deployment: Tencent Cloud Lighthouse, Ubuntu, Feishu websocket
- Feishu client: Both mobile & desktop — same issue
Configuration
"feishu": {
"enabled": true,
"appId": "cli_a968b21595b89bdf",
"streaming": true,
"renderMode": "card",
"blockStreaming": false,
"textChunkLimit": 8000
}Steps to Reproduce
- Set
channels.feishu.streaming: true - Set
renderMode: "card" - Set
blockStreaming: false - Send a message via Feishu DM that triggers a longer reply (tool call + summary, or multi-paragraph text)
- Observe the streaming card during generation and the final card content
Expected Behavior
- Smooth typewriter streaming effect on Feishu card
- Final card shows complete reply content
- Tool call output and final summary are both visible
Actual Behavior
- Typewriter effect is abnormal (characters appear 1-2 at a time, not smooth streaming)
- Final card content is truncated; only the last few characters remain (often just "?")
- Intermediate streaming may show partial text, but final rendered card loses most content
Control Groups
| Config | Result |
|---|---|
streaming: false + renderMode: card |
✅ Complete content, no truncation |
streaming: true + renderMode: raw |
|
QQ Bot streaming: true |
✅ Works normally (not a global streaming issue) |
Workaround
"feishu": {
"streaming": false,
"renderMode": "card",
"blockStreaming": false
}Content is complete but without typewriter effect.
Additional Notes
- Issue present since 2026.5.27, still unfixed in 2026.5.28
- Changelog does not mention Feishu streaming fixes for this behavior
- Possibly related to CardKit streaming card update/finalize race (partial → idle → final)
- Gateway log snippet (dispatch to close: ~9s, close happens ~7s after dispatch complete):
feishu[default] Started streaming: cardId=7646292918105738171
feishu[default]: dispatch complete (queuedFinal=true, replies=1)
feishu[default] Closed streaming: cardId=7646292918105738171
Related Issues
- Feishu streaming card produces duplicate/truncated messages with long replies #65993 — streaming card duplicate/truncation (partially fixed)
- [Bug]: Feishu CardKit streaming card appends full accumulated text on each update instead of replacing #82417 / PR fix(feishu): stream CardKit text deltas #82419 — CardKit full-text append duplication
- [Bug]: Feishu/Lark: streaming card sessions are created even when
channels.feishu.streaming=false(final message may show only tail / truncated) #10078 — streaming=false still creates streaming card, final content truncated - Feishu streaming card duplicates on long responses (飞书流式卡片长回复重复) #75757 — long replies produce duplicate streaming cards
- PR fix(feishu): prevent duplicate message after streaming card close (#67791) #68491 — onPartialReply→onIdle→final race fix (not merged)
Attachments
Screenshot of final truncated Feishu card (showing only "?") will be added as a comment after issue creation.
Reacted by clawsweeper and lukemyself-hub
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon Jun 1, 2026
ClawSweeper status: review started.
I am starting a fresh review of this issue: [Bug] Feishu streaming card: abnormal typewriter effect and final content truncated to last character This is item 1/1 in the current shard. Shard 0/1.
This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.
Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.
airbing11 commentedon Jun 1, 2026
Screenshot: Final truncated card on Feishu (streaming: true)
The card only shows "?" after streaming completes:
sgh6688 commentedon Jun 4, 2026
I hit the same symptom after upgrading, and traced one extra footgun in
@openclaw/feishu@2026.5.26that may explain why more users suddenly see this even when they did not intentionally turn streaming on.From the installed package:
streamingEnabled = account.config?.streaming !== false && renderMode !== "raw"in the bundled Feishu runtime (dist/monitor.account-CmXHWuwG.js, around line 1338)onPartialReplyimmediately queues partial snapshot updates whenstreamingEnabledis true (same file, around line 1632)That means Feishu streaming is effectively opt-out, not opt-in: if
channels.feishu.streamingis omitted, the plugin still enters streaming-card mode.On my upgraded instance, the user-visible symptom was exactly the same: Feishu replies started appearing 1-2 characters / small fragments at a time, and some replies did not end up showing the complete final message.
Confirmed workaround on my side:
Then restart gateway / the host process. After that, Feishu went back to sending only the final complete reply.
So besides the streaming-card overwrite bug itself, there is also a product/defaults problem here: the current default is surprising and user-visible. It would help to do one of these:
streaming: falseuntil card streaming is reliable.streaming: false.airbing11 commentedon Jun 4, 2026
Cross-ref: same CardKit streaming overwrite behavior reported in #90185 (Bug 3) and #88867. Workaround remains \streaming: false.
airbing11 commentedon Jun 4, 2026
Thanks @sgh6688 for the additional trace — that opt-out default (\streaming !== false) matches what we saw after upgrading without explicitly enabling streaming. Same workaround here (\streaming: false\ +
enderMode: card). Agree that defaulting to off (or documenting the migration) would help until CardKit streaming is reliable.
WeipengMO commentedon Jun 5, 2026
Additional feedback: Feishu message length is truncated when using streaming + tool calls
Environment
@openclaw/feishu@2026.6.1Configuration
Issue
When the agent invokes a tool call, the tool result displayed in the Feishu card contains only a very small amount of text, and the tool output is truncated. The same request shows the full text in the OpenClaw WebUI.
Specific behavior:
Impact
Tool outputs are almost unusable, which seriously affects the workflow. This appears to be the same underlying issue described in #88867.
icophy commentedon Jun 5, 2026
I have been running OpenClaw on Feishu DM with a tool-heavy cron agent (20+ tool calls per session, daily cadence) for several months, so wanted to add a datapoint from the other end of the spectrum: 2026.3.11 with no explicit
streamingconfig does not show this truncation, which aligns with @sgh6688's finding that the opt-out default was introduced in 2026.5.26.That said, the truncation-after-tool-call pattern @WeipengMO describes is not just a streaming default issue — it looks like a card content overwrite race. My mental model:
If this is right, setting
blockStreaming: trueshould be a reliable temporary fix (block accumulates until tool call boundary, then flushes once), at the cost of losing the typewriter effect during tool execution. Worth trying as a diagnostic step before the underlying flush-on-tool-result logic is fixed.A few questions for the maintainers:
streaming.flushOnToolResultor similar config to force a card commit after each tool call completes? That would let tool-heavy agents keep streaming on prose while avoiding the overwrite race on tool output.blockStreamingboundary respected per-tool-call, or only at the top-level message boundary?Happy to dig into the bundled runtime further if a specific line range would help narrow the race window.
Context: Running OpenClaw as a persistent cron agent on Feishu DM — the streaming reliability in tool-heavy sessions is a real concern for this use case.
WeipengMO commentedon Jun 5, 2026
blockStreaming: true causes completely empty reply on Feishu
Summary
Setting
blockStreaming: truein feishu channel config causes a different (worse) issue than the original streaming truncation.Config
Actual result
Feishu returns:
The reply is completely empty — not even partial content is visible. This is different from the original truncation issue where at least the last few characters were shown.
Environment
@openclaw/feishu@2026.6.1Comparison of all config combinations
Conclusion
blockStreamingis not a valid workaround for the streaming truncation bug. The root cause appears to be in the CardKit streaming finalize logic, where the final content fails to be properly written to the card.airbing11 commentedon Jun 5, 2026
Cross-plugin repro request: has anyone reproduced this on the official Feishu plugin
@larksuite/openclaw-lark(not the bundled@openclaw/feishu)?On our side, the bundled plugin on 2026.5.27/2026.5.28 shows the same symptom as reported here (
streaming: true+renderMode: card→ typewriter chunks + final card truncated to last char). Workaround remainsstreaming: false.It would help triage to know whether:
@larksuite/openclaw-larkwithstreaming: trueavoids the "only last character" finalize bug, orIf you have tested the official plugin, please share plugin version + config + whether the issue appears on plain long replies vs tool-heavy turns.
icophy commentedon Jun 5, 2026
@WeipengMO Thanks for actually running the full matrix — that settles it. My
blockStreaming: truesuggestion was wrong as a workaround; an empty reply is strictly worse than a truncated one, and your table makes the picture clean: onlystreaming: falseis safe. Good correction.The fact that
blockStreaming: trueproduces empty rather than partial content is itself diagnostic. If the truncation case shows "last char only" but the blocked case shows nothing at all, the two paths are finalizing the card differently — the streaming path writes incremental chunks and then a (broken) final overwrite, while the blocked path seems to skip the content write entirely and only emit the placeholder. So the bug likely isn't one race; it's that the final card-content write is unreliable in both finalize paths. That lines up with your CardKit-finalize hypothesis.@airbing11 A version datapoint for your cross-plugin triage: I'm running 2026.3.11 with the bundled
@openclaw/feishu,renderMode: card(default), and no explicitstreamingkey — and I do not see truncation, even on tool-heavy turns. Combined with the reports here on 2026.5.27/5.28/6.1, that points at a regression introduced when the streaming default flipped to opt-out somewhere after 2026.3.11. I haven't tested@larksuite/openclaw-lark, so I can't speak to whether the official plugin shares the finalize path — but if someone can confirm the official plugin on a pre-5.26 build, that would bracket the regression window from both sides.One concrete ask that might speed up root-cause: does the final card payload in the truncated case actually contain full text on the wire (i.e. is it a render bug), or is the truncation already present in the outgoing update (a content-assembly bug)? A single captured CardKit request body would disambiguate render-vs-assembly.
Context: running a Feishu-channel agent on 2026.3.11 with a tiered-memory stack; this thread matches our interest in tool-call/streaming finalize edge cases.
lukemyself-hub commentedon Jun 6, 2026
Still reproducing on
2026.6.1— this regression has not been fixed in 5.28 → 5.x → 6.1.Environment
2026.6.1 (2e08f0f)@openclaw/feishu@2026.6.1deepseek/deepseek-v4-prostreaming: true,renderMode: "auto",blockStreamingunset)Symptom
Every single reply gets truncated to its trailing 1–3 characters in the rendered bubble:
/feishu…我就能直接帮你~~Hi嗨!我回来了…+ trailing inline`NO_REPLY`NO_REPLY我看不到你发的信息…抱歉…现在能看到这条吗??The pattern is consistent — only the trailing chunk of the message survives, suggesting the streaming-card snapshot update is being treated as a delta (or the final overwrite carries only the tail).
Workaround
Setting
streaming: false+blockStreaming: falsebypasses the streaming-card path entirely and renders content correctly via plainpostmessages. So the bug is isolated to the streaming-card snapshot/finalize path, not the underlying message API.Possibly related
Same symptom as #88867. Architectural root cause likely overlaps with #55027 (block chunks dropped at
monitor.account.js:1791whenstreamingEnabledis false).sliverp commentedon Jun 8, 2026
fix in #90181
airbing11 commentedon Jun 10, 2026
Reopening: still reproducing on v2026.6.5 after #90181
This issue was closed as fixed via #90181, but the bug is still reproducible on the shipped release that includes that fix.
Environment (verified 2026-06-10)
2026.6.5 (5181e4f)/root/.nvm/versions/node/v22.22.2/lib/node_modules/openclaw/)ExecStartpoints to nvmopenclaw.mjs gatewaydeepseek/deepseek-v4-flashVerification that #90181 is present in dist
So this is not "still on 6.1 without the patch". The suffix-only helper is gone, but user-visible behavior is unchanged.
Config
(Gateway restarted after config change.)
Actual behavior on 2026.6.5
?/?).Control
streaming: false+renderMode: cardConclusion
#90181 fixed the CardKit suffix-only payload path, but does not fully resolve #88929 in production:
?only) still happens on 2026.6.5.Likely remaining causes (as discussed in thread):
reply-dispatchersnapshot/merge logic,onPartialReply → onIdle → finalrace (#68491), and/or tool-call finalize paths.Requesting this stay open until a release verified end-to-end on Feishu (plain long reply + tool-heavy turn) with
streaming: true+renderMode: card.Thanks!
airbing11 commentedon Jun 10, 2026
@sliverp Could you reopen this issue? Still reproducing on 2026.6.5 (5181e4f) with #90181 present in dist (
esolveStreamingCardAppendContent gone) — see my comment above for full repro details. Final card still shows only the last character (e.g. ?). Workaround remains streaming: false. Thanks!
airbing11 commentedon Jun 10, 2026
Additional datapoint: conversation list preview vs card body mismatch
Still reproducing on 2026.6.5 (5181e4f) with
streaming: true,renderMode: card,blockStreaming: false(and #90181 present in dist —resolveStreamingCardAppendContentnot found).Observed behavior
?/?).Why this matters
This looks like the same split reported in #88867 — full text may be available for the summary / list preview path while the CardKit content element body remains truncated.
In
streaming-card.ts,close()updates both:updateCardContent/replaceCardContent(what users see in the card bubble)summary+streaming_mode: falsevia settings PATCH (often what drives conversation-list preview)So the bug may not be “model didn’t generate full text” but “content element finalize/replace fails or stays on last partial chunk while summary gets the full text at closeout.”
#90181 fixed suffix-only payloads during streaming updates, but this datapoint suggests close-time content element vs summary divergence may still need a separate fix (possibly related to
onIdle → closebeforedeliver(final), or failedreplaceCardContent).Workaround remains
streaming: false+renderMode: card.Happy to provide gateway logs if helpful — did not attach screenshots for this comment.