OpenClaw operations guide

OpenClaw WebChat keeps reconnecting: isolate the WebSocket drop

Short answer. Trace repeated OpenClaw WebChat reloads or WebSocket disconnects through the browser, Gateway and proxy, then verify session continuity. Use this when the OpenClaw Control UI initially connects but WebChat keeps disconnecting or the page repeatedly reloads. Use a synthetic chat so troubleshooting does not repeat a real task.

Last updated · Published

By CWYN · Reviewed November 17, 2026 · Check command help for your installed version before changing a running system

Use this when the OpenClaw Control UI initially connects but WebChat keeps disconnecting or the page repeatedly reloads. Use a synthetic chat so troubleshooting does not repeat a real task.

1. Tell a page reload from a socket reconnect

In browser developer tools, preserve the Network log. At the next interruption, check whether you get a new Document request, a replacement WebSocket connection, or both. Record the time, elapsed interval and close code if available. An abnormal close such as 1006 describes the disconnect and needs other evidence to identify where it happened. Keep network captures private because they can contain credentials or chat data.

2. Check whether the Gateway restarted

From the intended Gateway host and profile, compare openclaw gateway status, service uptime and openclaw logs --follow against the browser timestamps. If several clients drop together with a fresh service start, look for the restart reason. If the process stays up, look for matching connection close events and compare affected clients. A November OpenClaw Community thread shows the value of comparing browser and server evidence.

3. Compare the normal route with a private route

Use the same authenticated Gateway through an existing approved local or tunneled route. The WebChat reference documents SSH and Tailscale options. If only the normal reverse-proxy path drops, check its WebSocket forwarding, upstream close logs and timeouts against the recorded interval. If both paths drop, compare a clean browser profile using the same access policy and recheck Gateway logs.

4. Check whether the original chat survived

In the same synthetic conversation, confirm the history shows your last completed message and its reply after reconnect. Check the selected agent and session. If you sent a message just before the drop, check its history or active run before sending it again. Issue #121998 describes an older case where the connection returned but the original session was no longer selected.

5. Verify the route that users actually take

After a supported change to the implicated component, repeat the original browser and route under the same idle or active conditions. Observe beyond the earlier drop interval and send one harmless follow-up. A passing check keeps the connection stable and attaches one reply to the intended conversation. Record which route, browser and version passed so the next operator can repeat the check.

Get your free CWYN Score to choose your next setup improvement.

Next steps

Keep a working WebChat configuration

Use the rollback checklist in the OpenClaw Complete Setup Pack ($14.95), an optional paid kit, to record the local Gateway settings that kept the test session connected.
Kit details as of Nov 22, 2026