fix(app): preload more timeline messages (#36172)

This commit is contained in:
Luke Parker 2026-07-14 21:48:38 +10:00 committed by GitHub
commit 729bd438e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 72 additions and 41 deletions

View file

@ -21,7 +21,7 @@ import { dropSessionCaches, pickSessionCacheEvictions, SESSION_CACHE_LIMIT } fro
const cmp = (a: string, b: string) => (a < b ? -1 : a > b ? 1 : 0)
const cmpMessage = (a: Message, b: Message) => a.time.created - b.time.created || cmp(a.id, b.id)
const SKIP_PARTS = new Set(["patch", "step-start", "step-finish"])
const initialMessagePageSize = 2
const initialMessagePageSize = 20
const historyMessagePageSize = 200
const sessionInfoLimit = 2_048
const emptyIDs: ReadonlySet<string> = new Set()