diff --git a/app/store/chat.ts b/app/store/chat.ts index 455399b8..335e4be7 100644 --- a/app/store/chat.ts +++ b/app/store/chat.ts @@ -317,8 +317,10 @@ export const useChatStore = create()( botMessage.streaming = false; userMessage.isError = !isAborted; botMessage.isError = !isAborted; - - set(() => ({})); + get().updateCurrentSession((session) => { + session.messages = session.messages.concat(); + }); + // set(() => ({})); ChatControllerPool.remove( sessionIndex, botMessage.id ?? messageIndex,