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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review: Copilot round 10
Adam Eivye605dc795ec9
diff --git a/client/src/hooks/useCityData.js b/client/src/hooks/useCityData.jsindex 26ad6f65f7..aa22356c18 100644--- a/client/src/hooks/useCityData.js+++ b/client/src/hooks/useCityData.js@@ -54,8 +54,15 @@ export const useCityData = () => {setLoading(false);}, []);+ const healthInFlightRef = useRef(false);const fetchHealth = useCallback(async () => {+ // In-flight guard: a slow /system/health/details (>15s) would otherwise+ // let the next interval tick fire a concurrent request. Drop the new tick+ // when one is already pending; the next interval picks up fresh state.+ if (healthInFlightRef.current) return;+ healthInFlightRef.current = true;const health = await api.getSystemHealth({ silent: true }).catch(() => null);+ healthInFlightRef.current = false;if (!health) return;setSystemHealth(prev => {if (prev && healthSignature(prev) === healthSignature(health)) return prev;