mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 05:02:44 +00:00
fix: execute sandboxed file ops inside containers (#4026)
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: 795ec6aa2f
Co-authored-by: davidbors-snyk <240482518+davidbors-snyk@users.noreply.github.com>
Co-authored-by: steipete <58493+steipete@users.noreply.github.com>
Reviewed-by: @steipete
This commit is contained in:
@@ -798,7 +798,10 @@ export async function runEmbeddedAttempt(
|
||||
historyMessages: activeSession.messages,
|
||||
maxBytes: MAX_IMAGE_BYTES,
|
||||
// Enforce sandbox path restrictions when sandbox is enabled
|
||||
sandboxRoot: sandbox?.enabled ? sandbox.workspaceDir : undefined,
|
||||
sandbox:
|
||||
sandbox?.enabled && sandbox?.fsBridge
|
||||
? { root: sandbox.workspaceDir, bridge: sandbox.fsBridge }
|
||||
: undefined,
|
||||
});
|
||||
|
||||
// Inject history images into their original message positions.
|
||||
|
||||
Reference in New Issue
Block a user