Skip to content

The open source coding agent.

TypeScript

test: fix bash test

Aiden Cline7aa1dbe8731c
diff --git a/packages/opencode/src/tool/bash.ts b/packages/opencode/src/tool/bash.ts
index 46058b6658e..965e8d5450f 100644
--- a/packages/opencode/src/tool/bash.ts
+++ b/packages/opencode/src/tool/bash.ts
@@ -108,6 +108,7 @@ export const BashTool = Tool.define("bash", async () => {
for (const arg of command.slice(1)) {
if (arg.startsWith("-") || (command[0] === "chmod" && arg.startsWith("+"))) continue
const resolved = await $`realpath ${arg}`
+ .cwd(cwd)
.quiet()
.nothrow()
.text()