From 06a5fc36b41009b7c62ff52f15271996851ac9f8 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Tue, 2 Jun 2026 22:19:17 -0400 Subject: [PATCH] fix: preserve project scope during draft hydration --- client/src/store/families.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/store/families.ts b/client/src/store/families.ts index 5d19331f59..54a2294fb5 100644 --- a/client/src/store/families.ts +++ b/client/src/store/families.ts @@ -93,6 +93,9 @@ const conversationByIndex = atomFamily({ if (shouldUpdateParams) { const newParams = createChatSearchParams(newValue); + if (newValue.chatProjectId) { + newParams.set('projectId', newValue.chatProjectId); + } const searchParams = createSearchParams(newParams); const url = `${window.location.pathname}?${searchParams.toString()}`; window.history.pushState({}, '', url);