Converted all external tool calling to async

This commit is contained in:
Timmy
2026-06-29 16:59:54 +01:00
parent 75f41088b1
commit feb35ddd10
49 changed files with 482 additions and 496 deletions
+2 -1
View File
@@ -95,6 +95,7 @@ pub async fn rebuild_and_restart(
// 1. Gracefully stop all running agents.
let running_count = agents
.list_agents()
.await
.unwrap_or_default()
.iter()
.filter(|a| a.status == crate::agents::AgentStatus::Running)
@@ -102,7 +103,7 @@ pub async fn rebuild_and_restart(
if running_count > 0 {
slog!("[rebuild] Stopping {running_count} running agent(s) before rebuild");
}
agents.kill_all_children();
agents.kill_all_children().await;
// 2. Find the workspace root (parent of the server binary's source).
// CARGO_MANIFEST_DIR at compile time points to the `server/` crate;