mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 15:28:27 +00:00
fix: preserve sandbox allow-all semantics
This commit is contained in:
@@ -89,6 +89,9 @@ export function resolveSandboxToolPolicyForAgent(
|
||||
// `image` is essential for multimodal workflows; always include it in sandboxed
|
||||
// sessions unless explicitly denied.
|
||||
if (
|
||||
// Empty allowlist means "allow all" for `isToolAllowed`, so don't inject a
|
||||
// single tool that would accidentally turn it into an explicit allowlist.
|
||||
expandedAllow.length > 0 &&
|
||||
!expandedDeny.map((v) => v.toLowerCase()).includes("image") &&
|
||||
!expandedAllow.map((v) => v.toLowerCase()).includes("image")
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user