mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 08:37:41 +00:00
fix(image): allow workspace and sandbox media paths (#15541)
This commit is contained in:
@@ -211,6 +211,7 @@ export async function loadImageFromRef(
|
||||
const media = options?.sandbox
|
||||
? await loadWebMedia(targetPath, {
|
||||
maxBytes: options.maxBytes,
|
||||
localRoots: "any",
|
||||
readFile: (filePath) =>
|
||||
options.sandbox!.bridge.readFile({ filePath, cwd: options.sandbox!.root }),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user