Description
After upgrading from 2026.2.24 to 2026.2.26, agent file writes to the memory/ subdirectory inside the workspace root are rejected with:
[tools] write failed: Path escapes workspace root: C:\Users\<user>\openclaw-new\memory
The memory/ directory is a direct subdirectory of the configured workspace root (C:\Users<user>\openclaw-new). This worked fine on 2026.2.24.
Steps to Reproduce
- Windows 11 (10.0.26200), Node v22.18.0
- Workspace configured as C:\Users<user>\openclaw-new in ~/.openclaw/openclaw.json
- Upgrade to 2026.2.26 via
pm install -g openclaw@2026.2.26
- Agent attempts to write to memory/2026-03-01.md (or any file in the memory/ subdirectory)
- Write is rejected with
Path escapes workspace root
Expected Behavior
Writes to subdirectories of the workspace root should be allowed.
Actual Behavior
The new path security check in 2026.2.26 incorrectly flags memory/ as escaping the workspace root. Likely a Windows path normalization issue (backslash handling, trailing separator, or case-insensitive comparison).
Environment
- OS: Windows 11 (10.0.26200) x64
- Node: v22.18.0
- OpenClaw: 2026.2.26 (regression from 2026.2.24)
- Shell: pwsh
Workaround
Downgraded to 2026.2.24.
Description
After upgrading from 2026.2.24 to 2026.2.26, agent file writes to the memory/ subdirectory inside the workspace root are rejected with:
[tools] write failed: Path escapes workspace root: C:\Users\<user>\openclaw-new\memoryThe memory/ directory is a direct subdirectory of the configured workspace root (C:\Users<user>\openclaw-new). This worked fine on 2026.2.24.
Steps to Reproduce
pm install -g openclaw@2026.2.26
Path escapes workspace rootExpected Behavior
Writes to subdirectories of the workspace root should be allowed.
Actual Behavior
The new path security check in 2026.2.26 incorrectly flags memory/ as escaping the workspace root. Likely a Windows path normalization issue (backslash handling, trailing separator, or case-insensitive comparison).
Environment
Workaround
Downgraded to 2026.2.24.