Skip to content

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

train: settings placement and safe defaults for the revived settings PRs

milind-soni58fc2e23e773
diff --git a/server/app-settings/registry-config.ts b/server/app-settings/registry-config.ts
index 546dfddf60..00c191e432 100644
--- a/server/app-settings/registry-config.ts
+++ b/server/app-settings/registry-config.ts
@@ -144,10 +144,10 @@ export function configEntries(deps: Pick<RegistryDeps, "cfg" | "saveConfig" | "b
current: () => cfg().browserEngine?.engine ?? "agent-browser", patch: (engine) => ({ browserEngine: { engine } }),
}),
section({
- id: "desktops.browserIdleTimeout", label: "Close unused browsers after", help: "Minutes before an unused built-in browser closes; 0 keeps browsers open to preserve site logins.", where: "browser",
+ id: "desktops.browserIdleTimeout", label: "Close unused browsers after", help: "Minutes before an unused built-in browser closes; 0 keeps browsers open (a Cloud home keeps its own default).", where: "browser",
synonyms: ["idle timeout", "keep signed in", "browser idle", "never close", "cookies", "login"], value: z.number().int().min(0).max(60).nullable(), allowed: "0 (never), 1 to 60 minutes, or null to restore default",
current: () => cfg().browserEngine?.idleTimeoutMinutes ?? null, patch: (idleTimeoutMinutes) => ({ browserEngine: { idleTimeoutMinutes } }),
- says: (minutes) => (minutes === null ? "Restore the default unused browser close timeout" : minutes === 0 ? "Keep unused built-in browsers open to preserve site logins" : `Close unused built-in browsers after ${minutes} minute${minutes === 1 ? "" : "s"}`),
+ says: (minutes) => (minutes === null ? "Restore the default unused browser close timeout" : minutes === 0 ? "Keep unused built-in browsers open" : `Close unused built-in browsers after ${minutes} minute${minutes === 1 ? "" : "s"}`),
}),
feature("desktops.savedSteps", "Saved steps", "Bots may repeat saved browser steps without AI.", "saved-steps", ["saved steps", "repeat", "without ai"], "savedSteps", true,
"Let bots repeat saved steps without AI", "Turn off saved steps"),
diff --git a/server/browser-lifecycle-cleanup.test.ts b/server/browser-lifecycle-cleanup.test.ts
index cd2288a0e3..3e0801ef0d 100644
--- a/server/browser-lifecycle-cleanup.test.ts
+++ b/server/browser-lifecycle-cleanup.test.ts
@@ -364,7 +364,7 @@ describe("closing this data dir's browsers nothing uses", () => {
expect(browserIdleMs({})).toBe(10 * 60_000);
expect(browserIdleMs({}, { cloudHome: true })).toBe(3 * 60_000);
expect(browserIdleMs({ browserEngine: { idleTimeoutMinutes: 0 } })).toBe(0);
- expect(browserIdleMs({ browserEngine: { idleTimeoutMinutes: 0 } }, { cloudHome: true })).toBe(0);
+ expect(browserIdleMs({ browserEngine: { idleTimeoutMinutes: 0 } }, { cloudHome: true })).toBe(3 * 60_000);
expect(browserIdleMs({ browserEngine: { idleTimeoutMinutes: 2 } })).toBe(2 * 60_000);
expect(browserIdleMs({ browserEngine: { idleTimeoutMinutes: 20 } }, { cloudHome: true })).toBe(20 * 60_000);
});
diff --git a/server/browser-lifecycle-cleanup.ts b/server/browser-lifecycle-cleanup.ts
index e615e422bc..ea4909e981 100644
--- a/server/browser-lifecycle-cleanup.ts
+++ b/server/browser-lifecycle-cleanup.ts
@@ -380,8 +380,10 @@ export class BrowserCleanupCoordinator {
export const DEFAULT_BROWSER_IDLE_MINUTES = 10;
export const CLOUD_HOME_BROWSER_IDLE_MINUTES = 3;
+/** 0 (never) is for a desktop or a self-hosted server: a Cloud home's small machine closes unused browsers on its own time. */
export function browserIdleMs(cfg: { browserEngine?: { idleTimeoutMinutes?: number } }, { cloudHome = false }: { cloudHome?: boolean } = {}): number {
- return (cfg.browserEngine?.idleTimeoutMinutes ?? (cloudHome ? CLOUD_HOME_BROWSER_IDLE_MINUTES : DEFAULT_BROWSER_IDLE_MINUTES)) * 60_000;
+ const minutes = cfg.browserEngine?.idleTimeoutMinutes;
+ return (minutes === undefined || (cloudHome && minutes === 0) ? (cloudHome ? CLOUD_HOME_BROWSER_IDLE_MINUTES : DEFAULT_BROWSER_IDLE_MINUTES) : minutes) * 60_000;
}
/** The sessions agent-browser has written a `<session>.pid` for (one per daemon, removed when it exits). */
diff --git a/src/components/BotSettingsDialog.simple.test.ts b/src/components/BotSettingsDialog.simple.test.ts
index f836839105..dd784cc1ca 100644
--- a/src/components/BotSettingsDialog.simple.test.ts
+++ b/src/components/BotSettingsDialog.simple.test.ts
@@ -422,15 +422,6 @@ describe("the bot panel in Simple mode", () => {
expect(shown(panel(makeBot(), "access"))).toEqual({ tab: "computer", page: undefined });
});
- it("shows Keep this bot's desktop always running only for per-bot desktops", () => {
- fixture.advanced = true;
- fixture.storeState = { settingsOpen: true, botSettingsSection: "identity", botSettingsExpandAccordion: true, config: { localVm: { mode: "per-bot" } } };
- expect(dialog(makeBot()).html).toContain("Keep this bot&#x27;s desktop always running");
- fresh();
- fixture.storeState = { ...fixture.storeState, config: { localVm: { mode: "shared" } } };
- expect(dialog(makeBot()).html).not.toContain("Keep this bot&#x27;s desktop always running");
- });
-
it("shows no switch on any tab, and on Bot settings only Notifications and Bot API's: memory, upkeep, browser, record steps and Work until done live elsewhere", () => {
const bot = makeBot();
expect(switches(panel(bot).html)).toBe(0);
diff --git a/src/components/BrowserSettingsRows.test.ts b/src/components/BrowserSettingsRows.test.ts
index 181ee5e7b7..053ea672c7 100644
--- a/src/components/BrowserSettingsRows.test.ts
+++ b/src/components/BrowserSettingsRows.test.ts
@@ -217,6 +217,10 @@ describe("BrowserIdleTimeoutRow", () => {
fixture.config = { features: { browser: true }, cloudHome: true, browserEngine: { kind: "engine" } };
show();
expect(select()?.value).toBe("3");
+ expect([...select()!.options].map((option) => option.value), "a Cloud home offers no Never").not.toContain("0");
+ fixture.config = { features: { browser: true }, cloudHome: true, browserEngine: { kind: "engine", idleTimeoutMinutes: 0 } };
+ show();
+ expect(select()?.value).toBe("3");
fixture.config = { features: { browser: true }, browserEngine: { kind: "engine" } };
show();
diff --git a/src/components/BrowserSettingsRows.tsx b/src/components/BrowserSettingsRows.tsx
index f9395cb81b..8e36884ede 100644
--- a/src/components/BrowserSettingsRows.tsx
+++ b/src/components/BrowserSettingsRows.tsx
@@ -78,8 +78,10 @@ export function BrowserIdleTimeoutRow() {
const { saving, error, save } = useConfigSave();
if (!builtInBrowserEnabled(state.config)) return null;
- const fallback = state.config?.cloudHome ? 3 : 10;
- const current = state.config?.browserEngine?.idleTimeoutMinutes ?? fallback;
+ // A Cloud home's small machine always closes unused browsers in the end, so it offers no Never.
+ const cloud = state.config?.cloudHome === true, fallback = cloud ? 3 : 10;
+ const saved = state.config?.browserEngine?.idleTimeoutMinutes;
+ const current = saved === undefined || (cloud && saved === 0) ? fallback : saved;
const options = current > 0 && !IDLE_TIMEOUT_PRESETS.includes(current as (typeof IDLE_TIMEOUT_PRESETS)[number])
? [...IDLE_TIMEOUT_PRESETS, current].sort((a, b) => a - b)
: IDLE_TIMEOUT_PRESETS;
@@ -87,7 +89,7 @@ export function BrowserIdleTimeoutRow() {
return (
<SettingRow
title={t("settings.browser.idleTimeout")}
- subtitle={t("settings.browser.idleTimeoutHint")}
+ subtitle={cloud ? undefined : t("settings.browser.idleTimeoutHint")}
message={error ? <p role="alert" className="text-danger">{error}</p> : null}
>
<Select
@@ -99,7 +101,7 @@ export function BrowserIdleTimeoutRow() {
{options.map((minutes) => (
<option key={minutes} value={String(minutes)}>{t("settings.browser.idleMinutes", { minutes })}</option>
))}
- <option value="0">{t("settings.browser.idleNever")}</option>
+ {!cloud && <option value="0">{t("settings.browser.idleNever")}</option>}
</Select>
</SettingRow>
);
diff --git a/src/components/OpenAiCompatServers.test.ts b/src/components/OpenAiCompatServers.test.ts
index 067a32f630..5053e4dce4 100644
--- a/src/components/OpenAiCompatServers.test.ts
+++ b/src/components/OpenAiCompatServers.test.ts
@@ -4,7 +4,7 @@ import { afterEach, describe, expect, it, vi } from "vitest";
import * as store from "@/state/store";
import { BuiltInReplyWait, modelIds, originChanged, OtherOpenAiCompatServers, LmStudioServer, lmStudioBaseUrl } from "./OpenAiCompatServers";
-const fixture = vi.hoisted(() => ({ counting: false, values: [] as unknown[], index: 0, api: vi.fn(), track: vi.fn() }));
+const fixture = vi.hoisted(() => ({ counting: false, values: [] as unknown[], index: 0, api: vi.fn(), track: vi.fn(), advanced: false }));
vi.mock("react", async (original) => {
const react = await original<typeof import("react")>();
return {
@@ -19,8 +19,9 @@ vi.mock("react", async (original) => {
});
vi.mock("@/state/store", async (original) => ({ ...await original<typeof import("@/state/store")>(), api: fixture.api }));
vi.mock("@/lib/analytics", () => ({ track: fixture.track }));
+vi.mock("@/lib/interface-mode", () => ({ useAdvancedMode: () => fixture.advanced }));
-afterEach(() => { vi.unstubAllGlobals(); vi.restoreAllMocks(); });
+afterEach(() => { vi.unstubAllGlobals(); vi.restoreAllMocks(); fixture.advanced = false; });
const instance = (instanceId: string, displayName: string, extra: Record<string, unknown> = {}) => ({
instanceId, driverKind: "openai-compat", displayName,
@@ -112,8 +113,10 @@ describe("adding another OpenAI-compatible server", () => {
expect(JSON.stringify(fixture.track.mock.calls)).not.toMatch(/ada|example|ZZtest|SECRET/);
});
- it("marks a server behind a tunnel as local only when the box is ticked", async () => {
+ it("marks a server behind a tunnel as local only when the box is ticked, a box Advanced shows", async () => {
const box = () => form().find((node) => node.type === "input" && node.props.type === "checkbox")!;
+ expect(form().some((node) => node.type === "input" && node.props.type === "checkbox")).toBe(false);
+ fixture.advanced = true;
expect(JSON.stringify(form().map((node) => node.props.children ?? ""))).toContain("tunnel");
fixture.values = [];
fixture.api.mockReset();
diff --git a/src/components/OpenAiCompatServers.tsx b/src/components/OpenAiCompatServers.tsx
index fddc60c56c..b420bf63b2 100644
--- a/src/components/OpenAiCompatServers.tsx
+++ b/src/components/OpenAiCompatServers.tsx
@@ -5,6 +5,7 @@ import { t } from "@/lib/i18n";
import { keySaved } from "@/lib/product-events";
import { addedServers } from "@/lib/openai-compat-endpoints";
import { cn } from "@/lib/cn";
+import { useAdvancedMode } from "@/lib/interface-mode";
import { KEY_FIELD } from "./keys/KeyRow";
import { Select } from "./Select";
@@ -92,8 +93,9 @@ function AddedServers({ servers }: { servers: ReturnType<typeof addedServers> })
const [url, setUrl] = useState("");
const [key, setKey] = useState("");
const [models, setModels] = useState("");
- /** The server serves a local model from a tunnel, VPN or reverse-proxy address. */
+ /** The server serves a local model from a tunnel, VPN or reverse-proxy address. A technical choice, so Advanced only. */
const [local, setLocal] = useState(false);
+ const advanced = useAdvancedMode();
const [busy, setBusy] = useState<"add" | "other" | null>(null);
/** The last failure, and the server whose model-ID editor it belongs to (shown there instead of below the add form). */
const [error, setError] = useState<{ text: string; at?: string } | null>(null);
@@ -126,7 +128,7 @@ function AddedServers({ servers }: { servers: ReturnType<typeof addedServers> })
"add",
() => api("/api/instances/openai-compat", {
method: "POST",
- body: JSON.stringify({ displayName: name.trim(), url: url.trim(), key: key.trim(), ...(modelIds(models).length ? { models: modelIds(models) } : {}), ...(local ? { local: true } : {}) }),
+ body: JSON.stringify({ displayName: name.trim(), url: url.trim(), key: key.trim(), ...(modelIds(models).length ? { models: modelIds(models) } : {}), ...(advanced && local ? { local: true } : {}) }),
}).then(
(added) => { keySaved("custom_endpoint", "settings", "unverified"); return added; },
(cause: unknown) => { keySaved("custom_endpoint", "settings", "error"); throw cause; },
@@ -261,13 +263,13 @@ function AddedServers({ servers }: { servers: ReturnType<typeof addedServers> })
<input value={models} onChange={(e) => setModels(e.target.value)} placeholder={t("apiInstances.models")} aria-label={t("apiInstances.models")}
spellCheck={false} disabled={busy !== null} className={INPUT} />
<p className="text-[12px] leading-4 text-ink-secondary">{t("apiInstances.modelsHint")}</p>
- <label className="flex items-start gap-2 text-[13px]">
+ {advanced && <label className="flex items-start gap-2 text-[13px]">
<input className="mt-1 accent-accent" type="checkbox" checked={local} onChange={(e) => setLocal(e.target.checked)} disabled={busy !== null} />
<span className="text-ink">
{t("apiInstances.localModel")}
<span className="mt-0.5 block text-[12px] leading-4 text-ink-secondary">{t("apiInstances.localModelHint")}</span>
</span>
- </label>
+ </label>}
<button
type="button"
onClick={add}
diff --git a/src/components/bot-settings/AccessSection.tsx b/src/components/bot-settings/AccessSection.tsx
index b9f3e99bec..59c4405b30 100644
--- a/src/components/bot-settings/AccessSection.tsx
+++ b/src/components/bot-settings/AccessSection.tsx
@@ -17,6 +17,7 @@ import { useDesktopCapabilities } from "../DesktopCapabilities";
import { CloudBackendPicker } from "../CloudBackendPicker";
import { placeManagedBy, worksOnChoices, WorksOnGrid, worksOnHintKey, worksOnSelected, type WorksOnMode } from "../WorksOnGrid";
import { Switch } from "../SettingsPrimitives";
+import { KeepDesktopRunning } from "./KeepDesktopRunning";
import { PhoneAppsCard } from "./PhoneAppsCard";
import { ProposalStatus } from "./ProposalStatus";
import { ToolGroupsCard } from "./ToolGroupsCard";
@@ -687,6 +688,7 @@ export function AccessSection({
</button>
</>}
<CloudPreference bot={bot} patch={patch} />
+ <KeepDesktopRunning bot={bot} patch={patch} />
</div>}
{shows("folder") && <WorkingFolder bot={bot} />}
diff --git a/src/components/bot-settings/IdentitySection.tsx b/src/components/bot-settings/IdentitySection.tsx
index 6fab2a2b8a..719dac80b2 100644
--- a/src/components/bot-settings/IdentitySection.tsx
+++ b/src/components/bot-settings/IdentitySection.tsx
@@ -16,7 +16,6 @@ import { ProposalStatus } from "./ProposalStatus";
import { randomBotName } from "@/lib/random-bot-name";
import { intlLocale, t } from "@/lib/i18n";
import { useStoreRef } from "@/state/store-ref";
-import { useStoreSelector } from "@/state/store-select";
export type IdentityPart = "avatar" | "provenance" | "name" | "title" | "blurb";
@@ -39,7 +38,6 @@ export function IdentitySection({
const { draft } = useBotEditor();
const store = useStoreRef();
const shows = (part: IdentityPart) => !parts || parts.includes(part);
- const perBotDesktop = useStoreSelector((state) => state.config?.localVm?.mode === "per-bot");
return (
<div className="flex flex-col gap-4">
@@ -111,19 +109,6 @@ export function IdentitySection({
</div>
</div>}
- {shows("name") && perBotDesktop && <Field label={t("botSettings.identity.keepDesktopRunning")}>
- <label className="flex items-center gap-2 cursor-pointer">
- <input
- type="checkbox"
- checked={bot.localVm?.keepDesktopRunning === true}
- onChange={(e) => patch({ localVm: { keepDesktopRunning: e.target.checked } })}
- className="size-4 rounded border-hairline/40 text-accent focus-visible:ring-2 focus-visible:ring-accent/60"
- />
- <span className="text-[13px] text-ink">{t("botSettings.identity.keepDesktopRunningLabel")}</span>
- </label>
- <p className="mt-1 text-[12px] text-ink-secondary">{t("botSettings.identity.keepDesktopRunningHelp")}</p>
- </Field>}
-
<DefaultBotHideRow bot={bot} />
{instructionsOpen && <BotInstructionsDialog bot={bot} inline={draft} onClose={() => setInstructionsOpen(false)} />}
</div>
diff --git a/src/components/bot-settings/KeepDesktopRunning.test.ts b/src/components/bot-settings/KeepDesktopRunning.test.ts
new file mode 100644
index 0000000000..59d6e08e80
--- /dev/null
+++ b/src/components/bot-settings/KeepDesktopRunning.test.ts
@@ -0,0 +1,48 @@
+import { createElement, isValidElement, type ReactElement } from "react";
+import { renderToStaticMarkup } from "react-dom/server";
+import { beforeEach, describe, expect, it, vi } from "vitest";
+
+import type { Bot } from "@/state/store";
+
+const fixture = vi.hoisted(() => ({ advanced: true, draft: false, mode: "per-bot" as string | undefined }));
+vi.mock("@/lib/interface-mode", () => ({ useAdvancedMode: () => fixture.advanced }));
+vi.mock("./BotEditorContext", () => ({ useBotEditor: () => ({ draft: fixture.draft }) }));
+vi.mock("@/state/store-select", () => ({
+ useStoreSelector: (select: (state: unknown) => unknown) => select({ config: { localVm: fixture.mode ? { mode: fixture.mode } : undefined } }),
+}));
+
+import { KeepDesktopRunning } from "./KeepDesktopRunning";
+
+const bot = (extra: Partial<Bot> = {}) => ({ id: "b1", name: "Scout", computer: "vm", ...extra } as unknown as Bot);
+const html = (target: Bot) => renderToStaticMarkup(createElement(KeepDesktopRunning, { bot: target, patch: () => {} }));
+
+beforeEach(() => {
+ fixture.advanced = true;
+ fixture.draft = false;
+ fixture.mode = "per-bot";
+});
+
+describe("keeping a bot's own desktop running", () => {
+ it("shows only in Advanced, for a saved bot on its own Local VM", () => {
+ expect(html(bot())).toContain("Keep this bot&#x27;s desktop always running");
+ fixture.advanced = false;
+ expect(html(bot())).toBe("");
+ fixture.advanced = true;
+ fixture.mode = "shared";
+ expect(html(bot())).toBe("");
+ fixture.mode = "per-bot";
+ expect(html(bot({ computer: "local" }))).toBe("");
+ fixture.draft = true;
+ expect(html(bot())).toBe("");
+ });
+
+ it("is off unless chosen, and saves the bot's choice", () => {
+ expect(html(bot())).toContain('aria-checked="false"');
+ expect(html(bot({ localVm: { keepDesktopRunning: true } }))).toContain('aria-checked="true"');
+ const patch = vi.fn();
+ const element = KeepDesktopRunning({ bot: bot(), patch }) as ReactElement<{ children: ReactElement[] }>;
+ const toggle = element.props.children.find((child) => isValidElement(child) && (child.props as { onClick?: unknown }).onClick) as ReactElement<{ onClick: () => void }>;
+ toggle.props.onClick();
+ expect(patch).toHaveBeenCalledWith({ localVm: { keepDesktopRunning: true } });
+ });
+});
diff --git a/src/components/bot-settings/KeepDesktopRunning.tsx b/src/components/bot-settings/KeepDesktopRunning.tsx
new file mode 100644
index 0000000000..49564b943b
--- /dev/null
+++ b/src/components/bot-settings/KeepDesktopRunning.tsx
@@ -0,0 +1,26 @@
+import { t } from "@/lib/i18n";
+import { useAdvancedMode } from "@/lib/interface-mode";
+import type { Bot } from "@/state/store";
+import { useStoreSelector } from "@/state/store-select";
+import { Switch } from "../SettingsPrimitives";
+import { useBotEditor } from "./BotEditorContext";
+import type { useBotSettingsDerived } from "./useBotSettingsDerived";
+
+/** Advanced, for a saved bot on its own Local VM: keep that desktop running through the idle timer. Off unless chosen,
+ * since a running desktop keeps using this computer's memory. */
+export function KeepDesktopRunning({ bot, patch }: { bot: Bot; patch: ReturnType<typeof useBotSettingsDerived>["patch"] }) {
+ const advanced = useAdvancedMode();
+ const { draft } = useBotEditor();
+ const perBot = useStoreSelector((state) => state.config?.localVm?.mode === "per-bot");
+ if (!advanced || draft || !perBot || bot.computer !== "vm") return null;
+ const on = bot.localVm?.keepDesktopRunning === true;
+ return (
+ <div className="mt-3 flex items-center justify-between gap-4 rounded-lg bg-inset px-3 py-2.5" data-testid="keep-desktop-running">
+ <div className="min-w-0">
+ <div className="text-[13px] text-ink">{t("botAccess.keepDesktop.title")}</div>
+ <div className="mt-0.5 text-[12px] text-ink-secondary">{t("botAccess.keepDesktop.description")}</div>
+ </div>
+ <Switch checked={on} aria-label={t("botAccess.keepDesktop.title")} onClick={() => patch({ localVm: { keepDesktopRunning: !on } })} />
+ </div>
+ );
+}
diff --git a/src/components/settings/SettingsWindow.test.ts b/src/components/settings/SettingsWindow.test.ts
index 9ec071a126..5d046e4638 100644
--- a/src/components/settings/SettingsWindow.test.ts
+++ b/src/components/settings/SettingsWindow.test.ts
@@ -317,9 +317,11 @@ describe("Settings → Features", () => {
expect(featureSwitches()).toEqual({ skillBurger: true, threadTabs: false, suggestedReplies: false });
});
- it("shows the Skills library switch, off until turned on, and saves it on", async () => {
+ it("shows the Skills library switch in Advanced only, off until turned on, and saves it on", async () => {
const { api } = await import("@/state/store");
fixture.config = { features: { skillBurger: true, threadTabs: false, skillsLibrary: false } };
+ expect(render("features")).not.toContain("Skills library");
+ fixture.advanced = true;
const html = render("features");
expect(html).toContain("Skills library");
expect(html).toContain("browse, import and assign skills");
diff --git a/src/components/settings/pages/FeaturesPage.tsx b/src/components/settings/pages/FeaturesPage.tsx
index 091dd7fc9b..e28763d886 100644
--- a/src/components/settings/pages/FeaturesPage.tsx
+++ b/src/components/settings/pages/FeaturesPage.tsx
@@ -5,6 +5,7 @@ import { useFeature, type Feature } from "@/lib/use-feature";
import { api, type ConfigStatus } from "@/state/store";
import { useStoreDispatch, useStoreSelector } from "@/state/store-select";
import { SettingRow, SettingsGroup, SettingsRows, Switch } from "../../SettingsPrimitives";
+import { useSettingsShell } from "../settings-shell";
const COPY: Record<Feature, { title: LocaleKey; line: LocaleKey }> = {
skillBurger: { title: "settings.features.skillBurger", line: "settings.features.skillBurgerLine" },
@@ -45,13 +46,15 @@ function FeatureRow({ name }: { name: Feature }) {
}
export function FeaturesPage() {
+ // The Skills section the library switch reveals is on the Bots page, which only Advanced lists.
+ const { ctx } = useSettingsShell();
return (
<SettingsGroup block="features">
<SettingsRows>
<FeatureRow name="skillBurger" />
<FeatureRow name="threadTabs" />
<FeatureRow name="suggestedReplies" />
- <FeatureRow name="skillsLibrary" />
+ {ctx.advanced && <FeatureRow name="skillsLibrary" />}
<FeatureRow name="promotions" />
</SettingsRows>
</SettingsGroup>
diff --git a/src/lib/feature-flags.ts b/src/lib/feature-flags.ts
index d3de13a057..20684dc155 100644
--- a/src/lib/feature-flags.ts
+++ b/src/lib/feature-flags.ts
@@ -102,12 +102,13 @@ export function skillBurgerEnabled(config: FeatureFlagConfig | null | undefined)
return config?.features?.skillBurger !== false;
}
-/** A faded next-line suggestion in an empty composer after a bot replies. The server reports it on unless switched off; a
- * server that doesn't report it has no suggestions to give. */
+/** Cloud and Team offers and sponsored cards. On unless the place switched them off. */
export function promotionsEnabled(config: FeatureFlagConfig | null | undefined): boolean {
return config?.features?.promotions !== false;
}
+/** A faded next-line suggestion in an empty composer after a bot replies. The server reports it on unless switched off; a
+ * server that doesn't report it has no suggestions to give. */
export function suggestedRepliesEnabled(config: FeatureFlagConfig | null | undefined): boolean {
return config?.features?.suggestedReplies === true;
}
diff --git a/src/locales/en.json b/src/locales/en.json
index 2054007b47..b317e6c8d7 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -4902,9 +4902,8 @@
"botSettings.identity.viewFull": "View full",
"botSettings.identity.blurbPlaceholder": "One line on what this bot is for",
"botSettings.identity.blurbHelp": "Shown in rosters, on the phone, and to other bots. Standing instructions belong in Soul, which has room for a full document.",
- "botSettings.identity.keepDesktopRunning": "Local VM",
- "botSettings.identity.keepDesktopRunningLabel": "Keep this bot's desktop always running",
- "botSettings.identity.keepDesktopRunningHelp": "When on, this bot's Local VM desktop is never stopped by the idle timer. Other bots still stop after the shared idle timeout. Counts toward the per-bot desktop limit.",
+ "botAccess.keepDesktop.title": "Keep this bot's desktop always running",
+ "botAccess.keepDesktop.description": "Its Local VM never stops when idle, so it keeps using this computer's memory. It still counts toward the per-bot desktop limit.",
"botSettings.soul.description": "Who this bot is and the rules it never breaks. Always in its context.",
"botSettings.visibility.subtitle": "Choose who sees this bot, its conversations, the rooms it is in and its files. Admins always can.",
"botSettings.visibility.everyone": "Everyone who can sign in",
@@ -11691,9 +11690,9 @@
"settings.browser.proxyClear": "Remove",
"settings.browser.proxySavedPlaceholder": "Proxy saved. Enter a new address to replace it.",
"settings.browser.idleTimeout": "Close unused browsers after",
- "settings.browser.idleTimeoutHint": "Keep open (Never) keeps websites signed in even if a site relies on session-only cookies.",
+ "settings.browser.idleTimeoutHint": "An unused bot browser closes after this. Never keeps it open until the app quits, which keeps using this computer's memory.",
"settings.browser.idleMinutes": "{minutes} min",
- "settings.browser.idleNever": "Never (keep signed in)",
+ "settings.browser.idleNever": "Never",
"together.onCloud": "On My Cloud",
"together.onComputer": "On this computer",
"together.state.asleep": "My Cloud is asleep. Open a bot to wake it.",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 2e1128ea1a..2ce32195a5 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -4546,9 +4546,8 @@
"botSettings.identity.viewFull": "Ver completo",
"botSettings.identity.blurbPlaceholder": "Diga em uma linha para que serve este bot",
"botSettings.identity.blurbHelp": "Aparece nas listas, no celular e para outros bots. As instruções permanentes ficam em Essência, onde cabe um documento completo.",
- "botSettings.identity.keepDesktopRunning": "VM local",
- "botSettings.identity.keepDesktopRunningLabel": "Manter a área de trabalho deste bot sempre ativa",
- "botSettings.identity.keepDesktopRunningHelp": "Quando ativada, a área de trabalho da VM local deste bot permanece ativa durante a inatividade. As áreas de trabalho dos outros bots continuam sendo encerradas após o tempo limite de inatividade. Esta área de trabalho conta para o limite de áreas de trabalho por bot.",
+ "botAccess.keepDesktop.title": "Manter a área de trabalho deste bot sempre ativa",
+ "botAccess.keepDesktop.description": "A VM local dele nunca é encerrada por inatividade, então continua usando a memória deste computador. Ela ainda conta para o limite de áreas de trabalho por bot.",
"botSettings.soul.description": "Quem este bot é e quais regras nunca quebra. Tudo isso fica sempre no contexto.",
"botSettings.visibility.subtitle": "Escolha quem vê este bot, as conversas e os arquivos dele e os grupos em que ele está. Os admins sempre podem ver tudo isso.",
"botSettings.visibility.everyone": "Todos que podem entrar",
@@ -11654,9 +11653,9 @@
"settings.browser.proxyClear": "Remover",
"settings.browser.proxySavedPlaceholder": "Proxy salvo. Digite um novo endereço para substituí-lo.",
"settings.browser.idleTimeout": "Fechar navegadores inativos após",
- "settings.browser.idleTimeoutHint": "Manter aberto (Nunca) mantém sites conectados mesmo quando usam cookies apenas de sessão.",
+ "settings.browser.idleTimeoutHint": "Um navegador de bot sem uso fecha depois desse tempo. Nunca o mantém aberto até o app fechar, o que continua usando a memória deste computador.",
"settings.browser.idleMinutes": "{minutes} min",
- "settings.browser.idleNever": "Nunca (manter conectado)",
+ "settings.browser.idleNever": "Nunca",
"remote.tailscale.needsApproval": "Este computador está aguardando aprovação na sua rede Tailscale. Aprove-o no console de administração do Tailscale, depois tente novamente.",
"connect.otherComputerDevices": "Para outro computador com o app {app}: nesse computador, abra Configurações → Dispositivos → Rede privada → Seus outros computadores.",
"phone.intro.detail": "Veja conversas, responda às solicitações de aprovação e envie novas tarefas pelo celular.",