From 2eec86cc87d23086d6c0545cc94903429da56109 Mon Sep 17 00:00:00 2001 From: rezero-household Date: Sun, 1 Mar 2026 14:46:04 -0800 Subject: [PATCH] fix: use correct auth field in gateway WebSocket handshake MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OpenClaw gateway configured with auth.mode='token' expects { token: '...' } in the connect handshake params, not { password: '...' }. Sending 'password' causes the gateway to reject the handshake, resulting in a disconnect→reconnect loop that floods the error log. Tested against OpenClaw gateway v2026.2.25 with auth.mode='token'. --- src/lib/websocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/websocket.ts b/src/lib/websocket.ts index dcf3eb3..b3bb372 100644 --- a/src/lib/websocket.ts +++ b/src/lib/websocket.ts @@ -146,7 +146,7 @@ export function useWebSocket() { role: 'operator', scopes: ['operator.admin'], auth: authTokenRef.current - ? { password: authTokenRef.current } + ? { token: authTokenRef.current } : undefined } }