feat: make gateway client ID configurable via OPENCLAW_GATEWAY_CLIENT_ID
The desktop app runs in daemonless mode without device identity files. The gateway clears operator scopes for "gateway-client" connections that lack device identity. Allow the client ID to be overridden via env var so the desktop can identify as "openclaw-control-ui" and receive operator scopes with dangerouslyDisableDeviceAuth enabled. Fallback to "gateway-client" preserves existing behavior for CLI and web users. Bump to v2.3.19. Made-with: Cursor
This commit is contained in:
parent
b78b67aedf
commit
587dd6ae64
@ -386,7 +386,7 @@ export function buildConnectParams(
|
||||
)
|
||||
: DEFAULT_GATEWAY_CLIENT_CAPS;
|
||||
const clientMode = options?.clientMode ?? "backend";
|
||||
const clientId = "gateway-client";
|
||||
const clientId = process.env.OPENCLAW_GATEWAY_CLIENT_ID || "gateway-client";
|
||||
const role = "operator";
|
||||
const scopes = ["operator.read", "operator.write", "operator.admin"];
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "denchclaw",
|
||||
"version": "2.3.18",
|
||||
"version": "2.3.19",
|
||||
"description": "Fully Managed OpenClaw Framework for managing your CRM, Sales Automation and Outreach agents. The only local productivity tool you need.",
|
||||
"keywords": [],
|
||||
"homepage": "https://github.com/DenchHQ/DenchClaw#readme",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user