fix(webui): distinguish unknown history from exhaustion
This commit is contained in:
1 parent
fdd30e6dc9
commit
f5c359476b
7 files changed
+99
-9
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user