Skip to content

[Bug]: file-transfer plugin nodeHostCommands not advertised by Windows node host on live handshake (2026.5.3-1) #77730

Closed as not planned

Description

@produtoramaxvision

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

  1. Pair a Windows 11 node to a Linux ARM64 (Ubuntu 24.04) gateway running openclaw@2026.5.3-1 via TLS over Tailscale: openclaw node install --host <gateway>.tailnet --port 8443 --tls --tls-fingerprint <fp> --display-name <name>.
  2. 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"] } }
  3. On the Windows node-local ~/.openclaw/openclaw.json, ensure:
    "plugins": {
      "allow": ["browser", "device-pair", "file-transfer", "openai"],
      "entries": { "file-transfer": { "enabled": true } }
    }
  4. Restart gateway service AND node host service (Scheduled Task or openclaw node restart).
  5. Confirm openclaw plugins list on Windows shows File Transfer ... enabled, and the plugin physical path <npm-prefix>/node_modules/openclaw/dist/extensions/file-transfer/ exists.
  6. From any agent chat with the gateway, request the agent to call dir_list against 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.allow and plugins.entries.file-transfer.enabled: true are set in the node-local openclaw.json.
  • openclaw plugins list on Windows reports File Transfer ... enabled (loaded successfully on the local CLI registry).
  • paired.json on the gateway has been refreshed (via openclaw node install --force) and contains the expected caps: [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.allowCommands correctly opts the dangerous commands into the allowlist (without this, the error is is not in the allowlist for platform "win32"; with it, the error becomes the 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.allowCommands gate (Gate 1) — passes after adding file.fetch, file.write, dir.list, dir.fetch to gateway config (dangerous: true commands per node-command-policy.ts require explicit opt-in; PLATFORM_DEFAULTS for windows does not include them).
  • ✅ paired.json cache (storage) — manually edited and confirmed refreshed after openclaw node install --force (caps, commands, version all current).
  • ❌ declaredCommands gate (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:

  1. ensureNodeHostPluginRegistry may apply a scope filter that drops plugins whose register(api) requires a gateway-only API surface, even though their nodeHostCommands array could be registered in isolation.
  2. The plugin loader may require OPENCLAW_BUNDLED_PLUGINS_DIR env var to be set in node host context — node.cmd generated by openclaw node install --force does not set it.
  3. 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.

Activity

  1. clawsweeper commented on May 5, 2026

    @clawsweeper
    Contributor

    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

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.

    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:

    • No maintainer-side Windows current-main live reproduction was run, so the exact drop point is still unproven.
    • The remaining failure could be node-local config loading, bundled plugin resolution, runtime registry activation/reuse, pending reapproval, or gateway reconciliation.
    • Any fix must preserve gateway.nodes.allowCommands, file-transfer path policy, and the dangerous node command trust boundary.

    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:

    • file-transfer declares node-host commands: Current main defines file.fetch, dir.list, dir.fetch, and file.write as file-transfer nodeHostCommands with cap=file and dangerous=true. (extensions/file-transfer/index.ts:42, 881ec2f93f37)
    • node-host handshake depends on plugin registry output: runNodeHost loads the node-host plugin registry, reads listRegisteredNodeHostCapsAndCommands, and appends pluginNodeHost.commands to the GatewayClient connect payload. (src/node-host/runner.ts:253, 881ec2f93f37)
    • plugin bridge reads active runtime registry commands: ensureNodeHostPluginRegistry loads scope=all and listRegisteredNodeHostCapsAndCommands returns command ids from registry.nodeHostCommands, so an incomplete active registry would match the reported missing command surface. (src/node-host/plugin-node-host.ts:20, 881ec2f93f37)
    • gateway rejection path matches the report: node.invoke resolves the node command allowlist and then requires the command to be present in the live nodeSession.commands declaration before forwarding. (src/gateway/server-methods/nodes.ts:1409, 881ec2f93f37)
    • declared-command gate fails closed: isNodeCommandAllowed returns command not declared by node when the allowlist permits a command but declaredCommands omits it. (src/gateway/node-command-policy.ts:421, 881ec2f93f37)
    • tests do not prove the Windows live handshake: The file-transfer test proves static descriptor registration and the node-host registry test uses a synthetic active registry; neither proves packaged Windows node-host live advertisement. (extensions/file-transfer/index.test.ts:34, 881ec2f93f37)

    Likely related people:

    • omarshahine: The file-transfer feature commit introduced the bundled plugin, its four node-host commands, and the related policy surface, with Omar Shahine credited as co-author. (role: file-transfer feature contributor; confidence: high; commits: 0603c2327d3e; files: extensions/file-transfer/index.ts, extensions/file-transfer/src/node-host/dir-list.ts, extensions/file-transfer/src/shared/node-invoke-policy.ts)
    • steipete: Recent GitHub history shows work on file-transfer lazy loading, runtime plugin preload/reuse, and node-host runtime documentation adjacent to this command activation path. (role: recent plugin runtime and node-host contributor; confidence: high; commits: 91bb76d8b9de, da2a8bd6bbc5, 026cfb6ba1bb; files: extensions/file-transfer/index.ts, src/plugins/runtime/runtime-registry-loader.ts, src/node-host/runner.ts)
    • vincentkoc: The open exec-approval advertisement PR and recent node-host/gateway history touch the same Windows node command advertisement surface while explicitly separating this issue as distinct. (role: recent adjacent Windows command advertisement contributor; confidence: medium; commits: 486d285c24f1, 58de2b689fdf; files: src/gateway/node-command-policy.ts, src/gateway/node-connect-reconcile.test.ts, src/node-host/runner.ts)
    • samzong: Recent file-transfer history includes avoiding eager invoke policy load, which is adjacent to the plugin runtime loading path involved in node-host command registration. (role: recent file-transfer runtime contributor; confidence: medium; commits: c746ec5fc721; files: extensions/file-transfer/index.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. openclaw-barnacle commented on May 31, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  3. added
    P2Normal backlog priority with limited blast radius.
    impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    on May 31, 2026
  4. added
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    and removed
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    on Jun 14, 2026
  5. added
    maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.
    on Jun 28, 2026
  6. openclaw-barnacle commented on Jul 13, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  7. clawsweeper commented on Jul 14, 2026

    @clawsweeper
    Contributor

    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.

  8. openclaw-barnacle commented on Jul 22, 2026

    @openclaw-barnacle

    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.

  9. locked as resolved and limited conversation to collaborators on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions