Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

train: "Learn facts into About me" in Advanced only

milind-sonid0186928b5a9
diff --git a/src/components/bot-settings/MemorySection.tsx b/src/components/bot-settings/MemorySection.tsx
index ed8e0a782e..c7f54870b7 100644
--- a/src/components/bot-settings/MemorySection.tsx
+++ b/src/components/bot-settings/MemorySection.tsx
@@ -32,6 +32,7 @@ import {
import { localizedRelativeTime } from "@/lib/relative-time";
import { shortPath } from "@/lib/short-path";
import { activeLocale, t } from "@/lib/i18n";
+import { useAdvancedMode } from "@/lib/interface-mode";
import { roomMemoryCaptureEnabled } from "@/lib/feature-flags";
import { api, ApiError, type Bot, type ConfigStatus } from "@/state/store";
import { Switch } from "../SettingsPrimitives";
@@ -112,6 +113,8 @@ export function LendingReviewNotice({ changed, stale, busy, onReviewed }: { chan
export function MemorySection({ bot, active = true, onToggle }: { bot: Bot; active?: boolean; onToggle: (enabled: boolean) => void }) {
const { capabilities } = useDesktopCapabilities();
+ // A fine-grained choice: Advanced only. Every bot learns into About me unless this bot's switch says otherwise.
+ const advanced = useAdvancedMode();
const [overview, setOverview] = useState<MemoryOverview | null>(null);
const [journal, setJournal] = useState<MemoryJournalRow[] | null>(null);
const [editing, setEditing] = useState<Editing | null>(null);
@@ -356,7 +359,7 @@ export function MemorySection({ bot, active = true, onToggle }: { bot: Bot; acti
onToggle={toggleUpkeep}
onTidy={() => void tidyNow()}
rooms={{ enabled: learnFromRooms, saving: roomsSaving, error: roomsError, onToggle: () => void toggleRooms() }}
- aboutMe={{ enabled: bot.memoryLearnAboutMe !== false, onToggle: () => dispatch({ type: "updateBot", botId: bot.id, patch: { memoryLearnAboutMe: bot.memoryLearnAboutMe === false } }) }}
+ aboutMe={advanced ? { enabled: bot.memoryLearnAboutMe !== false, onToggle: () => dispatch({ type: "updateBot", botId: bot.id, patch: { memoryLearnAboutMe: bot.memoryLearnAboutMe === false } }) } : undefined}
model={active && bot.memoryUpkeep !== false
? <MemoryModelSetting key={bot.id} bot={bot} upkeep={upkeep} className="mt-3 border-t border-hairline/40" /> : undefined}
/>}