refactor(chat): exclude currentSessionId from dependency array to prevent unnecessary reloading of messages

This commit is contained in:
Haileyesus
2026-02-12 20:45:45 +03:00
parent 3c6f353716
commit 022ac21369

View File

@@ -399,7 +399,7 @@ export function useChatSessionState({
loadMessages(); loadMessages();
}, [ }, [
currentSessionId, // Intentionally exclude currentSessionId: this effect sets it and should not retrigger another full load.
isSystemSessionChange, isSystemSessionChange,
loadCursorSessionMessages, loadCursorSessionMessages,
loadSessionMessages, loadSessionMessages,