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
+1 -4
View File
@@ -230,10 +230,7 @@ pub fn load_pipeline_state(ctx: &AppContext) -> Result<PipelineState, String> {
/// Build a map from story_id → AgentAssignment for all pending/running agents.
fn build_active_agent_map(ctx: &AppContext) -> HashMap<String, AgentAssignment> {
let agents = match ctx.services.agents.list_agents() {
Ok(a) => a,
Err(_) => return HashMap::new(),
};
let agents = ctx.services.agents.list_agents_nonblocking();
let config_opt = ctx
.state