fix(opencode): skip MCP resource image normalization
This commit is contained in:
parent
f7510a8e84
commit
c92707ca94
1 changed files with 1 additions and 1 deletions
|
|
@ -992,7 +992,7 @@ export const layer = Layer.effect(
|
|||
)
|
||||
|
||||
const parts = yield* Effect.forEach(resolvedParts, (part) =>
|
||||
part.type === "file" && part.mime.startsWith("image/")
|
||||
part.type === "file" && part.source?.type !== "resource" && part.mime.startsWith("image/")
|
||||
? image.normalize(part).pipe(
|
||||
Effect.catchIf(
|
||||
(error) => error instanceof Image.ResizerUnavailableError,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue