Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review (codex): clear stale health when series changes so the loader shows (#1316)

Adam Eivy698bb1b8c896
diff --git a/client/src/components/pipeline/editorial/EditorialHealthPanel.jsx b/client/src/components/pipeline/editorial/EditorialHealthPanel.jsx
index 99819ed842..100f89411f 100644
--- a/client/src/components/pipeline/editorial/EditorialHealthPanel.jsx
+++ b/client/src/components/pipeline/editorial/EditorialHealthPanel.jsx
@@ -82,6 +82,11 @@ export default function EditorialHealthPanel({ seriesId, refreshKey = 0 }) {
.finally(() => { if (activeSeriesRef.current === id) setLoading(false); });
}, []);
+ // Clear stale health when the SERIES changes (not on a same-series refresh) so
+ // the loader shows instead of the previous series' score lingering in-flight.
+ // A keyed effect on seriesId alone keeps a refreshKey-only bump from blanking
+ // the panel mid-view.
+ useEffect(() => { setHealth(null); }, [seriesId]);
useEffect(() => { load(seriesId); }, [seriesId, refreshKey, load]);
const onGateChange = (gate) => {