diff --git a/apps/desktop/src/app/chat/sidebar/index.tsx b/apps/desktop/src/app/chat/sidebar/index.tsx index c84184359..ae5f1e564 100644 --- a/apps/desktop/src/app/chat/sidebar/index.tsx +++ b/apps/desktop/src/app/chat/sidebar/index.tsx @@ -54,7 +54,14 @@ import { SIDEBAR_SESSIONS_PAGE_SIZE, unpinSession } from '@/store/layout' -import { $newChatProfile, $profiles, $profileScope, ALL_PROFILES, normalizeProfileKey } from '@/store/profile' +import { + $newChatProfile, + $profiles, + $profileScope, + ALL_PROFILES, + newSessionInProfile, + normalizeProfileKey +} from '@/store/profile' import { $selectedStoredSessionId, $sessionProfileTotals, @@ -1044,12 +1051,15 @@ function SidebarWorkspaceGroup({ open={open} /> - {onNewSession && ( + {(onNewSession || isProfileGroup) && (