refactor(chat): update resetCurrentThreadAtom to include shareToken and contentType for enhanced report panel state management

This commit is contained in:
Anish Sarkar 2026-04-30 22:37:11 +05:30
parent d65a3fdf76
commit 4056bd1d69

View file

@ -26,7 +26,14 @@ export const setThreadVisibilityAtom = atom(null, (get, set, newVisibility: Chat
export const resetCurrentThreadAtom = atom(null, (_, set) => {
set(currentThreadAtom, initialState);
set(reportPanelAtom, { isOpen: false, reportId: null, title: null, wordCount: null });
set(reportPanelAtom, {
isOpen: false,
reportId: null,
title: null,
wordCount: null,
shareToken: null,
contentType: "markdown",
});
});
/** Target comment ID to scroll to (from URL navigation or inbox click) */