From 8c7a863f5ff8563b9aff3b0b6ef72aa12f044056 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Sat, 28 Mar 2026 23:09:26 +0000 Subject: [PATCH] chore: remove debug logging from AssistantChatPage Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/pages/AssistantChatPage.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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([]) } }, [])