-
-
Notifications
You must be signed in to change notification settings - Fork 52.8k
Closed
Closed
Copy link
Description
Bug
The Edit tool silently rejects paths outside the current agent's workspace root, returning a misleading File not found error instead of the actual reason.
Steps to Reproduce
- Agent
main(workspace:/home/winnie/.openclaw/workspace/) attempts to edit a file in another agent's workspace - Use the
Edittool with the full absolute path:/home/winnie/.openclaw/agents/pm-frankel/workspace/AGENTS.md - File is confirmed to exist via
find,ls -la, and theReadtool
Observed Behavior
Readtool on the same path → ✅ works fine, returns file contentsEdittool on the same path → ❌File not found(misleading)Writetool on the same path → ❌Path escapes workspace root(correct error message)
Expected Behavior
Either:
- Preferred:
Editshould return the same clear error asWrite:Path escapes workspace root: /home/winnie/.openclaw/agents/pm-frankel/workspace - Alternative:
Editshould be allowed to write to other agent workspaces (same asReadcan access them), since the orchestrator agent legitimately needs to update PM/dev agent workspace files
Impact
- Causes confusion and wasted tool calls debugging a non-existent path problem
- Workaround: use
execwithcat >to write files outside the workspace sandbox - Inconsistent behavior across Read/Edit/Write tools for the same path
Environment
- OpenClaw 2026.2.26
- Multi-agent setup with separate workspace roots per agent
- Agent
mainorchestrating updates topm-frankelworkspace files
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels