惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
B
Blog
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
爱范儿
爱范儿
博客园_首页
博客园 - 聂微东
量子位
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
The Cloudflare Blog
T
Tailwind CSS Blog
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
腾讯CDC

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: allow safe Windows companion node commands (#71884) ...
shanselman · 2026-04-28 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -62,6 +62,10 @@ Docs: https://docs.openclaw.ai

6262

- Agents/failover: seed non-claude-cli fallback prompts with Claude Code session context when a claude-cli attempt fails, so fallback models do not restart cold after billing or quota failover. (#72069) Thanks @stainlu.

6363

- Agents/CLI runner: transfer bundle-MCP tempDir cleanup from the per-turn runner finally to the Claude live-session lifecycle, so persistent Claude CLI sessions keep their `--mcp-config` directory until the live subprocess closes. Fixes #73244. Thanks @edwin-rivera-dev.

6464
65+

### Fixes

66+
67+

- Gateway/nodes: allow Windows companion nodes to use safe declared commands such as canvas, camera list, location, device info, and screen snapshot by default while keeping dangerous media commands opt-in. (#71884) Thanks @shanselman.

68+
6569

## 2026.4.27

6670
6771

### Changes

Original file line numberDiff line numberDiff line change

@@ -451,7 +451,7 @@ See [Plugins](/tools/plugin).

451451

- `trustedProxies`: reverse proxy IPs that terminate TLS or inject forwarded-client headers. Only list proxies you control. Loopback entries are still valid for same-host proxy/local-detection setups (for example Tailscale Serve or a local reverse proxy), but they do **not** make loopback requests eligible for `gateway.auth.mode: "trusted-proxy"`.

452452

- `allowRealIpFallback`: when `true`, the gateway accepts `X-Real-IP` if `X-Forwarded-For` is missing. Default `false` for fail-closed behavior.

453453

- `gateway.nodes.pairing.autoApproveCidrs`: optional CIDR/IP allowlist for auto-approving first-time node device pairing with no requested scopes. It is disabled when unset. This does not auto-approve operator/browser/Control UI/WebChat pairing, and it does not auto-approve role, scope, metadata, or public-key upgrades.

454-

- `gateway.nodes.allowCommands` / `gateway.nodes.denyCommands`: global allow/deny shaping for declared node commands after pairing and allowlist evaluation.

454+

- `gateway.nodes.allowCommands` / `gateway.nodes.denyCommands`: global allow/deny shaping for declared node commands after pairing and platform allowlist evaluation. Use `allowCommands` to opt into dangerous node commands such as `camera.snap`, `camera.clip`, and `screen.record`; `denyCommands` removes a command even if a platform default or explicit allow would otherwise include it. After a node changes its declared command list, reject and re-approve that device pairing so the gateway stores the updated command snapshot.

455455

- `gateway.tools.deny`: extra tool names blocked for HTTP `POST /tools/invoke` (extends default deny list).

456456

- `gateway.tools.allow`: remove tool names from the default HTTP deny list.

457457
Original file line numberDiff line numberDiff line change

@@ -188,6 +188,23 @@ openclaw nodes invoke --node <idOrNameOrIp> --command canvas.eval --params '{"ja

188188
189189

Higher-level helpers exist for the common “give the agent a MEDIA attachment” workflows.

190190
191+

## Command policy

192+
193+

Node commands must pass two gates before they can be invoked:

194+
195+

1. The node must declare the command in its WebSocket `connect.commands` list.

196+

2. The gateway's platform policy must allow the declared command.

197+
198+

Windows and macOS companion nodes allow safe declared commands such as

199+

`canvas.*`, `camera.list`, `location.get`, and `screen.snapshot` by default.

200+

Dangerous or privacy-heavy commands such as `camera.snap`, `camera.clip`, and

201+

`screen.record` still require explicit opt-in with

202+

`gateway.nodes.allowCommands`. `gateway.nodes.denyCommands` always wins over

203+

defaults and extra allowlist entries.

204+
205+

After a node changes its declared command list, reject the old device pairing

206+

and approve the new request so the gateway stores the updated command snapshot.

207+
191208

## Screenshots (canvas snapshots)

192209
193210

If the node is showing the Canvas (WebView), `canvas.snapshot` returns `{ format, base64 }`.

Original file line numberDiff line numberDiff line change

@@ -718,6 +718,31 @@ describe("resolveNodeCommandAllowlist", () => {

718718

expect(allow.has("screen.record")).toBe(false);

719719

});

720720
721+

it("allows safe Windows companion commands by default but keeps dangerous media gated", () => {

722+

const allow = resolveNodeCommandAllowlist(

723+

{},

724+

{

725+

platform: "Windows_NT",

726+

deviceFamily: "Windows",

727+

},

728+

);

729+
730+

expect(allow.has("canvas.present")).toBe(true);

731+

expect(allow.has("canvas.a2ui.pushJSONL")).toBe(true);

732+

expect(allow.has("camera.list")).toBe(true);

733+

expect(allow.has("location.get")).toBe(true);

734+

expect(allow.has("device.info")).toBe(true);

735+

expect(allow.has("device.status")).toBe(true);

736+

expect(allow.has("screen.snapshot")).toBe(true);

737+

expect(allow.has("system.run")).toBe(true);

738+

expect(allow.has("system.which")).toBe(true);

739+

expect(allow.has("system.notify")).toBe(true);

740+
741+

for (const cmd of DEFAULT_DANGEROUS_NODE_COMMANDS) {

742+

expect(allow.has(cmd)).toBe(false);

743+

}

744+

});

745+
721746

it("can explicitly allow dangerous commands via allowCommands", () => {

722747

const allow = resolveNodeCommandAllowlist(

723748

{

Original file line numberDiff line numberDiff line change

@@ -115,7 +115,14 @@ const PLATFORM_DEFAULTS: Record<string, string[]> = {

115115

...SCREEN_COMMANDS,

116116

],

117117

linux: [...SYSTEM_COMMANDS],

118-

windows: [...SYSTEM_COMMANDS],

118+

windows: [

119+

...CANVAS_COMMANDS,

120+

...CAMERA_COMMANDS,

121+

...LOCATION_COMMANDS,

122+

...DEVICE_COMMANDS,

123+

...SYSTEM_COMMANDS,

124+

...SCREEN_COMMANDS,

125+

],

119126

// Fail-safe: unknown metadata should not receive host exec defaults.

120127

unknown: [...UNKNOWN_PLATFORM_COMMANDS],

121128

};