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:
parent
d13b9b7df9
commit
00a944c9a9
|
|
@ -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'],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue