Skip to content

Commit bf09140

Browse files
author
Olivier Mansour
committed
fix: update test patterns for regex-based denied commands
- Change denied command patterns from 'rm' to 'rm .*' to match new regex format - Remove leftover conflict marker - All tests now passing
1 parent cb9d5d2 commit bf09140

File tree

1 file changed

+2
-3
lines changed
  • crates/chat-cli/src/cli/chat/tools/execute

1 file changed

+2
-3
lines changed

crates/chat-cli/src/cli/chat/tools/execute/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ mod tests {
537537
"toolsSettings": {
538538
"execute_bash": {
539539
"allowedCommands": ["ls"],
540-
"deniedCommands": ["rm"],
540+
"deniedCommands": ["rm .*"],
541541
"allowReadOnly": false
542542
}
543543
}
@@ -574,7 +574,7 @@ mod tests {
574574
"toolsSettings": {
575575
"execute_bash": {
576576
"allowedCommands": ["git status", "ls.*"],
577-
"deniedCommands": ["rm"],
577+
"deniedCommands": ["rm .*"],
578578
"allowReadOnly": true
579579
}
580580
}
@@ -671,6 +671,5 @@ mod tests {
671671

672672
// Should ask when settings are invalid (falls back to safe behavior)
673673
assert_eq!(cmd.eval_perm(&agent), PermissionEvalResult::Ask);
674-
>>>>>>> 20b287db (fix: enhance execute tool permission logic for fine-grained command control)
675674
}
676675
}

0 commit comments

Comments
 (0)