Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit e09af2c

Browse files
committed
fix windows bash tool issue
1 parent 14bd3b1 commit e09af2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/tool/bash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const log = Log.create({ service: "bash-tool" })
2222

2323
const resolveWasm = (asset: string) => {
2424
if (asset.startsWith("file://")) return fileURLToPath(asset)
25-
if (asset.startsWith("/")) return asset
25+
if (asset.startsWith("/") || /^[a-z]:/i.test(asset)) return asset
2626
const url = new URL(asset, import.meta.url)
2727
return fileURLToPath(url)
2828
}

0 commit comments

Comments
 (0)