We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c88046d commit e0245ffCopy full SHA for e0245ff
crates/chat-cli/src/cli/chat/tools/execute/mod.rs
@@ -624,12 +624,13 @@ mod tests {
624
#[tokio::test]
625
async fn test_eval_perm_denied_commands_invalid_regex() {
626
let os = Os::new().await.unwrap();
627
+ let tool_name = if cfg!(windows) { "execute_cmd" } else { "execute_bash" };
628
let agent = Agent {
629
name: "test_agent".to_string(),
630
tools_settings: {
631
let mut map = HashMap::<ToolSettingTarget, serde_json::Value>::new();
632
map.insert(
- ToolSettingTarget("execute_bash".to_string()),
633
+ ToolSettingTarget(tool_name.to_string()),
634
serde_json::json!({
635
"deniedCommands": ["^(?!ls$).*"] // Invalid regex with unsupported lookahead
636
}),
0 commit comments