From 96082c8c299aab2b67c31294757e0596a93e616f Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 18 Feb 2025 15:16:01 -0800 Subject: [PATCH] default state profile null --- gui/src/redux/slices/sessionSlice.ts | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index f3642629a..274cb2037 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -22,6 +22,7 @@ import { ToolCallState, } from "core"; import { ProfileDescription } from "core/config/ConfigHandler"; +import { OrganizationDescription } from "core/config/ProfileLifecycleManager"; import { NEW_SESSION_TITLE } from "core/util/constants"; import { incrementalParseJson } from "core/util/incrementalParseJson"; import { renderChatMessage } from "core/util/messageContent"; @@ -30,7 +31,6 @@ import { v4 as uuidv4 } from "uuid"; import { RootState } from "../store"; import { streamResponseThunk } from "../thunks/streamResponse"; import { findCurrentToolCall } from "../util"; -import { OrganizationDescription } from "core/config/ProfileLifecycleManager"; // 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. @@ -88,21 +88,8 @@ const initialState: SessionState = { isStreaming: false, title: NEW_SESSION_TITLE, id: uuidv4(), - selectedProfileId: "local", - availableProfiles: [ - { - id: "local", - title: "Local", - errors: undefined, - profileType: "local", - fullSlug: { - ownerSlug: "", - packageSlug: "", - versionSlug: "", - }, - iconUrl: "", - }, - ], + selectedProfileId: null, + availableProfiles: [], organizations: [], selectedOrganizationId: "", curCheckpointIndex: 0,