File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
crates/chat-cli/src/cli/chat/tools/execute Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ mod tests {
537
537
"toolsSettings" : {
538
538
"execute_bash" : {
539
539
"allowedCommands" : [ "ls" ] ,
540
- "deniedCommands" : [ "rm" ] ,
540
+ "deniedCommands" : [ "rm .* " ] ,
541
541
"allowReadOnly" : false
542
542
}
543
543
}
@@ -574,7 +574,7 @@ mod tests {
574
574
"toolsSettings" : {
575
575
"execute_bash" : {
576
576
"allowedCommands" : [ "git status" , "ls.*" ] ,
577
- "deniedCommands" : [ "rm" ] ,
577
+ "deniedCommands" : [ "rm .* " ] ,
578
578
"allowReadOnly" : true
579
579
}
580
580
}
@@ -671,6 +671,5 @@ mod tests {
671
671
672
672
// Should ask when settings are invalid (falls back to safe behavior)
673
673
assert_eq ! ( cmd. eval_perm( & agent) , PermissionEvalResult :: Ask ) ;
674
- >>>>>>> 20 b287db ( fix: enhance execute tool permission logic for fine-grained command control)
675
674
}
676
675
}
You can’t perform that action at this time.
0 commit comments