persist edit vs chat mode

This commit is contained in:
Dallin Romney 2025-02-20 14:57:48 -08:00
parent 4a96bf7343
commit 6a487e25ad
2 changed files with 14 additions and 2 deletions

View file

@ -53,7 +53,6 @@ type SessionState = {
streamAborter: AbortController;
codeToEdit: CodeToEdit[];
curCheckpointIndex: number;
currentMainEditorContent?: JSONContent;
mainEditorContentTrigger?: JSONContent | undefined;
symbols: FileSymbolMap;
mode: MessageModes;

View file

@ -33,9 +33,22 @@ const rootReducer = combineReducers({
const saveSubsetFilters = [
createFilter("session", [
"history",
"sessionId",
"selectedOrganizationId",
"selectedProfile",
"id",
"lastSessionId",
"title",
"mode",
// TODO consider removing persisted profiles/orgs
"availableProfiles",
"organizations",
// higher risk to persist
// codeToEdit
// codeBlockApplyStates
// symbols
// curCheckpointIndex
]),
// Don't persist any of the edit state for now
createFilter("editModeState", []),