Fix bad cd sometimes used by BashTool and set edit model temperature to 0 (#26656)

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2025-03-13 11:47:00 +01:00 committed by GitHub
parent 70c973f6c3
commit 4ecd1b5174
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -11,6 +11,9 @@ use util::command::new_smol_command;
#[derive(Debug, Serialize, Deserialize, JsonSchema)] #[derive(Debug, Serialize, Deserialize, JsonSchema)]
pub struct BashToolInput { pub struct BashToolInput {
/// The bash command to execute as a one-liner. /// The bash command to execute as a one-liner.
///
/// WARNING: you must not `cd` into the working directory, as that's already
/// taken care of automatically. Doing so will cause the command to fail!
command: String, command: String,
/// Working directory for the command. This must be one of the root directories of the project. /// Working directory for the command. This must be one of the root directories of the project.
working_directory: String, working_directory: String,

View file

@ -151,7 +151,7 @@ impl EditFilesTool {
messages, messages,
tools: vec![], tools: vec![],
stop: vec![], stop: vec![],
temperature: None, temperature: Some(0.0),
}; };
let mut parser = EditActionParser::new(); let mut parser = EditActionParser::new();