refactor(chat): remove pagination-related state and logic from chat components

This commit is contained in:
2026-07-13 17:06:12 +08:00
parent b126b83c4c
commit cd0351b923
11 changed files with 18 additions and 169 deletions
+1 -10
View File
@@ -31,13 +31,7 @@ export interface ChatState {
creditsCharged: number;
requiredCredits: number;
shortfallCredits: number;
isLoadingMore: boolean;
hasMore: boolean;
historyOffset: number;
/** history 首屏可展示标志(本地快照加载完成即可进入 ready)
* - 网络历史加载完成后会再次刷新消息列表
* - 不被 `loadMoreHistoryActor` 设置(翻页是另一码事)
*/
/** history 首屏可展示标志(本地快照加载完成即可进入 ready)。 */
historyLoaded: boolean;
paymentUnlockPending: boolean;
unlockHistoryPromptVisible: boolean;
@@ -66,9 +60,6 @@ export const initialState: ChatState = {
creditsCharged: 0,
requiredCredits: 0,
shortfallCredits: 0,
isLoadingMore: false,
hasMore: true,
historyOffset: 0,
historyLoaded: false,
paymentUnlockPending: false,
unlockHistoryPromptVisible: false,