CodeDashboard 10-second polling has no request deduplication
Severity: Low
File: frontend/src/pages/Code/CodeDashboard.tsx:47
The dashboard polls loadSessions every 10 seconds without checking if a previous request is still in flight. If the backend is slow or the network is congested, multiple concurrent requests pile up, wasting bandwidth and potentially causing race conditions.
useEffect(() => {
loadSessions()
const interval = setInterval(loadSessions, 10000)
return () => clearInterval(interval)
}, [])
Why it matters
Under poor network conditions, the dashboard can spawn dozens of concurrent requests, degrading performance and potentially overwhelming the backend.
CodeDashboard 10-second polling has no request deduplication
Severity: Low
File:
frontend/src/pages/Code/CodeDashboard.tsx:47The dashboard polls
loadSessionsevery 10 seconds without checking if a previous request is still in flight. If the backend is slow or the network is congested, multiple concurrent requests pile up, wasting bandwidth and potentially causing race conditions.Why it matters
Under poor network conditions, the dashboard can spawn dozens of concurrent requests, degrading performance and potentially overwhelming the backend.