Files
DocsGPT/tests
Alex cb3ca8a36b fix(events): skip replay budget INCR when no snapshot work possible
_allow_replay incremented the per-user counter on every
/api/events GET, including no-op connects from a fresh client
with no cursor against an empty backlog. React StrictMode dev
double-mounts plus a few tabs trivially tripped the default
30-per-60s budget on idle reconnects.

XLEN pre-check: when last_event_id is None and the user stream
is empty, the connect can't do snapshot work — return True
without INCR. Cursor-bearing connects still INCR unconditionally
(probing the cursor's relationship to stream contents would
require a redundant XRANGE).
2026-05-12 17:55:08 +01:00
..
2026-04-28 00:14:43 +01:00
2026-04-18 13:13:57 +01:00
2026-04-27 22:09:33 +01:00
2026-04-18 13:13:57 +01:00
2026-05-12 14:29:45 +01:00
2026-03-30 16:13:08 +01:00
2026-04-12 12:35:23 +01:00
2026-03-12 14:46:26 +00:00
2026-04-18 13:13:57 +01:00
2026-04-18 13:13:57 +01:00
2026-04-27 22:09:33 +01:00
2026-03-30 16:13:08 +01:00
2026-04-18 13:13:57 +01:00
2026-04-18 13:13:57 +01:00
2026-03-30 16:13:08 +01:00
2026-01-22 13:11:24 +02:00
2026-04-18 13:13:57 +01:00
2026-03-29 09:46:07 +01:00
2026-04-18 13:13:57 +01:00
2026-04-27 22:09:33 +01:00
2026-04-18 13:13:57 +01:00
2026-04-18 13:13:57 +01:00
2026-03-31 23:10:09 +01:00
2026-03-30 16:13:08 +01:00
2026-04-06 14:42:01 +01:00
2026-04-21 14:22:32 +01:00
2026-04-18 13:13:57 +01:00