test(client): align resize fixtures and restore branch coverage

This commit is contained in:
imccyu committed 2026-09-22 22:08:50 +08:00
1 parent fad9e27706
commit f6966f8fab
6 files changed
+33 -10

No files matched your search

@@ -393,7 +393,7 @@ function paginate(
events: readonly SessionEvent[],
beforeSeq: SessionLogOffsetType | undefined,
maxMessages: number,
throughSeq: SessionSeqCursor = events.at(-1)?.seq ?? -1,
throughSeq: SessionSeqCursor,
turnWindow?: SessionPageRequest['turnWindow'],
): { readonly events: SessionEvent[]; readonly hasMore: boolean } {
const end = SessionLogOffset(Math.min(throughSeq + 1, beforeSeq ?? throughSeq + 1))