Increase SSE activity debounce to 500ms

Reduce per-route SSE activity event frequency by doubling the server-side debounce window from 250ms to 500ms.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
GitHub Copilot
2026-02-14 19:34:44 +00:00
parent eb0465403e
commit 157da5deb9
+1 -1
View File
@@ -283,7 +283,7 @@ func (s *LocalServer) markRouteActivity(routeKey string) {
s.mu.Lock() s.mu.Lock()
s.routeLastActivity[routeKey] = now s.routeLastActivity[routeKey] = now
last := s.routeLastSSE[routeKey] last := s.routeLastSSE[routeKey]
if now.Sub(last) < 250*time.Millisecond { if now.Sub(last) < 500*time.Millisecond {
s.mu.Unlock() s.mu.Unlock()
return return
} }