Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
After upgrading from 2026.4.26 → 2026.5.3-1, the bundled file-transfer plugin's node-side commands (dir.list, file.fetch, dir.fetch, file.write) are never advertised by the Windows node host during the live WebSocket handshake, even though the plugin manifest has enabledByDefault: true, the plugin is enabled in both gateway and node-local openclaw.json (plugins.entries.file-transfer.enabled = true + plugins.allow includes file-transfer), and the gateway side correctly registers the plugin (12 plugins listening, file_fetch/dir_list tools surfaced to agents). All gateway invocations of these tools fail with node command not allowed: the node (platform: win32) does not support "dir.list", which means nodeSession.commands (live handshake payload) does not include the plugin's nodeHostCommands entries.
Steps to reproduce
- Pair a Windows 11 node to a Linux ARM64 (Ubuntu 24.04) gateway running
openclaw@2026.5.3-1via TLS over Tailscale:openclaw node install --host <gateway>.tailnet --port 8443 --tls --tls-fingerprint <fp> --display-name <name>. - On the gateway, ensure config has:
"plugins": { "allow": ["file-transfer", ...], "entries": { "file-transfer": { "enabled": true, "config": { "nodes": { "<name>": { "ask": "off", "allowReadPaths": ["C:\\Users\\<u>\\Desktop"], "allowWritePaths": ["C:\\Users\\<u>\\Desktop"], "denyPaths": [...], "maxBytes": 16777216, "followSymlinks": false } } } } } }, "gateway": { "nodes": { "allowCommands": ["file.fetch", "file.write", "dir.list", "dir.fetch"] } }
- On the Windows node-local
~/.openclaw/openclaw.json, ensure:"plugins": { "allow": ["browser", "device-pair", "file-transfer", "openai"], "entries": { "file-transfer": { "enabled": true } } }
- Restart gateway service AND node host service (Scheduled Task or
openclaw node restart). - Confirm
openclaw plugins liston Windows showsFile Transfer ... enabled, and the plugin physical path<npm-prefix>/node_modules/openclaw/dist/extensions/file-transfer/exists. - From any agent chat with the gateway, request the agent to call
dir_listagainst the paired Windows node.
Observed gateway log line:
[ws] ⇄ res ✗ node.invoke 1ms errorCode=INVALID_REQUEST errorMessage=node command not allowed: the node (platform: win32) does not support "dir.list" conn=... id=...
Expected behavior
Per extensions/file-transfer/index.ts, the plugin exports nodeHostCommands: [{command: "file.fetch", ...}, {command: "dir.list", ...}, {command: "dir.fetch", ...}, {command: "file.write", ...}]. Per src/node-host/runner.ts, the node host should call:
const cfg = getRuntimeConfig();
await ensureNodeHostPluginRegistry({ config: cfg, env: process.env });
const pluginNodeHost = listRegisteredNodeHostCapsAndCommands();
// ...
commands: [...NODE_SYSTEM_RUN_COMMANDS, ...NODE_EXEC_APPROVALS_COMMANDS, ...pluginNodeHost.commands]With file-transfer enabled in node-local config and enabledByDefault: true in the manifest, pluginNodeHost.commands should include ["dir.list", "file.fetch", "dir.fetch", "file.write"], and the connect-handshake commands payload should include them. The gateway gate at src/gateway/server-methods/nodes.ts would then pass:
const allowed = isNodeCommandAllowed({
command,
declaredCommands: nodeSession.commands, // includes dir.list ✅
allowlist, // includes dir.list ✅ (via gateway.nodes.allowCommands)
});Actual behavior
nodeSession.commands includes only ["browser.proxy", "system.run", "system.run.prepare", "system.which"] (the NODE_SYSTEM_RUN_COMMANDS set plus the bundled browser.proxy). It never includes dir.list, file.fetch, dir.fetch, file.write, even though:
plugins.allowandplugins.entries.file-transfer.enabled: trueare set in the node-localopenclaw.json.openclaw plugins liston Windows reportsFile Transfer ... enabled(loaded successfully on the local CLI registry).paired.jsonon the gateway has been refreshed (viaopenclaw node install --force) and contains the expectedcaps: [browser, file-transfer, system]+commands: [browser.proxy, dir.fetch, dir.list, file.fetch, file.write, system.run, system.run.prepare, system.which].- Gateway-side
gateway.nodes.allowCommandscorrectly opts the dangerous commands into the allowlist (without this, the error isis not in the allowlist for platform "win32"; with it, the error becomesthe node (platform: win32) does not support, confirming gates are independent).
The error stays the same across multiple node restarts (Stop/Start ScheduledTask, openclaw node install --force, manual node ... node run ... invocation, fresh node.cmd regeneration). The node host process is alive (PID confirmed), connected (paired.json lastConnectedAtMs updates on each reconnect), and apparently functional for system.run calls — only the plugin-derived commands are missing from the live handshake.
OpenClaw version
2026.5.3-1 (2eae30e) on both gateway (Linux ARM64) and node (Windows 11)
Operating system
Gateway: Ubuntu 24.04 LTS, kernel 6.17.0-1010-oracle, aarch64
Node: Windows 11 Pro 23H2 (10.0.22631.6199), x64
Install method
npm global on both sides (npm install -g openclaw@2026.5.3-1)
Model
google/gemini-3.1-pro-preview-customtools (via openrouter; tool call routing path is the standard agent loop, model choice is incidental — the failure is at the gateway↔node WS layer, not the model layer)
Provider / routing chain
Agent (gateway) → openrouter → google → tool-call → gateway server-methods/nodes.ts → gate fails before node.invoke is forwarded
Additional provider/model setup details
The failing tool is gateway-resident (file-transfer plugin's dir_list tool) which calls node.invoke with command: "dir.list" at the WS layer. Provider routing for the agent is healthy (exec, web_search_v2, etc. work fine in the same session). The failure path is purely:
agent → tool dispatcher → gateway nodes.ts isNodeCommandAllowed → reject (declaredCommands missing)
Additional context (full troubleshooting timeline)
I spent ~50 minutes reading source, applying every documented fix, and validating each gate independently. Summary of what works and what does not:
- ✅
gateway.nodes.allowCommandsgate (Gate 1) — passes after addingfile.fetch, file.write, dir.list, dir.fetchto gateway config (dangerous: truecommands pernode-command-policy.tsrequire explicit opt-in; PLATFORM_DEFAULTS forwindowsdoes not include them). - ✅
paired.jsoncache (storage) — manually edited and confirmed refreshed afteropenclaw node install --force(caps,commands,versionall current). - ❌
declaredCommandsgate (Gate 2) — node host process never advertises plugin commands on the live handshake.
Per src/plugins/runtime/runtime-registry-loader.ts the loader is invoked with scope: "all" and config: <node-local-cfg>. The node-local config has plugins.allow: ["browser","device-pair","file-transfer","openai"] and plugins.entries.file-transfer.enabled: true. Same plugin manifest works on the gateway side (file-transfer is one of the 12 plugins listening; wiki_search etc. are also registered on the gateway).
Hypotheses I could not validate without source-side instrumentation:
ensureNodeHostPluginRegistrymay apply a scope filter that drops plugins whoseregister(api)requires a gateway-only API surface, even though theirnodeHostCommandsarray could be registered in isolation.- The plugin loader may require
OPENCLAW_BUNDLED_PLUGINS_DIRenv var to be set in node host context —node.cmdgenerated byopenclaw node install --forcedoes not set it. pluginNodeHost = listRegisteredNodeHostCapsAndCommands()may be returning{caps: [], commands: []}because the registry is loaded but not committed before the connect payload is built (race / lazy import).
Workaround: use system.run (which is in the platform default and gets advertised) to invoke powershell -Command "Get-ChildItem ...". Loses path policy / byte-cap / approval flow that file-transfer provides.
Happy to instrument and re-test if a maintainer can suggest where to add a console.error('[node-host] plugin nodeHostCommands:', pluginNodeHost.commands) print to confirm which hypothesis is real.
Sanitized config snippets reproducing the issue
Gateway-side (/root/.openclaw/openclaw.json):
{
"plugins": {
"allow": ["acpx","active-memory","browser","copilot-proxy","device-pair","diffs","discord","file-transfer","firecrawl","github-copilot","google","llm-task","lobster","memory-core","memory-wiki","open-prose","openai","opencode","opencode-go","openrouter","pinchtab","searxng-search","tavily","telegram","thread-ownership","voice-call"],
"entries": {
"file-transfer": {
"enabled": true,
"config": {
"nodes": {
"<node-display-name>": {
"ask": "off",
"allowReadPaths": ["C:\\Users\\<user>\\Desktop"],
"allowWritePaths": ["C:\\Users\\<user>\\Desktop"],
"denyPaths": ["C:\\Users\\<user>\\.openclaw","C:\\Users\\<user>\\.ssh","C:\\Users\\<user>\\.aws","C:\\Users\\<user>\\AppData"],
"maxBytes": 16777216,
"followSymlinks": false
}
}
}
}
}
},
"gateway": {
"nodes": {
"allowCommands": ["dir.fetch","dir.list","file.fetch","file.write"]
}
}
}Windows-local (C:\Users\<user>\.openclaw\openclaw.json):
{
"plugins": {
"allow": ["browser","device-pair","file-transfer","openai"],
"entries": {
"browser": { "enabled": true },
"openai": { "enabled": true },
"file-transfer": { "enabled": true }
}
},
"gateway": {
"mode": "remote",
"remote": { "url": "wss://<gateway>.tailnet:8443", "transport": "direct" }
}
}paired.json on gateway (verified post node install --force):
{
"<node-id-hash>": {
"displayName": "<node-display-name>",
"platform": "win32",
"version": "2026.5.3-1",
"caps": ["browser", "file-transfer", "system"],
"commands": ["browser.proxy", "dir.fetch", "dir.list", "file.fetch", "file.write", "system.run", "system.run.prepare", "system.which"]
}
}Repro is fully deterministic in my environment — every restart of the node host yields the same broken handshake.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 5, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 28, 2026, 2:38 PM ET / 18:38 UTC.
Summary
Keep open: current main still has the intended file-transfer node-host declarations and gateway rejection path, but I found no merged/shipped or live Windows proof that the node host now advertises those plugin commands in the handshake. The adjacent exec-approval PR explicitly treats this as a separate plugin-discovery/command-surface issue.
Reproducibility: Partially: source inspection confirms that a live node declaration missing dir.list will be rejected even when the gateway allowlist includes it, but the exact Windows node-host drop point still needs live reproduction.
Ways to help us reproduce this
Next step
Manual/live-repro review is needed because the bug crosses Windows packaging, plugin runtime activation, gateway pairing/reapproval, and dangerous node command policy.
Review details
Best possible solution:
Run a real Windows node-host to gateway proof on current main or the latest release, then fix the generic node-host plugin activation or bundled plugin resolution path if file-transfer commands remain absent after correct approval state.
Do we have a high-confidence way to reproduce the issue?
Partially: source inspection confirms that a live node declaration missing dir.list will be rejected even when the gateway allowlist includes it, but the exact Windows node-host drop point still needs live reproduction.
Is this the best way to solve the issue?
Unclear until live proof identifies where the commands disappear; the fix should repair plugin command advertisement without adding fallback invocation or weakening file-transfer authorization.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 881ec2f93f37.
Label changes
Label justifications:
P2: The report blocks bundled file-transfer tools for paired Windows nodes, but the blast radius is bounded to node-host plugin command advertisement.impact:other: The affected surface is node capability and command advertisement for a bundled plugin, which is maintainer-visible but outside the more specific impact labels.maturity:stable: The issue affects gateway-runtime node transport and remote capability relay, and gateway-runtime is scored M4 Stable.Evidence reviewed
What I checked:
extensions/file-transfer/index.ts:42, 881ec2f93f37)src/node-host/runner.ts:253, 881ec2f93f37)src/node-host/plugin-node-host.ts:20, 881ec2f93f37)src/gateway/server-methods/nodes.ts:1409, 881ec2f93f37)src/gateway/node-command-policy.ts:421, 881ec2f93f37)extensions/file-transfer/index.test.ts:34, 881ec2f93f37)Likely related people:
extensions/file-transfer/index.ts,extensions/file-transfer/src/node-host/dir-list.ts,extensions/file-transfer/src/shared/node-invoke-policy.ts)extensions/file-transfer/index.ts,src/plugins/runtime/runtime-registry-loader.ts,src/node-host/runner.ts)src/gateway/node-command-policy.ts,src/gateway/node-connect-reconcile.test.ts,src/node-host/runner.ts)extensions/file-transfer/index.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.openclaw-barnacle commentedon May 31, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 13, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
clawsweeper commentedon Jul 14, 2026
ClawSweeper status: review started.
I am starting a fresh review of this issue: [Bug]: file-transfer plugin nodeHostCommands not advertised by Windows node host on live handshake (2026.5.3-1) This is item 1/1 in the current shard. Shard 39/44.
This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.
Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.
openclaw-barnacle commentedon Jul 22, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.