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 ca1b9b1 commit 1f123bfCopy full SHA for 1f123bf
crates/assistant_tools/src/terminal_tool.rs
@@ -131,8 +131,12 @@ impl Tool for TerminalTool {
131
Err(err) => return Task::ready(Err(err)).into(),
132
};
133
let program = self.determine_shell.clone();
134
- let command = format!("({}) </dev/null", input.command);
135
- let args = vec!["-c".into(), command.clone()];
+ let command = if cfg!(windows) {
+ format!("$null | & {{{}}}", input.command.replace("\"", "'"))
136
+ } else {
137
+ format!("({}) </dev/null", input.command)
138
+ };
139
+ let args = vec!["-c".into(), command];
140
let cwd = working_dir.clone();
141
let env = match &working_dir {
142
Some(dir) => project.update(cx, |project, cx| {
0 commit comments