Skip to content

Commit a1c8abc

Browse files
committed
fixes tool name derivation for winwdows
1 parent e3378c6 commit a1c8abc

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl ExecuteCommand {
193193

194194
let Self { command, .. } = self;
195195
let tool_name = if cfg!(windows) { "execute_cmd" } else { "execute_bash" };
196-
let is_in_allowlist = agent.allowed_tools.contains("execute_bash");
196+
let is_in_allowlist = agent.allowed_tools.contains(tool_name);
197197
match agent.tools_settings.get(tool_name) {
198198
Some(settings) if is_in_allowlist => {
199199
let Settings {

0 commit comments

Comments
 (0)