fix: update NewChatPage to set current thread for immediate share button visibility

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-01-13 19:35:07 -08:00
parent f3f661f33e
commit fd3f2660f6

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);