Skip to content

Commit

Permalink
Merge pull request #3516 from continuedev/tomasz/fix-empty-message
Browse files Browse the repository at this point in the history
Fix empty message
  • Loading branch information
tomasz-stefaniak authored Dec 23, 2024
2 parents ec5fa38 + d3f7795 commit 6294253
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 6294253

Please sign in to comment.