From 971f203bf011a516f531db9a2b43eaba6c91df4b Mon Sep 17 00:00:00 2001 From: Dhravya Shah Date: Thu, 12 Feb 2026 16:18:01 -0800 Subject: [PATCH] fix: chat id --- apps/web/components/new/chat/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/web/components/new/chat/index.tsx b/apps/web/components/new/chat/index.tsx index 657da945..92030faf 100644 --- a/apps/web/components/new/chat/index.tsx +++ b/apps/web/components/new/chat/index.tsx @@ -177,6 +177,13 @@ export function ChatSidebar({ transport: new DefaultChatTransport({ api: `${process.env.NEXT_PUBLIC_BACKEND_URL}/chat/v2`, credentials: "include", + body: { + metadata: { + chatId: currentChatId, + projectId: selectedProject, + model: selectedModel, + }, + }, }), onFinish: async (result) => { if (result.message.role !== "assistant") return