huskies: merge 856
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user