From d3f7795e6133fe7452c0626e6a54fb229bacbd7b Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Mon, 23 Dec 2024 14:22:39 -0800 Subject: [PATCH] fix: empty last message --- gui/src/redux/thunks/cancelStream.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gui/src/redux/thunks/cancelStream.ts b/gui/src/redux/thunks/cancelStream.ts index dc23c04a6..c7346557c 100644 --- a/gui/src/redux/thunks/cancelStream.ts +++ b/gui/src/redux/thunks/cancelStream.ts @@ -1,5 +1,9 @@ import { createAsyncThunk } from "@reduxjs/toolkit"; -import { abortStream, setInactive } from "../slices/sessionSlice"; +import { + abortStream, + clearLastEmptyResponse, + setInactive, +} from "../slices/sessionSlice"; import { ThunkApiType } from "../store"; export const cancelStream = createAsyncThunk( @@ -10,6 +14,6 @@ export const cancelStream = createAsyncThunk( // If the assistant message is empty, then remove it and the user message, placing the user input in the main text box // TODO: Waiting until next release - // dispatch(clearLastEmptyResponse()); + dispatch(clearLastEmptyResponse()); }, );