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
-6
View File
@@ -26,9 +26,6 @@ interface ChatState {
isReplyingAI: boolean;
upgradePromptVisible: boolean;
upgradeReason: MachineContext["upgradeReason"];
isLoadingMore: boolean;
hasMore: boolean;
historyOffset: number;
/** history 初始加载完成标志(local → network → save 跑完) —— UI 可用此显示 loading */
historyLoaded: boolean;
unlockHistoryPromptVisible: boolean;
@@ -63,9 +60,6 @@ export function ChatProvider({ children }: ChatProviderProps) {
isReplyingAI: state.context.isReplyingAI,
upgradePromptVisible: state.context.upgradePromptVisible,
upgradeReason: state.context.upgradeReason,
isLoadingMore: state.context.isLoadingMore,
hasMore: state.context.hasMore,
historyOffset: state.context.historyOffset,
historyLoaded: state.context.historyLoaded,
unlockHistoryPromptVisible: state.context.unlockHistoryPromptVisible,
lockedHistoryCount: state.context.lockedHistoryCount,