fix(image): allow workspace and sandbox media paths (#15541)

This commit is contained in:
Tyler Yust
2026-02-14 17:15:15 -08:00
committed by Vignesh
parent ceae46ce33
commit edb06170f5
7 changed files with 139 additions and 4 deletions

View File

@@ -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 }),
})