Merge pull request #694 from MODSetter/dev

fix(hotpatch): update NewChatPage to set current thread for immediate share but…
This commit is contained in:
Rohan Verma 2026-01-13 20:00:06 -08:00 committed by GitHub
commit 7b0b0d109c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -425,6 +425,8 @@ export default function NewChatPage() {
const newThread = await createThread(searchSpaceId, "New Chat");
currentThreadId = newThread.id;
setThreadId(currentThreadId);
// Set currentThread so ChatHeader can show share button immediately
setCurrentThread(newThread);
// Track chat creation
trackChatCreated(searchSpaceId, currentThreadId);