Aiden Cline 1 месяц назад
Родитель
Сommit
7aa1dbe873
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      packages/opencode/src/tool/bash.ts

+ 1 - 0
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()