diff --git a/web/hooks/useCreateNewThread.ts b/web/hooks/useCreateNewThread.ts index b7544f74ed..7f81c1e83a 100644 --- a/web/hooks/useCreateNewThread.ts +++ b/web/hooks/useCreateNewThread.ts @@ -103,9 +103,13 @@ export const useCreateNewThread = () => { function updateThreadMetadata(thread: Thread) { updateThread(thread) - extensionManager - .get(ExtensionType.Conversational) - ?.saveThread(thread) + const threadState = threadStates[thread.id] + const isFinishInit = threadState?.isFinishInit ?? true + if (isFinishInit) { + extensionManager + .get(ExtensionType.Conversational) + ?.saveThread(thread) + } } return {