clear symbols on new session

This commit is contained in:
Nate 2024-11-20 10:31:49 -08:00
parent f9c1b37c80
commit eb4030207f

View file

@ -12,8 +12,8 @@ import {
import { BrowserSerializedContinueConfig } from "core/config/load";
import { ConfigValidationError } from "core/config/validation";
import { stripImages } from "core/llm/images";
import { v4 as uuidv4, v4 } from "uuid";
import { ApplyState } from "core/protocol/ideWebview";
import { v4 as uuidv4, v4 } from "uuid";
// We need this to handle reorderings (e.g. a mid-array deletion) of the messages array.
// The proper fix is adding a UUID to all chat messages, but this is the temp workaround.
@ -295,6 +295,7 @@ export const stateSlice = createSlice({
state.active = false;
state.context.isGathering = false;
state.isMultifileEdit = false;
state.symbols = {};
if (payload) {
state.history = payload.history as any;
state.title = payload.title;