Skip to content

Commit

Permalink
fix: empty last message
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-stefaniak committed Dec 23, 2024
1 parent ec5fa38 commit d3f7795
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gui/src/redux/thunks/cancelStream.ts
Original file line number Diff line number Diff line change
@@ -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<void, undefined, ThunkApiType>(
Expand All @@ -10,6 +14,6 @@ export const cancelStream = createAsyncThunk<void, undefined, ThunkApiType>(

// 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());
},
);

0 comments on commit d3f7795

Please sign in to comment.