openclaw - 💡(How to fix) Fix [Bug]: Duplicate messages in WebChat: UI renders user input and assistant response twice in a single turn. [1 comments, 2 participants]

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…
GitHub stats
openclaw/openclaw#74965Fetched 2026-05-01 05:39:31
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
2
Timeline (top)
closed ×1commented ×1labeled ×1

Duplicate messages in WebChat: UI renders user input and assistant response twice in a single turn.

Environment (环境):

Core: OpenClaw running on WSL (Windows Subsystem for Linux)

Interface: WebChat (Control UI) accessed via browser

Root Cause

Duplicate messages in WebChat: UI renders user input and assistant response twice in a single turn.

Environment (环境):

Core: OpenClaw running on WSL (Windows Subsystem for Linux)

Interface: WebChat (Control UI) accessed via browser

RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Duplicate messages in WebChat: UI renders user input and assistant response twice in a single turn.

Environment (环境):

Core: OpenClaw running on WSL (Windows Subsystem for Linux)

Interface: WebChat (Control UI) accessed via browser

Steps to reproduce

Start the OpenClaw environment in WSL.

Open the WebChat interface (e.g., http://127.0.0.1:18789/) in a browser.

Type a message and send it.

Expected behavior

One user message and one corresponding assistant response should appear in the chat history. (对话历史中应只显示一条用户消息和一条对应的助手回答。)

Actual behavior

The UI renders the same user message twice, followed by two identical assistant responses. Each turn effectively appears duplicated in the chat window. (UI 界面渲染了两次相同的用户消息,随后出现了两个完全一致的助手回答。每次对话在窗口中实际上都显示了双份。)

OpenClaw version

2026.4.24

Operating system

Windows 11/ wsl / Ubuntu 24.4

Install method

No response

Model

deepseek-v4-flash

Provider / routing chain

openclaw-->clash proxies --> deepseek

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The issue of duplicate messages in WebChat can likely be resolved by investigating and adjusting the message processing logic in the OpenClaw environment, specifically focusing on how user inputs and assistant responses are handled and rendered in the chat history.

Guidance

  • Review the OpenClaw codebase for any recent changes that might affect message processing, especially in the areas responsible for rendering chat history.
  • Verify the configuration of the clash proxies and deepseek-v4-flash model to ensure they are not inadvertently duplicating messages.
  • Check the browser's console for any JavaScript errors that might indicate a client-side issue causing the duplication.
  • Inspect the network requests and responses between the WebChat interface and the OpenClaw backend to identify any potential issues with message handling.

Example

No specific code snippet can be provided without more details on the OpenClaw environment's codebase, but a general approach might involve checking for any loops or recursive functions that could be causing the duplication of messages.

Notes

The solution may depend on the specific implementation details of the OpenClaw environment and the WebChat interface, which are not fully provided in the issue description. Additional logging or debugging may be necessary to pinpoint the exact cause.

Recommendation

Apply a workaround by temporarily modifying the WebChat interface to filter out duplicate messages on the client side, until the root cause can be identified and fixed in the OpenClaw environment. This approach is chosen because it allows for a quicker mitigation of the issue for users while a more permanent fix is developed.

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…

FAQ

Expected behavior

One user message and one corresponding assistant response should appear in the chat history. (对话历史中应只显示一条用户消息和一条对应的助手回答。)

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]: Duplicate messages in WebChat: UI renders user input and assistant response twice in a single turn. [1 comments, 2 participants]