fix(chat): render cached history before network sync

This commit is contained in:
2026-07-02 11:51:20 +08:00
parent cd25fa35f2
commit 5821a4d062
7 changed files with 339 additions and 114 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ export interface ChatState {
isLoadingMore: boolean;
hasMore: boolean;
historyOffset: number;
/** history 加载完成标志(initial load —— local → network → save 跑完
* - guestSession.initializing / user sessions initializing 走 always barrier
/** history 首屏可展示标志(本地快照加载完成即可进入 ready
* - 网络历史加载完成后会再次刷新消息列表
* - 不被 `loadMoreHistoryActor` 设置(翻页是另一码事)
*/
historyLoaded: boolean;