chore: remove debug logging from AssistantChatPage

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-28 23:09:26 +00:00
parent 5e04aad16f
commit 8c7a863f5f

View File

@@ -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([])
}
}, [])