Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Description
When using the Feishu channel with streaming enabled, there are two related rendering issues:
-
Long responses get truncated: The Feishu card displays only a partial response. The Control UI/webchat shows the complete response, but the Feishu card cuts off after a certain length.
-
Error messages overwrite correct replies: When a tool call (e.g.,
elevated/sudo) fails, the error message replaces the already-displayed correct reply in the Feishu card.
Environment
- OpenClaw version: 2026.6.5
- Channel: Feishu (streaming mode,
streaming: true) - Model: xiaomi/mimo-v2.5-pro
- OS: macOS (Darwin 25.2.0, arm64)
Steps to Reproduce
Issue 1: Long response truncation
- Send a message via Feishu that requires a long response (e.g., technical explanation with multiple sections)
- Observe the Feishu card during and after streaming
- Compare with the Control UI output
- The Feishu card shows only a partial response, while Control UI shows the full content
Issue 2: Error message overwrites reply
- Trigger a command that requires
elevated/sudopermissions from Feishu - The agent first outputs the correct reply (e.g., "No sudo permission, please run manually...")
- The elevated command fails with an error
- The Feishu card is updated/replaced with the error message, losing the correct reply
Expected Behavior
- Long responses should be fully displayed in the Feishu card (or gracefully truncated with indication)
- Error messages from failed tool calls should NOT overwrite the agent's already-displayed reply
Actual Behavior
- Long responses are silently truncated in Feishu cards
- Error messages replace the correct reply content in Feishu cards
Impact
- Users see incomplete or incorrect content in Feishu
- Creates confusion when the displayed message changes from correct to an error
- Degrades trust in the Feishu channel reliability
Related Issues
- [Feature Request] Hide thinking/reasoning display in Feishu while keeping thinking capability #25014 - [Feature Request] Hide thinking/reasoning display in Feishu
- Bug: Internal thinking process exposed to user via Feishu #88233 - Bug: Internal thinking process exposed to user via Feishu
Additional Context
- This is likely related to Feishu card API update limits (content length caps during streaming updates)
- The issue is specific to the Feishu rendering layer; the agent's output is correct in the Control UI
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon Jun 10, 2026
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.
Close as duplicate/superseded: the Feishu streaming-card truncation and tool-error overwrite symptoms remain real, but the older open canonical issue now tracks the same remaining content-loss, stale-content, and failed-tool-call failure class with broader source evidence and related PR coordination.
Canonical path: Keep #77685 as the canonical Feishu streaming-card reliability tracker and carry this issue's 2026.6.5 config matrix plus CardKit response-code analysis there.
So I’m closing this here and keeping the remaining discussion on #77685.
Review details
Best possible solution:
Keep #77685 as the canonical Feishu streaming-card reliability tracker and carry this issue's 2026.6.5 config matrix plus CardKit response-code analysis there.
Do we have a high-confidence way to reproduce the issue?
Yes at source level, but not with a live Feishu tenant in this pass. Current main still has the implicated streaming-card update/finalization paths, and the comments provide a 2026.6.5 config matrix with consistent Feishu-only truncation symptoms.
Is this the best way to solve the issue?
No as a separate tracker. The best maintainable path is to consolidate the remaining Feishu streaming-card delivery work under the older open canonical issue instead of keeping duplicate issue threads open.
Security review:
Security review: No patch is under review and this issue is not itself a security-sensitive report.
AGENTS.md: found and applied where relevant.
What I checked:
extensions/feishu/src/streaming-card.ts:353, 66079161d72a)extensions/feishu/src/streaming-card.ts:528, 66079161d72a)extensions/feishu/src/reply-dispatcher.ts:621, 66079161d72a)Likely related people:
extensions/feishu/package.json)extensions/feishu/src/streaming-card.ts,extensions/feishu/src/reply-dispatcher.ts)extensions/feishu/src/streaming-card.ts,extensions/feishu/src/streaming-card.test.ts)extensions/feishu/src/streaming-card.ts,extensions/feishu/src/reply-dispatcher.ts,extensions/feishu/src/reply-dispatcher.test.ts)extensions/feishu/src/reply-dispatcher.ts,extensions/feishu/src/reply-dispatcher.test.ts)Codex review notes: model internal, reasoning high; reviewed against 66079161d72a.
airbing11 commentedon Jun 11, 2026
Cross-ref from #88929 (closed as fixed via #90181, but still reproducing for us on shipped 2026.6.5).
Our environment
2026.6.5 (5181e4f)/root/.nvm/versions/node/v22.22.2/lib/node_modules/openclaw/)openclaw.mjs gatewaydeepseek/deepseek-v4-flashstreaming: true,renderMode: card,blockStreaming: falseVerification that #90181 is in dist
So this is not "still on 6.1 without the patch". Suffix-only helper is gone, but user-visible behavior is unchanged.
Symptoms (match both issues here)
?/?).This looks like the summary vs content-element divergence described in #88867 / our #88929 follow-up — full text may reach the summary/closeout path while the CardKit content element stays on the last partial chunk or fails to replace correctly.
Overlap with #91916
streaming: false+renderMode: card→ complete content.deliver(final)replacing accumulatedstreamTextandreplaceCardContenton non-prefix finals align with what we observe (final card stuck on tail punctuation even when list preview looks complete).Happy to provide gateway logs if useful. Original thread: #88929 (author: @airbing11).
airbing11 commentedon Jun 11, 2026
Structured repro: config matrix on 2026.6.5 (still broken after #90181)
Environment
2026.6.5 (5181e4f)@openclaw/feishu@2026.6.5deepseek/deepseek-v4-flash#90181present in dist:resolveStreamingCardAppendContentNOT FOUNDConfig matrix (5 attempts, same symptom every time)
?)Consistent symptoms
?/?)streaming: false+renderMode: card→ complete contentConclusion
renderMode/blockStreaming/ coalesce /chunkModeruled out)reply-dispatcherfinalize path and/or content-element vs summary divergence at close (see ClawSweeper notes on this issue)Cross-ref: #88929 (closed prematurely), author @airbing11