diff options
| author | Aiden Cline <[email protected]> | 2026-01-22 10:26:06 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2026-01-22 10:26:06 -0600 |
| commit | 3b7c347b2e3639b475d6ac2edf9600ed7b7bc5cd (patch) | |
| tree | d33f8012d796a9521c53961bee485188d8b88c4c | |
| parent | 2e09d7d83530a8fe1dcaeab2848d881869566441 (diff) | |
| download | opencode-3b7c347b2e3639b475d6ac2edf9600ed7b7bc5cd.tar.gz opencode-3b7c347b2e3639b475d6ac2edf9600ed7b7bc5cd.zip | |
tweak: bash tool, ensure cat will trigger external_directory perm
| -rw-r--r-- | packages/opencode/src/tool/bash.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/tool/bash.ts b/packages/opencode/src/tool/bash.ts index f3a1b04d4..bf7c52494 100644 --- a/packages/opencode/src/tool/bash.ts +++ b/packages/opencode/src/tool/bash.ts @@ -108,7 +108,7 @@ export const BashTool = Tool.define("bash", async () => { } // not an exhaustive list, but covers most common cases - if (["cd", "rm", "cp", "mv", "mkdir", "touch", "chmod", "chown"].includes(command[0])) { + if (["cd", "rm", "cp", "mv", "mkdir", "touch", "chmod", "chown", "cat"].includes(command[0])) { for (const arg of command.slice(1)) { if (arg.startsWith("-") || (command[0] === "chmod" && arg.startsWith("+"))) continue const resolved = await $`realpath ${arg}` |
