Repository navigation
Description
Bug: Control UI chat stream rendering regression in 6.1 breaks markdown tables / bold in long agent replies (visible in Feishu DM)
Summary
After upgrading to 2026.6.1, the OpenClaw-X (Control UI) chat stream rendering of agent replies regressed. Long content, markdown tables, and **bold** formatting are truncated, broken, or unparsed in the Control UI view (e.g. OpenClaw-X assistant chat surface). The Feishu-native side (i.e. the actual Lark/Feishu message) renders fine via tag: "markdown" cards, but the user-facing chatbot surface is broken.
This was working in 5.x (tested on 2026.5.31). The regression is confirmed to come from PR #88998 which introduced "stream deltas incrementally, skip markdown work while streaming". The fix is in 2026.6.2-beta.1 via PR #89337 ("Chat/UI/Gateway: preserve visible chat stream text, clear stale stream buffers before terminal commits, reconcile completed sends"), but only 6.2 stable is acceptable per project policy of "no beta in production".
Steps to reproduce
- Install
openclaw@2026.6.1(released 2026-06-03 19:35 UTC). - Configure the Feishu channel with a bot and connect a DM.
- Ask the agent a question that requires a long markdown reply with a table (e.g. a multi-day weather forecast with a markdown table).
- Observe two surfaces:
- Feishu native message (in the Lark/Feishu app): markdown card renders correctly with
**bold**and the table. - OpenClaw-X (Control UI) chat view: the agent reply is truncated to a snippet, the table is rearranged into a broken
| col1 | col2 | col3 |short form with only a few rows/columns visible, and**bold**is not rendered.
- Feishu native message (in the Lark/Feishu app): markdown card renders correctly with
Expected behavior
The Control UI should render the full markdown text in the chat stream, same as 5.x. Tables should not be destructively re-flowed. **bold** should be parsed in streamed updates, not only at the terminal commit.
Actual behavior
- OpenClaw-X view shows only a fragment of the agent reply (looks like first/last few lines or first/last cell of the table).
- Markdown
**bold**is not parsed while the stream is in flight. - Tables are broken/shortened in the stream view.
- The Feishu side is fine because it goes through
sendMarkdownCardFeishu(tag: "markdown", schema 2.0) which is rendered server-side and not affected by perf(ui): keep chat draft local while typing #88998.
Root cause analysis
PR #88998 ("Chat and Control UI startup paths keep sends alive through history loading, unblock the initial Control UI chat send, stream deltas incrementally, skip markdown work while streaming") deliberately postponed markdown parsing to the terminal commit. This breaks long-content and table rendering while the stream is in flight, and depending on viewport the user can see an intermediate / parsed-late state.
The Feishu streaming card path (extensions/feishu/src/streaming-card.ts, FeishuStreamingSession) is not the source of the bug — the cumulative mergeStreamingText / resolveStreamingCardAppendContent / updateCardContent logic in 6.1 already correctly appends to the card (verified by diffing 6.1 and 6.2 dist/monitor.account-*.js: the entire feishu streaming-card section is byte-identical after normalising import hashes). The issue is purely in the Control UI rendering layer.
Proposed fix
Backport PR #89337 ("Chat/UI/Gateway: preserve visible chat stream text, clear stale stream buffers before terminal commits, reconcile completed sends") to a 6.1.x patch release, so users who follow the "no beta in production" policy can stay on a stable line.
Workarounds
channels.feishu.renderMode: "card"only fixes the Feishu-native side; OpenClaw-X view is still broken.- Reducing reply length to ≤ 8 lines avoids truncation but is not a real fix.
- Downgrade to 2026.5.31 restores the 5.x behavior (no perf(ui): keep chat draft local while typing #88998 regression).
- Upgrading to 2026.6.2-beta.1 fixes the Control UI view but violates the "no beta in production" guideline.
Environment
- openclaw 2026.6.1 (stable), installed 2026-06-04 12:38 +0800
- node v24.16.0
- Linux 6.17.0-35-generic (x64)
- Chat surface: OpenClaw-X (AI assistant chat)
- Channel: Feishu (DM)
- Model: minimax/MiniMax-M3
- Confirmed files unmodified (SLSA provenance, mtime = install time, version = 2026.6.1)
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 4, 2026
Thanks for the context here. I did a careful shell check against current
main, and this is already implemented.The reported Control UI streaming markdown regression is already fixed in current main and in the latest stable release, so the requested stable-line backport is no longer needed.
So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review details
Best possible solution:
Keep the shipped stable streaming markdown renderer and treat any remaining Feishu-specific display issue as a new narrow report with current-version evidence.
Do we have a high-confidence way to reproduce the issue?
Yes for the old reported behavior from source and related issue context: the regression was in the Control UI streaming markdown renderer, not the Feishu card path. I did not run the old 2026.6.1 package, and current main/release source shows the fixed path.
Is this the best way to solve the issue?
Yes. The current solution is the right layer: Control UI renders stable streaming markdown blocks through a streaming-aware sanitizer path and leaves only the unstable tail as escaped text until final render.
Security review:
Security review: This is non-PR issue triage with no patch security surface to review.
AGENTS.md: found and applied where relevant.
What I checked:
ui/src/ui/chat/grouped-render.ts:1944, 8682d0701b27)ui/src/ui/markdown.ts:1083, 8682d0701b27)ui/src/ui/e2e/chat-flow.e2e.test.ts:321, 8682d0701b27)ui/src/ui/markdown.ts:1083, 0c3644cb2477)ui/src/ui/chat/grouped-render.ts:1944, 8c802aa68351)Likely related people:
ui/src/ui/markdown.ts,ui/src/ui/chat/grouped-render.ts,ui/src/ui/e2e/chat-flow.e2e.test.ts)ui/src/ui/chat/grouped-render.ts,ui/src/styles/chat/text.css)Codex review notes: model internal, reasoning high; reviewed against 8682d0701b27; fix evidence: release v2026.6.6, commit 0c3644cb2477.
lipeng890218 commentedon Jun 4, 2026
lipeng890218 commentedon Jun 4, 2026
Cross-references for context:
cc @vincentkoc (chat/UI work in 6.2), @RomneyDa (#89337 author), @pgondhi987 (Telegram/Feishu 6.2 work)
A 6.1.x backport of #89337 would let users on the "no beta in production" policy get the Control UI fix without jumping to 6.2-beta.1. Is that feasible, or should we wait for 6.2 stable?
openclaw-barnacle commentedon Jun 4, 2026
Please don’t spam-ping multiple maintainers at once. Be patient, or join our community Discord for help: https://discord.gg/clawd