mirror of https://github.com/openclaw/openclaw.git
fix(control-ui): add missing operator.read and operator.write scopes to connect params
The Control UI websocket connect params declared only admin, approvals, and pairing scopes, omitting operator.read and operator.write. This caused the gateway to reject all agent/send RPC calls from the dashboard webchat with "missing scope: operator.write". Add the two missing scopes to the connect params array so dashboard webchat can send messages and read session state. Fixes #52087 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
af4f2a8028
commit
fa0a9ce2af
|
|
@ -242,7 +242,13 @@ export class GatewayBrowserClient {
|
|||
// Gateways may reject this unless gateway.controlUi.allowInsecureAuth is enabled.
|
||||
const isSecureContext = typeof crypto !== "undefined" && !!crypto.subtle;
|
||||
|
||||
const scopes = ["operator.admin", "operator.approvals", "operator.pairing"];
|
||||
const scopes = [
|
||||
"operator.admin",
|
||||
"operator.read",
|
||||
"operator.write",
|
||||
"operator.approvals",
|
||||
"operator.pairing",
|
||||
];
|
||||
const role = "operator";
|
||||
const explicitGatewayToken = this.opts.token?.trim() || undefined;
|
||||
const explicitPassword = this.opts.password?.trim() || undefined;
|
||||
|
|
|
|||
Loading…
Reference in New Issue