From cb516daea0200e06336f166a775b7558d540b76b Mon Sep 17 00:00:00 2001 From: digua Date: Fri, 22 May 2026 21:50:44 +0800 Subject: [PATCH] fix(sync): raise page limit from 50 to 5000 for large chat histories 50 pages (50k messages) was too low for groups with 100k+ messages. Raise to 5000 pages (5M messages) as a safety valve while allowing full-sync to complete in a single pull cycle for most conversations. --- packages/sync/src/pull-engine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sync/src/pull-engine.ts b/packages/sync/src/pull-engine.ts index 68d28adc..8217fc48 100644 --- a/packages/sync/src/pull-engine.ts +++ b/packages/sync/src/pull-engine.ts @@ -22,7 +22,7 @@ import type { } from './types' import type { DataSourceManager } from './data-source-manager' -const MAX_PAGES_PER_PULL = 50 +const MAX_PAGES_PER_PULL = 5000 const PULL_OVERLAP_SECONDS = 60 // ==================== Helpers ====================