openclaw - ✅(Solved) Fix sandbox explain: show effective mounts [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#62988Fetched 2026-04-09 07:59:46
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
cross-referenced ×1

Add an "Effective mounts" section to openclaw sandbox explain so users can quickly see the sandbox file-system exposure (workspace/agent mounts + docker binds).

Root Cause

Add an "Effective mounts" section to openclaw sandbox explain so users can quickly see the sandbox file-system exposure (workspace/agent mounts + docker binds).

Fix Action

Fixed

PR fix notes

PR #63003: sandbox explain: show effective mounts

Description (problem / solution / changelog)

Fixes #62988

Purpose

Make openclaw sandbox explain immediately show the sandbox file-system exposure (effective mounts), so users can reason about permission boundaries at a glance.

Changes

  • JSON output: add sandbox.mounts: Array<{ source, hostRoot, containerRoot, writable }>
  • Text output: print a new Effective mounts: section after Effective sandbox:
  • Ordering: deterministic mounts order (workspace → agent → bind)

Test plan

  • pnpm -s test src/commands/sandbox-explain.test.ts

Local output (manual spot-check)

pnpm -s openclaw sandbox explain

Effective sandbox:
  ...

Effective mounts:
  - source: workspace containerRoot: /workspace hostRoot: /Users/luo/.openclaw/sandboxes/agent-main-f331f052 writable: false

Made with Cursor

Changed files

  • src/commands/sandbox-explain.test.ts (modified, +98/-0)
  • src/commands/sandbox-explain.ts (modified, +48/-1)
RAW_BUFFERClick to expand / collapse

Summary

Add an "Effective mounts" section to openclaw sandbox explain so users can quickly see the sandbox file-system exposure (workspace/agent mounts + docker binds).

Changes

  • JSON: add sandbox.mounts: Array<{ source, hostRoot, containerRoot, writable }>
  • Text output: print Effective mounts: after Effective sandbox:
  • Deterministic order: workspace → agent → bind

Acceptance criteria

  • pnpm -s openclaw sandbox explain shows the new section
  • pnpm -s openclaw sandbox explain --json includes sandbox.mounts
  • Tests cover default mounts + custom bind mount scenario

Test plan

  • pnpm -s test src/commands/sandbox-explain.test.ts

extent analysis

TL;DR

To address the issue, update the openclaw sandbox explain command to include an "Effective mounts" section that displays the sandbox file-system exposure.

Guidance

  • Review the src/commands/sandbox-explain.test.ts file to ensure tests cover the required scenarios, including default mounts and custom bind mount scenarios.
  • Modify the JSON output to include sandbox.mounts: Array<{ source, hostRoot, containerRoot, writable }>, as specified in the changes.
  • Update the text output to print "Effective mounts:" after "Effective sandbox:", following the deterministic order of workspace, agent, and bind mounts.
  • Run pnpm -s test src/commands/sandbox-explain.test.ts to verify the changes and ensure the new functionality works as expected.

Example

No code snippet is provided, as the issue does not contain sufficient code context.

Notes

The solution assumes that the openclaw sandbox explain command is already implemented and that the required changes are primarily related to adding a new section and updating the output format.

Recommendation

Apply the workaround by updating the openclaw sandbox explain command to include the "Effective mounts" section, as this will provide the required functionality and allow users to quickly see the sandbox file-system exposure.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING