Fix build.
This commit is contained in:
parent
b9e9da4354
commit
0d5aa42467
1 changed files with 3 additions and 3 deletions
|
|
@ -307,13 +307,13 @@ impl<P: ModelProvider> Orchestrator<P> {
|
|||
///
|
||||
/// Matches on known tool names to extract structured fields; falls back to
|
||||
/// `Generic` with a JSON summary for anything else.
|
||||
fn build_tool_display(&self, tool_name: &str, input: &serde_json::Value) -> ToolDisplay {
|
||||
async fn build_tool_display(&self, tool_name: &str, input: &serde_json::Value) -> ToolDisplay {
|
||||
match tool_name {
|
||||
"write_file" => {
|
||||
let path = input["path"].as_str().unwrap_or("<unknown>").to_string();
|
||||
let new_content = input["content"].as_str().unwrap_or("").to_string();
|
||||
// Try to read existing content for diffing.
|
||||
let old_content = self.sandbox.read_file(&path).ok();
|
||||
let old_content = self.sandbox.read_file(&path).await.ok();
|
||||
ToolDisplay::WriteFile {
|
||||
path,
|
||||
old_content,
|
||||
|
|
@ -405,7 +405,7 @@ impl<P: ModelProvider> Orchestrator<P> {
|
|||
}
|
||||
};
|
||||
|
||||
let display = self.build_tool_display(tool_name, input);
|
||||
let display = self.build_tool_display(tool_name, input).await;
|
||||
|
||||
// Check approval.
|
||||
let approved = match risk {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue