openclaw - 💡(How to fix) Fix [Bug] Control UI context preview panel renders duplicate truncated messages

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

  • This is a frontend rendering bug in the Control UI's context preview component
  • The main chat display is unaffected - only the preview panel has this issue
  • Likely caused by state management in the preview component not properly clearing old message cache when new messages arrive
  • Related to issue #84651 but distinct - that issue is about adding a full-message reader for long messages, this is about duplicate/truncated rendering in the preview panel

Fix Action

Temporary Workaround

Refreshing the page resolves the issue temporarily.

RAW_BUFFERClick to expand / collapse

Bug Description

The Control UI's context preview panel (shown below the main chat) occasionally renders duplicate/truncated versions of previous assistant messages. The preview mixes content from multiple messages together and cuts off mid-sentence, creating a confusing display.

Steps to Reproduce

  1. Open the Control UI (webchat)
  2. Have a multi-turn conversation with the agent
  3. Observe the context preview panel at the bottom of the chat
  4. The preview panel sometimes shows older messages duplicated and truncated, with content from different messages mixed together

Expected Behavior

The context preview panel should either:

  • Show clean, complete message content without duplication
  • Or not display truncated/mixed message content at all

Actual Behavior

  • The preview panel renders partial/duplicate content from previous messages
  • Content from multiple messages gets mixed together in the preview
  • Messages are cut off mid-sentence in the preview panel
  • The issue is visual-only; the main chat bubbles display correctly

Temporary Workaround

Refreshing the page resolves the issue temporarily.

Environment

  • OpenClaw Version: 2026.5.20 (e510042)
  • Model: bailian/qwen3.6-plus
  • UI: Control UI (webchat)
  • OS: macOS
  • Browser: Chrome/Safari (Control UI embedded)

Additional Notes

  • This is a frontend rendering bug in the Control UI's context preview component
  • The main chat display is unaffected - only the preview panel has this issue
  • Likely caused by state management in the preview component not properly clearing old message cache when new messages arrive
  • Related to issue #84651 but distinct - that issue is about adding a full-message reader for long messages, this is about duplicate/truncated rendering in the preview panel

Screenshot

The bug shows a red-bordered preview area at the bottom of the chat that contains:

  • A truncated version of an earlier assistant message
  • Content mixed with messages from later in the conversation
  • Incomplete markdown/text rendering

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug] Control UI context preview panel renders duplicate truncated messages