fix(openclaw-bridge): use 'gateway-client'/'backend' as WS client id/mode

openclaw gateway validates client.id against a fixed set of known IDs.
Using a random UUID caused the connection to be rejected immediately with
'client/id must be equal to constant'. Use 'gateway-client' + 'backend'.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-08 07:30:06 -07:00
parent d13b9b7df9
commit 00a944c9a9
1 changed files with 2 additions and 2 deletions

View File

@ -154,10 +154,10 @@ export class OpenClawClient {
minProtocol: 3, minProtocol: 3,
maxProtocol: 3, maxProtocol: 3,
client: { client: {
id: this.deviceId, id: 'gateway-client',
version: '1.0.0', version: '1.0.0',
platform: 'node', platform: 'node',
mode: 'channel', mode: 'backend',
}, },
role: 'operator', role: 'operator',
scopes: ['operator.read', 'operator.write'], scopes: ['operator.read', 'operator.write'],