Skip to content

[Bug]: WebSocket continuously disconnects and reconnects #46103

@chefroger

Description

@chefroger

Bug type

Regression (worked before, now fails)

Summary

Environment:

  • OpenClaw: 2026.2.9
  • macOS: 25.3
  • Browser: Chrome/Safari both have the issue

Steps to reproduce:

  1. Open http://127.0.0.1:18789/chat
  2. Wait a few seconds

Actual result:

  • WebSocket disconnects/reconnects every second (code=1001)
  • UI shows disconnected icon (triangle with !)
  • Cannot chat at all

Logs:
webchat disconnected code=1001 reason=n/a (repeating)
webchat connected ... (immediate reconnect)
Repeats 1-2 times per second

Steps to reproduce

Steps to reproduce:

  1. Open http://127.0.0.1:18789/chat
  2. Wait a few seconds

Expected behavior

WebSocket should maintain stable connection, user should be able to chat normally without disconnection issues.

Actual behavior

  • WebSocket disconnects/reconnects every second (code=1001)
  • UI shows disconnected icon (triangle with !)
  • Cannot chat at all

OpenClaw version

2026.3.12

Operating system

macOS 26.3.1

Install method

No response

Model

minimax m2.1

Provider / routing chain

minimax-portal/minimax-m2.1

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions