fix(webui): distinguish unknown history from exhaustion

This commit is contained in:
chengyongru authored and chengyongru committed 2026-11-06 16:10:03 +08:00
1 parent fdd30e6dc9
commit f5c359476b
7 files changed
+99 -9

No files matched your search

+2 -1
View File
@@ -133,7 +133,8 @@ function appendProjectedSessionInput(
function createTranscript(messages: UIMessage[], saved: ThreadTranscriptSnapshot | undefined, historyKey: string | null) {
const owner = new ThreadTranscript(messages, saved);
// The first paint must not enter the welcome layout while history is pending.
owner.paging = { ...owner.paging, loading: !!historyKey && owner.paging.version === 0 };
owner.paging = { ...owner.paging, loading: !!historyKey && owner.paging.version === 0,
hasMoreBefore: historyKey ? owner.paging.hasMoreBefore : false };
return owner;
}