fabro/lib
Bryan Helmkamp b886f82622
Clamp backward pagination end bound to the event key-order limit
Event keys zero-pad seq to six digits, so an exclusive end bound past
MAX_EVENT_SEQ formatted as a seven-digit prefix that sorts before real
event keys, producing an inverted scan range. This made the newest page
come back empty once a run reached MAX_EVENT_SEQ, and let a client
supplied before_seq beyond MAX_EVENT_SEQ garble the range. Clamp the
bound and treat anything past MAX_EVENT_SEQ as unbounded; no stored
sequence exceeds it, so the results are equivalent.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 09:50:40 -04:00
..
apps Merge remote-tracking branch 'origin/main' into feat/backward-event-pagination 2026-07-24 09:35:34 -04:00
components Clamp backward pagination end bound to the event key-order limit 2026-07-24 09:50:40 -04:00
foundation Merge remote-tracking branch 'origin/main' into feat/backward-event-pagination 2026-07-24 09:35:34 -04:00
packages/fabro-api-client Merge remote-tracking branch 'origin/main' into feat/backward-event-pagination 2026-07-24 09:35:34 -04:00