persist edit vs chat mode
This commit is contained in:
parent
4a96bf7343
commit
6a487e25ad
2 changed files with 14 additions and 2 deletions
|
|
@ -53,7 +53,6 @@ type SessionState = {
|
|||
streamAborter: AbortController;
|
||||
codeToEdit: CodeToEdit[];
|
||||
curCheckpointIndex: number;
|
||||
currentMainEditorContent?: JSONContent;
|
||||
mainEditorContentTrigger?: JSONContent | undefined;
|
||||
symbols: FileSymbolMap;
|
||||
mode: MessageModes;
|
||||
|
|
|
|||
|
|
@ -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", []),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue