From 548936ab70a522c4ad7cb7219d3dd9a240fdf9b6 Mon Sep 17 00:00:00 2001 From: damocles Date: Sun, 2 Aug 2026 23:48:43 +0200 Subject: [PATCH] hive-c0re: push Destroyed as a todo, not a broker message --- hive-c0re/src/actions.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hive-c0re/src/actions.rs b/hive-c0re/src/actions.rs index e1ebd17c..602b3990 100644 --- a/hive-c0re/src/actions.rs +++ b/hive-c0re/src/actions.rs @@ -963,9 +963,15 @@ pub async fn destroy(coord: &Arc, name: &str, purge: bool) -> Resul tracing::warn!(%name, error = ?e, "agent_power: remove on destroy failed"); } drop(guard); - coord.notify_manager(&HelperEvent::Destroyed { - agent: name.to_owned(), - }); + coord + .push_todo( + hive_sh4re::MANAGER_AGENT, + "core", + Some(format!("destroyed:{name}")), + format!("agent '{name}' destroyed"), + None, + ) + .await; // Container row disappeared — rescan so the dashboard fires // `ContainerRemoved` for the gone row, then emit the // tombstones snapshot (gained one on destroy, lost one on