perf(webui): accelerate JSONL session list and thread loading (#5194)

This commit is contained in:
chengyongru
2026-08-03 09:51:35 +08:00
committed by GitHub
parent db6c9effc3
commit 580824a15a
14 changed files with 864 additions and 129 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ import type {
} from "@/lib/types";
const EMPTY_MESSAGES: UIMessage[] = [];
const INITIAL_HISTORY_PAGE_LIMIT = 160;
const INITIAL_HISTORY_PAGE_LIMIT = 80;
const OLDER_HISTORY_PAGE_LIMIT = 120;
const CHAT_CREATE_TIMEOUT_MS = 60_000;
+1 -1
View File
@@ -685,7 +685,7 @@ describe("useSessions", () => {
"tok",
"websocket:paged",
expect.objectContaining({
limit: 160,
limit: 80,
direction: "latest",
signal: expect.any(AbortSignal),
}),