refactor(chat): consolidate unlock state

This commit is contained in:
2026-07-16 19:49:08 +08:00
parent b5990bca8b
commit acabf165cd
7 changed files with 152 additions and 110 deletions
@@ -80,7 +80,7 @@ export function useChatUnlockCoordinator({
const chatState = useChatSelector(
(state) => ({
historyLoaded: state.context.historyLoaded,
isUnlockingHistory: state.context.isUnlockingHistory,
isUnlockingHistory: state.matches({ userSession: "unlockingHistory" }),
lockedHistoryCount: state.context.lockedHistoryCount,
unlockHistoryError: state.context.unlockHistoryError,
unlockHistoryPromptVisible: state.context.unlockHistoryPromptVisible,