mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tweak: bash tool deny msg
This commit is contained in:
parent
7d55aeee0a
commit
4f5abe387d
1 changed files with 1 additions and 1 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue