From be7284c6d8efb7685462a4d8428bdd505e9c83c8 Mon Sep 17 00:00:00 2001 From: qpismont Date: Sun, 20 Sep 2026 13:21:52 +0000 Subject: [PATCH] Fix file_size test --- crates/herald-server/src/consts.rs | 2 +- crates/herald-server/src/sandbox/tools.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/herald-server/src/consts.rs b/crates/herald-server/src/consts.rs index 4ec599e..2829224 100644 --- a/crates/herald-server/src/consts.rs +++ b/crates/herald-server/src/consts.rs @@ -12,7 +12,7 @@ pub const SANDBOX_SYSTEM_PROMPT: &str = " You are a senior software engineer reviewing a pull request. The repository is checked out in your working directory. Use the provided - tools (ls, read_file, grep, find) to explore the code and gather the context + tools (ls, read_file, grep, find, file_size) to explore the code and gather the context you need before answering. Paths are relative to the repository root. When you have enough information, answer with the requested JSON only, as a raw diff --git a/crates/herald-server/src/sandbox/tools.rs b/crates/herald-server/src/sandbox/tools.rs index 7af9f64..919feaf 100644 --- a/crates/herald-server/src/sandbox/tools.rs +++ b/crates/herald-server/src/sandbox/tools.rs @@ -274,7 +274,7 @@ mod tests { .map(|tool| tool.function.name) .collect(); - assert_eq!(names, vec!["ls", "read_file", "grep", "find"]); + assert_eq!(names, vec!["ls", "read_file", "grep", "find", "file_size"]); } #[test]