mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-30 17:12:58 +08:00
refactor(chat): exclude currentSessionId from dependency array to prevent unnecessary reloading of messages
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user