pass --disallowedTools as a single comma-separated arg
claude-code's commander parser treats --disallowedTools as variadic
<tools...>, which silently absorbs extra tokens but may not enforce
them as reliably as a single comma-separated value. switch to the
form the CLI help documents ("Bash,Agent(Bash)") to make the deny
list unambiguous.
This commit is contained in:
committed by
pullfrog[bot]
parent
6533ffddae
commit
6d0254c7b8
+1
-2
@@ -591,8 +591,7 @@ export const claude = agent({
|
||||
"--effort",
|
||||
effort,
|
||||
"--disallowedTools",
|
||||
"Bash",
|
||||
"Agent(Bash)",
|
||||
"Bash,Agent(Bash)",
|
||||
];
|
||||
|
||||
if (model) {
|
||||
|
||||
Reference in New Issue
Block a user