fix: apply the review items for #678 at merge

docs: document the SSE connect timeout next to the staleness watchdog in src/web/CLAUDE.md and docs/architecture-invariants.md (clear order, replaced-EventSource guards, offline handler leaves the timer)
test: rename the offline case to "connectSSE() while offline cancels the pending timer" so it names the path it drives

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer committed 2026-10-24 13:59:17 +02:00
1 parent 886bf9fa0b
commit f4f9001a4b
3 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -194,7 +194,7 @@ describe('SSE connect timeout', () => {
expect(app.reconnectAttempts).toBe(1);
});
it('going offline cancels the pending timer (the online event reconnects)', () => {
it('connectSSE() while offline cancels the pending timer (the online event reconnects)', () => {
const app = makeApp();
app.connectSSE();
navigatorStub.onLine = false;