From a705bd58f9b4d41da795d376911c4f9a9f870ed5 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Sun, 29 Mar 2026 07:28:35 +0000 Subject: [PATCH] fix: clear stale task lane when starting session from dashboard prefill The sendPrefill flow (dashboard handoff) did not clear activeQuestions/ activeActions before creating the new session. The task lane initializer loaded stale data from sessionStorage keyed to the previous session ID, showing old tasks while the new session was processing. Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/pages/AssistantChatPage.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/pages/AssistantChatPage.tsx b/frontend/src/pages/AssistantChatPage.tsx index 38fadb56..dc6fcb7b 100644 --- a/frontend/src/pages/AssistantChatPage.tsx +++ b/frontend/src/pages/AssistantChatPage.tsx @@ -120,6 +120,11 @@ export default function AssistantChatPage() { navigate(location.pathname, { replace: true, state: {} }) const sendPrefill = async () => { + // Clear stale task lane from previous session + setShowTaskLane(false) + setActiveQuestions([]) + setActiveActions([]) + try { const session = await aiSessionsApi.createChatSession({ intake_type: 'free_text',