summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-11 14:46:47 -0600
committerAiden Cline <[email protected]>2025-12-11 14:46:58 -0600
commit4f5abe387d347901ccebbb64e83df301f767738f (patch)
tree55806742e392b8879509d8857391821abd8d9d62
parent7d55aeee0aa70c105e4c7d7beb226f932556ce54 (diff)
downloadopencode-4f5abe387d347901ccebbb64e83df301f767738f.tar.gz
opencode-4f5abe387d347901ccebbb64e83df301f767738f.zip
tweak: bash tool deny msg
-rw-r--r--packages/opencode/src/tool/bash.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/tool/bash.ts b/packages/opencode/src/tool/bash.ts
index 6b0b9d410..cd1b3b982 100644
--- a/packages/opencode/src/tool/bash.ts
+++ b/packages/opencode/src/tool/bash.ts
@@ -188,7 +188,7 @@ export const BashTool = Tool.define("bash", async () => {
const action = Wildcard.allStructured({ head: command[0], tail: command.slice(1) }, permissions)
if (action === "deny") {
throw new Error(
- `The user has specifically restricted access to this command, you are not allowed to execute it. Here is the configuration: ${JSON.stringify(permissions)}`,
+ `The user has specifically restricted access to this command: "${command.join(" ")}", you are not allowed to execute it. The user has these settings configured: ${JSON.stringify(permissions)}`,
)
}
if (action === "ask") {