diff --git a/frontend/src/pages/AssistantChatPage.tsx b/frontend/src/pages/AssistantChatPage.tsx index d280c0cf..b7afcb7f 100644 --- a/frontend/src/pages/AssistantChatPage.tsx +++ b/frontend/src/pages/AssistantChatPage.tsx @@ -102,9 +102,7 @@ export default function AssistantChatPage() { // Restore session from sessionStorage on mount (when URL has no session ID) useEffect(() => { - console.log('[AssistantChat] Mount restore check — urlSessionId:', urlSessionId, 'activeChatId:', activeChatId) if (!urlSessionId && activeChatId) { - console.log('[AssistantChat] Calling selectChat to restore:', activeChatId) selectChat(activeChatId) } }, []) // eslint-disable-line react-hooks/exhaustive-deps @@ -209,7 +207,6 @@ export default function AssistantChatPage() { } const selectChat = useCallback(async (chatId: string) => { - console.log('[AssistantChat] selectChat called with:', chatId) setActiveChatId(chatId) // Clear TaskLane when switching chats — will restore from backend if available setShowTaskLane(false) @@ -217,7 +214,6 @@ export default function AssistantChatPage() { setActiveActions([]) try { const detail = await aiSessionsApi.getSession(chatId) - console.log('[AssistantChat] getSession response — messages:', detail.conversation_messages?.length, 'pending_task_lane:', !!detail.pending_task_lane) setMessages( (detail.conversation_messages || []).map(m => ({ role: m.role as 'user' | 'assistant', @@ -241,8 +237,7 @@ export default function AssistantChatPage() { } } } - } catch (err) { - console.error('[AssistantChat] Failed to load chat session:', err) + } catch { setMessages([]) } }, [])