diff --git a/README.md b/README.md index 8f7cb6c81..b46aad75c 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ Jan is an open-source ChatGPT alternative that runs 100% offline on your compute Experimental (Nighlty Build) - + Github action artifactory diff --git a/web/hooks/useCreateNewThread.ts b/web/hooks/useCreateNewThread.ts index b7544f74e..7f81c1e83 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 {