huskies: merge 856

This commit is contained in:
dave
2026-04-29 21:28:41 +00:00
parent db526bbdb2
commit a7b1572693
13 changed files with 319 additions and 36 deletions
@@ -181,6 +181,13 @@ pub(in crate::agents::pool) async fn run_server_owned_completion(
"[agents] Server-owned completion for '{story_id}:{agent_name}': gates_passed={gates_passed}"
);
// Notify chat transports of the agent completion result.
let _ = watcher_tx.send(WatcherEvent::AgentCompleted {
story_id: story_id.to_string(),
agent_name: agent_name.to_string(),
success: gates_passed,
});
let report = CompletionReport {
summary: "Agent process exited normally".to_string(),
gates_passed,
+4
View File
@@ -217,6 +217,10 @@ pub(super) async fn run_agent_spawn(
status: "running".to_string(),
});
AgentPool::notify_agent_state_changed(&watcher_tx_clone);
let _ = watcher_tx_clone.send(WatcherEvent::AgentStarted {
story_id: sid.clone(),
agent_name: aname.clone(),
});
// Step 4: launch the agent process via the configured runtime.
let runtime_name = config_clone