Skip to content

[Bug]: sandboxed agents fail file access and file sending for host absolute workspace paths #57230

@carlos-ferreira

Description

@carlos-ferreira

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

With agents.defaults.sandbox.mode: "all" and agents.defaults.sandbox.workspaceAccess: "rw", observed sandboxed agent sessions failed file access against host absolute workspace paths such as /home/sysadmin/.openclaw/workspace-personal-carlos/... with Sandbox FS error (ENOENT), and file sending worked again after sandbox was disabled.

Steps to reproduce

  1. Configure:
    {
      "agents": {
        "defaults": {
          "sandbox": {
            "mode": "all",
            "scope": "agent",
            "workspaceAccess": "rw"
          }
        }
      }
    }
  2. Start a sandboxed agent session.
  3. Have the agent read, write, or send a file using a host absolute workspace path such as /home/sysadmin/.openclaw/workspace-<agent>/....
  4. Observe file-tool failures with Sandbox FS error (ENOENT).
  5. Change:
    {
      "agents": {
        "defaults": {
          "sandbox": {
            "mode": "off"
          }
        }
      }
    }
  6. Observe that file sending works again.

Expected behavior

With sandbox enabled and workspaceAccess: "rw", agent file access and file sending should work for files in the active agent workspace.

Grounded reference:

  • The documented sandbox workspace for writable workspace access is /workspace.
  • In the observed environment, disabling sandbox restored file sending.

Actual behavior

Observed sandboxed sessions used host absolute workspace paths and failed file access.

Observed evidence:

  • File reads against /home/sysadmin/.openclaw/workspace-personal-carlos/... failed with Sandbox FS error (ENOENT).
  • In an observed file-sending session, the agent attempted to send a file using:
    MEDIA:/home/sysadmin/.openclaw/workspace-personal-carlos/carlos_coverflex_last_month.csv
    
  • In that same session, the guidance shown to the agent stated that absolute MEDIA:/... paths are blocked.
  • After changing agents.defaults.sandbox.mode to "off", file sending worked again.

OpenClaw version

OpenClaw 2026.3.28 (f9b1079)

Operating system

Linux 6.12.74+deb13+1-amd64 x86_64 GNU/Linux

Install method

Global npm install under:
/home/sysadmin/.npm-global/lib/node_modules/openclaw

Model

openai/5.1-mini

Provider / routing chain

Local OpenClaw install -> configured model provider routing to OpenAI.

Additional provider/model setup details

The observed failures were in sandboxed agent file access and file sending, not in model inference output.

Logs, screenshots, and evidence

Observed failing read pattern:

Sandbox FS error (ENOENT): /home/sysadmin/.openclaw/workspace-personal-carlos/...

Observed failing send path:

MEDIA:/home/sysadmin/.openclaw/workspace-personal-carlos/carlos_coverflex_last_month.csv

Observed workaround:

{
  "agents": {
    "defaults": {
      "sandbox": {
        "mode": "off"
      }
    }
  }
}

Local environment evidence:

OpenClaw 2026.3.28 (f9b1079)
Linux 6.12.74+deb13+1-amd64 x86_64 GNU/Linux
Global npm root: /home/sysadmin/.npm-global/lib/node_modules

Impact and severity

  • File access failed in observed sandboxed agent sessions when host absolute workspace paths were used.
  • File sending was broken in the observed environment until sandbox was disabled.

Additional information

Observed docs alignment:

  • workspaceAccess: "rw" documents /workspace as the writable sandbox workspace.
  • The failing sessions still used host absolute workspace paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions