Skip to content

The open source coding agent.

TypeScript

fix: typeerror case

Aiden Cline1fc6c6fb2abc
diff --git a/packages/opencode/src/format/index.ts b/packages/opencode/src/format/index.ts
index 0cc7bcdc7df..9cb4545b0dc 100644
--- a/packages/opencode/src/format/index.ts
+++ b/packages/opencode/src/format/index.ts
@@ -41,6 +41,9 @@ export namespace Format {
extensions: [],
...item,
})
+
+ if (result.command.length === 0) continue
+
result.enabled = async () => true
result.name = name
formatters[name] = result