# OpenClaw WebChat keeps reconnecting: isolate the WebSocket drop

Canonical: https://cwyn.com/pages/openclaw-guide-webchat-reconnect-loop.html
Last updated: 2026-11-23T05:18:30-05:00

OpenClaw operations guide

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 November 23, 2026 · Published November 17, 2026

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](https://community.openclaw.ai/t/force-refreshing-webchat-ui-every-30s-after-upgrade-to-11-1/392) 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](https://docs.openclaw.ai/web/webchat) 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](https://github.com/openclaw/openclaw/issues/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](https://cwyn.com/score) to choose your next setup improvement.

## Related guides

- [Pair a device with the OpenClaw Gateway](https://cwyn.com/pages/openclaw-guide-gateway-device-pairing.html)
- [OpenClaw Gateway high CPU: diagnose event-loop lag and disconnects](https://cwyn.com/pages/openclaw-guide-gateway-high-cpu.html)
- [OpenClaw Signal messages missing after reconnect: check inbound recovery](https://cwyn.com/pages/openclaw-guide-signal-messages-missing-after-reconnect.html)
- [OpenClaw dashboard 404 or missing Control UI assets](https://cwyn.com/pages/openclaw-guide-control-ui-assets-missing.html)

## Next steps

- [All 135 OpenClaw guides](https://cwyn.com/guides/openclaw/)
- [OpenClaw setup walkthrough](https://cwyn.com/setup/openclaw/)
- [CWYN Score](https://cwyn.com/pages/score.html)
- [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html)

### Keep a working WebChat configuration

Use the rollback checklist in the [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html), an optional paid kit, to record the local Gateway settings that kept the test session connected.
Kit details as of Nov 22, 2026

OpenClaw Complete Setup Pack $14.95

Start an OpenClaw workspace with editable instructions, local Gateway and tool presets, and checklists for pairing, memory, costs and rollback.
