Skip to content

The open source coding agent.

TypeScript

fix: shouldEncode

Adama9700c8773cb
diff --git a/packages/opencode/src/file/index.ts b/packages/opencode/src/file/index.ts
index 821a7365fab..148ab45cb07 100644
--- a/packages/opencode/src/file/index.ts
+++ b/packages/opencode/src/file/index.ts
@@ -73,6 +73,7 @@ export namespace File {
async function shouldEncode(file: BunFile): Promise<boolean> {
const type = file.type?.toLowerCase()
+ log.info("shouldEncode", { type })
if (!type) return false
if (type.startsWith("text/")) return false
@@ -92,7 +93,6 @@ export namespace File {
"bzip",
"compressed",
"binary",
- "stream",
"pdf",
"msword",
"powerpoint",