Improve local tool execution and shell output panes

This commit is contained in:
2026-08-28 10:20:16 -05:00
parent a69b927cc3
commit 88c1ef9716
23 changed files with 807 additions and 238 deletions
+8 -2
View File
@@ -143,10 +143,16 @@ pub mod text {
SearchCodebaseResult::Cancelled => todo!(),
},
AIAgentActionResultType::Grep(result) => match result {
GrepResult::Success { matched_files } => {
GrepResult::Success {
matched_files,
truncated,
} => {
for file in matched_files {
writeln!(w, "- {file}")?;
}
if *truncated {
writeln!(w, "Additional matches omitted; narrow the query or path.")?;
}
Ok(())
}
GrepResult::Error(error) => writeln!(w, "grep failed: {error}"),
@@ -923,7 +929,7 @@ pub mod json {
SearchCodebaseResult::Cancelled => Some(JsonMessage::ToolCanceled),
},
AIAgentActionResultType::Grep(result) => match result {
GrepResult::Success { matched_files } => {
GrepResult::Success { matched_files, .. } => {
use crate::ai::agent::GrepFileMatch;
let files: Vec<JsonFile> = matched_files
.iter()