@@ -76,7 +76,7 @@ const ChatAI = memo(
7676 const { curChatEnd, setCurChatEnd, connected, setConnected } =
7777 useChatStore ( ) ;
7878
79- const isCurrentLogin = useAuthStore ( state => state . isCurrentLogin ) ;
79+ const isCurrentLogin = useAuthStore ( ( state ) => state . isCurrentLogin ) ;
8080
8181 const visibleStartPage = useConnectStore ( ( state ) => {
8282 return state . visibleStartPage ;
@@ -164,7 +164,7 @@ const ChatAI = memo(
164164 isMCPActive ,
165165 changeInput ,
166166 websocketSessionId ,
167- showChatHistory ,
167+ showChatHistory
168168 ) ;
169169
170170 const { dealMsg } = useMessageHandler (
@@ -320,10 +320,7 @@ const ChatAI = memo(
320320 ) ;
321321
322322 return (
323- < div
324- data-tauri-drag-region
325- className = { `flex flex-col rounded-md relative h-full overflow-hidden` }
326- >
323+ < >
327324 { showChatHistory && ! setIsSidebarOpen && (
328325 < ChatSidebar
329326 isSidebarOpen = { isSidebarOpenChat }
@@ -336,49 +333,53 @@ const ChatAI = memo(
336333 onRename = { renameChat }
337334 />
338335 ) }
339-
340- < ChatHeader
341- clearChat = { clearChat }
342- onOpenChatAI = { openChatAI }
343- setIsSidebarOpen = { toggleSidebar }
344- isSidebarOpen = { isSidebarOpenChat }
345- activeChat = { activeChat }
346- reconnect = { reconnect }
347- isChatPage = { isChatPage }
348- showChatHistory = { showChatHistory }
349- assistantIDs = { assistantIDs }
350- />
351-
352- { isCurrentLogin ? (
353- < ChatContent
336+ < div
337+ data-tauri-drag-region
338+ className = { `flex flex-col rounded-md h-full overflow-hidden` }
339+ >
340+ < ChatHeader
341+ clearChat = { clearChat }
342+ onOpenChatAI = { openChatAI }
343+ setIsSidebarOpen = { toggleSidebar }
344+ isSidebarOpen = { isSidebarOpenChat }
354345 activeChat = { activeChat }
355- curChatEnd = { curChatEnd }
356- query_intent = { query_intent }
357- tools = { tools }
358- fetch_source = { fetch_source }
359- pick_source = { pick_source }
360- deep_read = { deep_read }
361- think = { think }
362- response = { response }
363- loadingStep = { loadingStep }
364- timedoutShow = { timedoutShow }
365- Question = { Question }
346+ reconnect = { reconnect }
347+ isChatPage = { isChatPage }
348+ showChatHistory = { showChatHistory }
366349 assistantIDs = { assistantIDs }
367- handleSendMessage = { ( value ) =>
368- handleSendMessage ( value , activeChat )
369- }
370- getFileUrl = { getFileUrl }
371350 />
372- ) : (
373- < ConnectPrompt />
374- ) }
375-
376- { ! activeChat ?. _id && ! visibleStartPage && (
377- < PrevSuggestion sendMessage = { init } />
378- ) }
379351
380- { /* <ReadAloud /> */ }
381- </ div >
352+ { isCurrentLogin ? (
353+ < ChatContent
354+ activeChat = { activeChat }
355+ curChatEnd = { curChatEnd }
356+ query_intent = { query_intent }
357+ tools = { tools }
358+ fetch_source = { fetch_source }
359+ pick_source = { pick_source }
360+ deep_read = { deep_read }
361+ think = { think }
362+ response = { response }
363+ loadingStep = { loadingStep }
364+ timedoutShow = { timedoutShow }
365+ Question = { Question }
366+ assistantIDs = { assistantIDs }
367+ handleSendMessage = { ( value ) =>
368+ handleSendMessage ( value , activeChat )
369+ }
370+ getFileUrl = { getFileUrl }
371+ />
372+ ) : (
373+ < ConnectPrompt />
374+ ) }
375+
376+ { ! activeChat ?. _id && ! visibleStartPage && (
377+ < PrevSuggestion sendMessage = { init } />
378+ ) }
379+
380+ { /* <ReadAloud /> */ }
381+ </ div >
382+ </ >
382383 ) ;
383384 }
384385 )
0 commit comments