Improve local tool execution and shell output panes
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user