From c42cb42413162b71ec064bb1323517db7f881c99 Mon Sep 17 00:00:00 2001 From: agent_coder Date: Sun, 12 Jul 2026 05:36:58 +0300 Subject: [PATCH] docs(reload-guard): align header/docstring wording to the window model (#481 review F2 consistency) Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/client/src/lib/reload-guard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/lib/reload-guard.ts b/apps/client/src/lib/reload-guard.ts index cc6a44ac..65011e26 100644 --- a/apps/client/src/lib/reload-guard.ts +++ b/apps/client/src/lib/reload-guard.ts @@ -3,7 +3,7 @@ // Both auto-reload paths — the reactive chunk-load-error-boundary (recovers // AFTER a stale lazy chunk 404s) and the proactive version-coherence feature // (reloads BEFORE the tab hits a stale chunk) — go through these functions so -// they share ONE session-scoped reload budget: at most a single automatic +// they share ONE window-scoped reload budget: at most a single automatic // reload per RELOAD_WINDOW_MS across BOTH paths. A window (rather than a // permanent one-shot flag) lets a SECOND deploy in the same tab's lifetime // recover too, while a permanent skew, node oscillation, or a genuinely-missing @@ -57,7 +57,7 @@ export function hasAutoReloaded(now: number = Date.now()): boolean { /** * Stamp the shared window as consumed now — record that an automatic reload is - * being performed this session. + * being performed within the current RELOAD_WINDOW_MS window. * * Returns whether the write succeeded. A `false` return (storage unavailable) * means the caller MUST NOT reload — otherwise the stamp would never stick and