clear context items on resubmit
This commit is contained in:
parent
1b97cf369b
commit
de3636ddae
1 changed files with 1 additions and 0 deletions
|
|
@ -208,6 +208,7 @@ export const sessionSlice = createSlice({
|
|||
|
||||
historyItem.message.content = ""; // IMPORTANT - this is quickly updated by resolveEditorContent based on editor state prior to streaming
|
||||
historyItem.editorState = payload.editorState;
|
||||
historyItem.contextItems = [];
|
||||
|
||||
state.history = state.history.slice(0, index + 1).concat({
|
||||
message: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue