mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-08 17:33:22 +00:00
fix(app): reduce session history page size
This commit is contained in:
parent
44614c79c4
commit
4062b30409
3 changed files with 3 additions and 3 deletions
|
|
@ -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`,
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue