clear context items on resubmit

This commit is contained in:
Dallin Romney 2025-02-12 16:17:43 -08:00
parent 1b97cf369b
commit de3636ddae

View file

@ -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: {