fix(#1643): filter destroyed-agent targets from dashboard schedule view

This commit is contained in:
damocles 2026-06-13 15:58:44 +02:00
commit e08122a206
4 changed files with 117 additions and 8 deletions

View file

@ -696,6 +696,10 @@ pub async fn destroy(coord: &Arc<Coordinator>, name: &str, purge: bool) -> Resul
// purge — recompute either way).
coord.rescan_containers_and_emit().await;
crate::dashboard::emit_tombstones_snapshot(coord).await;
// Re-emit the schedules snapshot: the rescan above refreshed the live
// roster, so any schedule that still targets the just-destroyed agent
// now drops that ghost column live (no page reload needed).
coord.emit_schedules_snapshot();
Ok(())
}