-
-
Notifications
You must be signed in to change notification settings - Fork 52.6k
Closed
Description
Description
When sandbox.mode="all" is enabled for an agent with workspaceAccess: rw, all filesystem operations (read, write, image loading) fail with:
moltbot-sandbox-fs: 1: Syntax error: ";" unexpected
The sandbox FS helper script appears to have a shell compatibility issue — likely uses bash syntax but gets executed with dash or sh inside the Docker container.
Environment
- OpenClaw: 2026.2.23
- OS: Ubuntu 24.04 (6.8.0-71-generic)
- Docker: 28.2.2 (
docker.iofrom Ubuntu repos) - Node.js: 22.22.0
Config (relevant)
{
"id": "rhr-marketing",
"workspace": "/root/.openclaw/workspace-marketing",
"sandbox": {
"mode": "all",
"workspaceAccess": "rw"
}
}Steps to Reproduce
- Install Docker via
apt install docker.ioon Ubuntu 24.04 - Configure an agent with
sandbox.mode: "all"andsandbox.workspaceAccess: "rw" - Send a message to the agent that triggers a
writeorreadtool call - Tool call fails with
moltbot-sandbox-fs: 1: Syntax error: ";" unexpected
Log Excerpt
2026-02-24T22:41:24.643Z error [tools] write failed: moltbot-sandbox-fs: 1: Syntax error: ";" unexpected
2026-02-24T22:41:19.012Z debug Native image: failed to load media/inbound/68b4663b-bd79-4872-98b5-c6009111244b.png: moltbot-sandbox-fs: 1: Syntax error: ";" unexpected
The error affects all FS operations — write, read, and image loading all fail with the same syntax error.
Workaround
Disabled sandbox.mode and using tools.fs.workspaceOnly=true instead to restrict filesystem access at the config level.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels