openclaw - 💡(How to fix) Fix Regression: Webchat Control UI still opens 2 WebSocket connections (duplicate messages) — v2026.4.24 [3 comments, 3 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#72753Fetched 2026-04-28 06:32:31
View on GitHub
Comments
3
Participants
3
Timeline
5
Reactions
0
Timeline (top)
commented ×3mentioned ×1subscribed ×1

Regression of #23422. Running OpenClaw v2026.4.24, the Control UI opens two simultaneous WebSocket connections on every load, causing every message (user and assistant) to appear twice in the chat UI.

Root Cause

Regression of #23422. Running OpenClaw v2026.4.24, the Control UI opens two simultaneous WebSocket connections on every load, causing every message (user and assistant) to appear twice in the chat UI.

Code Example

2026-04-27T10:06:12.234Z [ws] webchat connected conn=067596d7 client=openclaw-control-ui webchat v2026.4.24
2026-04-27T10:06:25.285Z [ws] webchat connected conn=6eb25b21 client=openclaw-control-ui webchat vcontrol-ui
RAW_BUFFERClick to expand / collapse

Summary

Regression of #23422. Running OpenClaw v2026.4.24, the Control UI opens two simultaneous WebSocket connections on every load, causing every message (user and assistant) to appear twice in the chat UI.

Evidence

Gateway log shows two connections with different version strings on each load:

2026-04-27T10:06:12.234Z [ws] webchat connected conn=067596d7 client=openclaw-control-ui webchat v2026.4.24
2026-04-27T10:06:25.285Z [ws] webchat connected conn=6eb25b21 client=openclaw-control-ui webchat vcontrol-ui

Pattern is consistent — every reconnect produces exactly 2 connections (~13s apart), one reporting v2026.4.24 and the other vcontrol-ui. This differs from the original report where both connections had the same version string (vdev), suggesting two separate components in the Control UI are each initiating their own WebSocket connection.

Steps to Reproduce

  1. Install OpenClaw v2026.4.24
  2. Open Control UI webchat in browser
  3. Check gateway log — two webchat connected lines appear
  4. Send any message — response appears twice

Environment

  • OpenClaw: 2026.4.24
  • OS: Linux 6.8.0-110-generic (x64)
  • Node: v24.13.1
  • Gateway: loopback 127.0.0.1:18789

References

  • Original issue: #23422 (closed/locked)

extent analysis

TL;DR

The issue can be fixed by identifying and merging the duplicate WebSocket connections initiated by separate components in the Control UI.

Guidance

  • Investigate the Control UI code to find the two separate components initiating WebSocket connections and determine why they are using different version strings (v2026.4.24 and vcontrol-ui).
  • Verify that the duplicate connections are causing the messages to appear twice in the chat UI by checking the gateway log and the chat UI output.
  • Consider implementing a mechanism to ensure only one WebSocket connection is established per session, such as using a singleton or a shared connection instance.
  • Review the original issue #23422 for any relevant information or fixes that may have been implemented previously.

Example

No code snippet is provided as the issue does not contain sufficient information about the Control UI code.

Notes

The fix may require modifications to the Control UI code, and it is essential to ensure that the changes do not introduce any new issues or regressions.

Recommendation

Apply a workaround to merge the duplicate WebSocket connections, as the root cause of the issue is likely related to the separate components in the Control UI.

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 Regression: Webchat Control UI still opens 2 WebSocket connections (duplicate messages) — v2026.4.24 [3 comments, 3 participants]