From 84a0868e66e1e315963208962d5218c39a549903 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Tue, 9 Dec 2025 14:24:30 -0600 Subject: [PATCH] fix: read when file is svg --- packages/opencode/src/tool/read.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/tool/read.ts b/packages/opencode/src/tool/read.ts index e1ba84524..27426ad24 100644 --- a/packages/opencode/src/tool/read.ts +++ b/packages/opencode/src/tool/read.ts @@ -93,7 +93,7 @@ export const ReadTool = Tool.define("read", { throw new Error(`File not found: ${filepath}`) } - const isImage = file.type.startsWith("image/") + const isImage = file.type.startsWith("image/") && file.type !== "image/svg+xml" const isPdf = file.type === "application/pdf" if (isImage || isPdf) { const mime = file.type