fix(web): render cold sessions from a small initial page (#1809)

* fix(web): speed up cold session first paint

* test(web): update pagination fixtures for cold page

* test(web): wait for cold page before loading history

* feat(native): match cold session pagination

* test(native): cover cached re-entry page size
This commit is contained in:
Ananovo
2026-09-14 09:07:14 +08:00
committed by GitHub
parent c9eb90e928
commit b41b9293e9
22 changed files with 235 additions and 22 deletions
@@ -19,8 +19,10 @@ public enum MessageWindowConstants {
/// Separate trim bucket for codex `agent-run-*` rows so background-agent
/// traces don't evict chat.
public static let agentRunWindowSize = 800
/// Request size for every page fetch.
/// Request size for ordinary latest/reset, forward, and older-page fetches.
public static let pageSize = 200
/// Request size for a genuinely cold latest page, prioritizing first paint.
public static let initialPageSize = 20
}
public enum MessageViewMode: String, Sendable {