From b42cf799637aafe7d9d1a1a95a1e96746308f777 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 27 Mar 2026 12:51:59 +0000 Subject: [PATCH] fix: add operator.write scope to gateway connect handshake The connect message in SendConnectMessageAsync declared scopes ["operator.admin", "operator.approvals", "operator.pairing"] but omitted "operator.write". The gateway requires this scope for chat.send requests, causing both the built-in QuickSend dialog and custom clients to fail with: Gateway request failed: missing scope: operator.write Closes #112 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/OpenClaw.Shared/OpenClawGatewayClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenClaw.Shared/OpenClawGatewayClient.cs b/src/OpenClaw.Shared/OpenClawGatewayClient.cs index 0e21836..37c2cd2 100644 --- a/src/OpenClaw.Shared/OpenClawGatewayClient.cs +++ b/src/OpenClaw.Shared/OpenClawGatewayClient.cs @@ -300,7 +300,7 @@ private async Task SendConnectMessageAsync(string? nonce = null) displayName = "OpenClaw Windows Tray" }, role = "operator", - scopes = new[] { "operator.admin", "operator.approvals", "operator.pairing" }, + scopes = new[] { "operator.admin", "operator.approvals", "operator.pairing", "operator.write" }, caps = Array.Empty(), commands = Array.Empty(), permissions = new { },