fix(app): reduce session history page size

This commit is contained in:
LukeParkerDev 2026-08-04 16:42:39 +10:00
parent 44614c79c4
commit 4062b30409
3 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ import { installSseTransport } from "../utils/sse-transport"
import { expectSessionTitle } from "../utils/waits"
const initialPageSize = 20
const historyPageSize = 200
const historyPageSize = 50
const assistants = Array.from({ length: initialPageSize + 1 }, (_, index) =>
assistantMessage([textPart(`prt_history_root_${index}`, `Assistant response ${index}`)], {
id: `msg_${String(index + 1001).padStart(4, "0")}_history_root_assistant`,

View file

@ -29,7 +29,7 @@ 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 = 20
const historyMessagePageSize = 200
const historyMessagePageSize = 50
const sessionInfoLimit = 2_048
const emptyIDs: ReadonlySet<string> = new Set()

View file

@ -634,7 +634,7 @@ export default function LegacyLayout(props: ParentProps) {
running: number
}
const prefetchChunk = 200
const prefetchChunk = 50
const prefetchConcurrency = 2
const prefetchPendingLimit = 10
const span = 4