From 157da5deb94b5e3f67a7c4752c4e26b47c61727b Mon Sep 17 00:00:00 2001 From: GitHub Copilot Date: Sat, 14 Feb 2026 19:34:44 +0000 Subject: [PATCH] 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> --- go/webterm/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/webterm/server.go b/go/webterm/server.go index cb17b61..2e5f9cb 100644 --- a/go/webterm/server.go +++ b/go/webterm/server.go @@ -283,7 +283,7 @@ func (s *LocalServer) markRouteActivity(routeKey string) { s.mu.Lock() s.routeLastActivity[routeKey] = now last := s.routeLastSSE[routeKey] - if now.Sub(last) < 250*time.Millisecond { + if now.Sub(last) < 500*time.Millisecond { s.mu.Unlock() return }