Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
dir_list is exposed to agents even when nodes status returns no available nodes, causing models to guess invalid node values and fail directory listing attempts.
Steps to reproduce
- Start an OpenClaw session with the bundled file-transfer tools available.
- Ensure no paired nodes are available;
openclaw nodes status/nodes statusreturns an empty node list. - Ask the agent to list a local workspace directory, for example
skillsorscriptsor whatever exists there. - Observe that the agent attempts to use
dir_list. - Observe failed calls such as missing
node, then guessed values likeauto,host,local, orgateway. - Each guessed node fails with
unknown node.
Expected behavior
When no paired nodes are available, dir_list should not be exposed to the agent, or it should immediately return a clear error explaining that no paired nodes exist and that local workspace directories require local file/exec tools.
The tool and node parameter descriptions should make clear that node must be an existing paired node id/name/ip from nodes status, not values like local, host, gateway, or auto.
Actual behavior
dir_list is available even though nodes status returns an empty node list.
The agent does not know what value to use for the required node parameter and guesses values such as auto, host, local, and gateway. Each attempt fails with unknown node, so a simple directory listing task wastes multiple turns before falling back to local shell/file tools.
OpenClaw version
2026.6.1 (2e08f0f)
Operating system
Windows 11
Install method
npm install -g openclaw@2026.6.1
Model
ollama/gemma4:26b
Provider / routing chain
OpenClaw gateway -> local Ollama provider
Additional provider/model setup details
No response
Logs, screenshots, and evidence
• Relevant observed tool-call sequence from the affected session:
1. dir_list called with:
{"path":"Tasks"}
Result:
Validation failed for tool "dir_list":
- node: must have required properties node
2. dir_list retried with guessed node:
{"node":"auto","path":"Tasks"}
Result:
unknown node: auto
3. dir_list retried with guessed node:
{"node":"host","path":"Tasks"}
Result:
unknown node: host
4. dir_list retried with guessed node:
{"node":"local","path":"Tasks"}
Result:
unknown node: local
5. dir_list retried with guessed node:
{"node":"gateway","path":"."}
Result:
unknown node: gateway
6. nodes status later returned:
{"nodes":[]}
The session then used local shell/file tooling instead, which worked for listing the local workspace.Impact and severity
Impact: Agents can fail or waste multiple turns on simple directory listing tasks because dir_list appears to be a local
directory tool but requires a paired node. This is especially harmful for smaller/local models, but was observed with
ollama/gemma4:26b as well.
Severity: Medium / P2-P3. It does not crash OpenClaw or lose data, but it breaks a common workflow and makes the file- transfer tool surface misleading when no nodes are available.
Additional information
No response
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 8, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 8, 2026, 2:32 PM ET / 18:32 UTC.
Summary
Keep this open: current main still ships the same non-optional file-transfer tool exposure, and
dir_liststill requires a paired node after the model has already selected the tool. The shipped v2026.6.1 source has the same behavior, and I found no merged or open canonical fix in the provided context or local searches.Reproducibility: yes. there is a high-confidence source-level reproduction path: with no paired nodes, the default file-transfer plugin can still expose
dir_list, and execution then returnsnode requiredorunknown nodefor guessed values. I did not run a live Windows/Ollama session.Next step
A focused repair is clear from source inspection, has no protected labels or linked open PR in the provided context, and can be validated with narrow file-transfer/node-resolution tests.
Review details
Best possible solution:
Land a plugin-owned repair that gives
dir_lista clear no-paired-nodes path and stronger node-parameter wording, hiding it dynamically only if the existing plugin tool resolver can do that without adding a new config surface.Do we have a high-confidence way to reproduce the issue?
Yes, there is a high-confidence source-level reproduction path: with no paired nodes, the default file-transfer plugin can still expose
dir_list, and execution then returnsnode requiredorunknown nodefor guessed values. I did not run a live Windows/Ollama session.Is this the best way to solve the issue?
Yes, a narrow plugin-owned fix is the best layer: improve the file-transfer descriptor and no-node execution behavior without changing local filesystem tools or adding config. Dynamic hiding is acceptable only if it fits the existing plugin tool discovery contract.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 105d77d486bf.
Label changes
Label changes:
P2: This is a normal-priority behavior bug in a bundled tool surface that can waste agent turns but does not crash, lose data, or break core startup.impact:other: The issue affects agent tool selection and user workflow clarity, which is maintainer-visible but does not fit the more specific impact labels.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state selects this label.Label justifications:
P2: This is a normal-priority behavior bug in a bundled tool surface that can waste agent turns but does not crash, lose data, or break core startup.impact:other: The issue affects agent tool selection and user workflow clarity, which is maintainer-visible but does not fit the more specific impact labels.Evidence reviewed
Acceptance criteria:
What I checked:
dir_listduring plugin registration alongside the other file-transfer tools, with no paired-node availability check at registration time. (extensions/file-transfer/index.ts:102, 105d77d486bf)dir_listin its tool contract, so normal plugin tool resolution can surface it without node availability metadata. (extensions/file-transfer/openclaw.plugin.json:6, 105d77d486bf)src/plugins/manifest-contract-eligibility.ts:21, 105d77d486bf)dir_listschema says the node is an id, name, or IP resolved like the nodes tool, but it does not say the value must come fromnodes statusor that local/host/gateway/auto are invalid. (extensions/file-transfer/src/tools/descriptors.ts:46, 105d77d486bf)resolveNodeIdFromList(nodes, input.node, false), so an empty node list is discovered after the model has selecteddir_list. (extensions/file-transfer/src/tools/node-tool-invoke.ts:49, 105d77d486bf)node required, and unmatched guessed values throwunknown node: <value>with no no-paired-nodes guidance when the candidate list is empty. (src/shared/node-resolve.ts:17, 105d77d486bf)Likely related people:
extensions/file-transfer/index.ts,extensions/file-transfer/src/tools/descriptors.ts,extensions/file-transfer/src/tools/node-tool-invoke.ts)dir_listto fix(file-transfer): require canonical node policy authorization #74742, which is the feature surface implicated by this issue. (role: likely original feature contributor; confidence: medium; files:CHANGELOG.md,extensions/file-transfer)CHANGELOG.md,extensions/file-transfer/index.ts)node required/unknown nodebehavior used by file-transfer tools. (role: adjacent node-resolution owner; confidence: high; commits: 27519cf06157, a1346a519a13, 06bc9f368b01; files:src/shared/node-match.ts,src/shared/node-resolve.ts,src/agents/tools/nodes-utils.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.wilfried-codex commentedon Jun 8, 2026
Adding the required issue-report phrase from the OpenClaw issue guidelines:
lobster-biscuitfix(file-transfer): clarify missing paired node errors
vincentkoc commentedon Jun 8, 2026
Fixed on
mainin 224086e.What changed:
nodeparameter descriptions now say the value must be an existing paired node id/display name/IP fromnodes status, not guesses likelocal,host,gateway, orauto.unknown noderetries.dir_listregression covering the no-node diagnostic and descriptor wording.Verification:
node scripts/run-vitest.mjs extensions/file-transfer/src/tools/dir-list-tool.test.tspassed.node scripts/run-vitest.mjs extensions/file-transfer/src/tools/dir-list-tool.test.ts extensions/file-transfer/index.test.ts src/shared/node-match.test.ts src/agents/tools/nodes-utils.test.tspassed.node scripts/run-vitest.mjs extensions/file-transfer/src/tools/file-fetch-tool.test.ts extensions/file-transfer/src/tools/file-write-tool.test.tspassed.node_modules/.bin/oxfmt --check --threads=1 extensions/file-transfer/src/tools/descriptors.ts extensions/file-transfer/src/tools/node-tool-invoke.ts extensions/file-transfer/src/tools/dir-list-tool.test.tspassed.git diff --checkpassed..agents/skills/autoreview/scripts/autoreview --mode localreturned clean:autoreview clean: no accepted/actionable findings reported.blacksmith-testbox, idtbx_01ktm9b26p891sf6k78cm0dq78, Actions run https://github.com/openclaw/openclaw/actions/runs/27159852235, lanesextensions, extensionTests, exit 0.Workflow Sanitysuccess,Plugin NPM Releasesuccess,ClawSweeper Dispatchsuccess, plus skipped neutral agent workflows. At close time, push-triggered CI was still draining onebuild-artifactsjob and a push-triggered Blacksmith Testbox run was still in progress; no failing exact-SHA run was observed. The explicit Testbox-through-Crabbox changed gate above is the maintainer gate for this patch.No related open issue/PR duplicate was found in the live search for
dir_list unknown node local host gateway no paired nodes.fix(file-transfer): clarify missing paired node errors