Przeglądaj źródła

fix windows bash tool issue

Aiden Cline 4 miesięcy temu
rodzic
commit
e09af2cb4b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/opencode/src/tool/bash.ts

+ 1 - 1
packages/opencode/src/tool/bash.ts

@@ -22,7 +22,7 @@ export const log = Log.create({ service: "bash-tool" })
 
 const resolveWasm = (asset: string) => {
   if (asset.startsWith("file://")) return fileURLToPath(asset)
-  if (asset.startsWith("/")) return asset
+  if (asset.startsWith("/") || /^[a-z]:/i.test(asset)) return asset
   const url = new URL(asset, import.meta.url)
   return fileURLToPath(url)
 }