Skip to content

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

Settings → Features: Skill Burger, thread tabs, thread notes and mascot animations switches

milind-sonie170c50922dd
diff --git a/DESIGN.md b/DESIGN.md
index 92648f2b5c..d57290fb72 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -53,7 +53,12 @@ where they belong instead of adding new places.
Settings. Don't add a second home for the same setting.
- **No new settings.** No new global settings, toggles or hidden flags. Make
the behaviour automatic with a good default. An optional field on something
- the person sets up is fine.
+ the person sets up is fine. One exception: **Settings → Features**, a short
+ list of plain on/off switches for whole features some people don't want
+ (Skill Burger, thread tabs, thread notes, mascot animations). It's there so
+ Simple mode can turn off one feature at a time without switching to
+ Advanced. A switch goes there only when its off state is clean: the feature
+ is hidden whole, and nothing the person made is lost.
- **No new asks.** No new permission asks, approval cards, confirm dialogs,
nags or waits that interrupt the person, and no default below Full access.
A bot gets on with the work; a change that needs undoing gets **Undo**.
diff --git a/electron/preload.cjs b/electron/preload.cjs
index a8f2497aa0..417d08d019 100644
--- a/electron/preload.cjs
+++ b/electron/preload.cjs
@@ -50,7 +50,7 @@ ipcRenderer.on("desktop-notifications:open", (_event, target) => {
// Only fixed actions are retained, never a destination supplied by a renderer.
const FIXED_SETTINGS_ACTIONS = new Set(["organization", "cloud", "cloud-settings", "cloud-add", "cloud-add-howto",
- "overview", "devices", "phone", "ai", "bots", "desktops", "vault", "usage", "transfer", "storage", "data", "people", "installations", "account", "plan", "app", "general", "appearance"]);
+ "overview", "devices", "phone", "ai", "bots", "desktops", "vault", "usage", "transfer", "storage", "data", "people", "installations", "account", "plan", "app", "general", "appearance", "features"]);
let pendingSettingsAction = null;
const appSettingsListeners = new Set();
ipcRenderer.on("app:open-settings", (_event, section) => {
diff --git a/server/skill-burger/switch.test.ts b/server/skill-burger/switch.test.ts
new file mode 100644
index 0000000000..13c486bdc0
--- /dev/null
+++ b/server/skill-burger/switch.test.ts
@@ -0,0 +1,42 @@
+// Settings → Features → Skill Burger, as the server sees it: on unless config.json says false, and off it takes the run
+// and edit tools out of every conversation's list.
+import { describe, expect, it } from "vitest";
+
+import { agentsServerEnv, type AgentsConversation } from "../agents-turn.ts";
+import { parseConfigPatch } from "../config.ts";
+import { availableTools, catalogProfileFromEnv } from "../drivers/agents-catalog.ts";
+import { WORKFLOW_TOOL_NAMES } from "../drivers/agents-workflow-tool.ts";
+import { skillBurgerEnabled } from "./store.ts";
+
+const HOST: AgentsConversation["host"] = { skillAuthoring: true, sharedComputers: false, cloudHome: false, team: false, voiceNotes: false, x: false, research: false, imageGeneration: false, localVm: true };
+const CHAT: AgentsConversation = { threadId: "thread-1", bot: { id: "bot-1" }, room: false, teamComputer: false, host: HOST };
+const listedFor = (host: AgentsConversation["host"]) =>
+ availableTools(catalogProfileFromEnv(agentsServerEnv({ ...CHAT, host }, { generation: "g", depth: 0, skillAuthoring: true }, () => "bearer", "http://127.0.0.1:1")))
+ .map((tool) => tool.name);
+
+describe("the Skill Burger switch on the server", () => {
+ it("is on unless config.json says false", () => {
+ expect(skillBurgerEnabled({})).toBe(true);
+ expect(skillBurgerEnabled({ features: {} })).toBe(true);
+ expect(skillBurgerEnabled({ features: { skillBurger: true } })).toBe(true);
+ expect(skillBurgerEnabled({ features: { skillBurger: false } })).toBe(false);
+ });
+
+ it("is a config.json field Settings can patch, with thread tabs beside it", () => {
+ expect(parseConfigPatch({ features: { skillBurger: false, threadTabs: true } })).toMatchObject({ features: { skillBurger: false, threadTabs: true } });
+ });
+
+ it("offers the run and edit tools while on, and neither once off", () => {
+ for (const name of WORKFLOW_TOOL_NAMES) {
+ expect(listedFor(HOST)).toContain(name);
+ expect(listedFor({ ...HOST, skillBurger: true })).toContain(name);
+ expect(listedFor({ ...HOST, skillBurger: false })).not.toContain(name);
+ }
+ expect(listedFor({ ...HOST, skillBurger: false })).toEqual(listedFor(HOST).filter((name) => !WORKFLOW_TOOL_NAMES.has(name)));
+ });
+
+ it("keeps the tools for an agents server started without the switch", () => {
+ const names = availableTools(catalogProfileFromEnv({})).map((tool) => tool.name);
+ for (const name of WORKFLOW_TOOL_NAMES) expect(names).toContain(name);
+ });
+});
diff --git a/shared/settings-places.ts b/shared/settings-places.ts
index 92898978c0..b804241566 100644
--- a/shared/settings-places.ts
+++ b/shared/settings-places.ts
@@ -32,6 +32,7 @@ export const SETTINGS_PLACES = [
{"id":"page:app","path":"Settings → This app","words":["this app","updates","update","version","help","about","servers","your computers","environments","diagnostics","logs","tour"]},
{"id":"page:general","path":"Settings → General","words":["general","language","typing","send","enter","notifications","sounds","startup","login","analytics","privacy","talk"],"advanced":true},
{"id":"page:appearance","path":"Settings → Appearance","words":["appearance","theme","skin","looks","dark mode","light mode","font","chat width","layout","threads","pins"]},
+ {"id":"page:features","path":"Settings → Features","words":["features","turn off","turn on","hide","skill burger","skill burgers","mascot","animations","thread notes","tabs","thread tabs"]},
{"id":"add-device","path":"Settings → Devices → Add a device","words":["add a device","add device","new device","add a computer","add a server","add a phone","connect a device"]},
{"id":"private-network","path":"Settings → Devices → Private network","words":["tailscale","tailnet","private network","vpn"],"only":"the desktop app, on this computer's own page"},
{"id":"pair","path":"Settings → Phone & devices → Pair a phone","words":["phone","pair","pairing","qr","iphone","android","this server","pair a device","connect your phone","code","mobile","tablet","companion","get the phone app"]},
@@ -99,6 +100,10 @@ export const SETTINGS_PLACES = [
{"id":"bubbles","path":"Settings → Appearance → Use the bot's color for my messages","words":["message color","my messages","bubbles"]},
{"id":"tool-calls","path":"Settings → Appearance → Chat","words":["tool calls","this run","chat width","font","typeface"]},
{"id":"layout","path":"Settings → Appearance → Layout","words":["show your computers","rail","window frame","title bar","threads","tools layout","pinned","circles","universal pins","pinned panels"],"advanced":true},
+ {"id":"skill-burger-switch","path":"Settings → Features → Skill Burger","words":["skill burger","skill burgers","burger","saved runs","workflows"]},
+ {"id":"thread-tabs","path":"Settings → Features → Thread tabs","words":["tabs","threads"]},
+ {"id":"thread-notes","path":"Settings → Features → Thread notes","words":["saved to this thread","notes","memory line"]},
+ {"id":"mascot-motion","path":"Settings → Features → Mascot animations","words":["mascot","animations","motion","still","moving"]},
{"id":"apps","path":"the Apps panel (Connect apps, at the bottom of the sidebar)","words":["apps","gmail","slack","calendar","notion","connect app","integrations"]},
{"id":"bot-settings","path":"a bot's own Settings (click the bot's name at the top of its chat)","words":["a bot's own settings","approvals","safety","routines","memory","bot's notifications"]},
{"id":"shortcuts","path":"the keyboard shortcut list (the menu under the person's name → Keyboard shortcuts)","words":["keyboard shortcuts","hotkeys","cheat sheet"]},
diff --git a/src/App.tsx b/src/App.tsx
index af177fe740..e494ff73da 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -81,7 +81,7 @@ import { useRememberedSidePanel } from "@/hooks/use-remembered-side-panel";
import { useDesktopNotificationOpens, useExternalChatLinks } from "@/hooks/use-external-chat-links"; import { useNewBotFromOtherPlace } from "@/lib/places-together";
import { useUsageSnapshot } from "@/hooks/use-usage-snapshot";
import { useReadShownChatOnFocus } from "@/hooks/use-read-shown-chat";
-import { usePresence } from "@/hooks/use-presence";
+import { usePresence } from "@/hooks/use-presence"; import { useFeature } from "@/lib/use-feature";
import { ChatNotice } from "@/components/ChatErrorBanner";
import { loadingLine } from "@/lib/app-loading";
import { useAiSwitchKeeper } from "@/lib/ai-switch";
@@ -180,7 +180,7 @@ function Shell({ viewer }: { viewer: WelcomeViewer | null }) {
view: state.activeView, pluginsOpen: state.pluginsOpen, settingsOpen: state.settingsOpen });
const closeDrawer = useCallback(() => { hideDrawer(); menuButtonRef.current?.focus(); }, [hideDrawer]);
const notificationFeed = useNotificationFeed() && !remoteClient;
- const advanced = useAdvancedMode();
+ const advanced = useAdvancedMode(), skillBurger = useFeature("skillBurger");
const roomPanelOpen = useRoomPanelShown({ group, state, simple: !advanced && !remoteClient });
const sidePanels: OpenSidePanels = {
simple: !advanced, remoteClient, bot: Boolean(bot) && state.settingsOpen, room: roomPanelOpen, inbox: inboxShown, inboxWide: inboxPanel.wide === true,
@@ -410,7 +410,7 @@ function Shell({ viewer }: { viewer: WelcomeViewer | null }) {
<FilesView />
) : state.activeView === "web-panel" ? (
<WebPanelPage />
- ) : state.activeView === "skill-burgers" ? (
+ ) : state.activeView === "skill-burgers" && skillBurger ? (
<SkillBurgersPage />
) : state.activeView === "published-apps" ? (
<PublishedAppsPage />
diff --git a/src/components/CarvedAvatar.tsx b/src/components/CarvedAvatar.tsx
index 4513a614fc..7c0d3ca20b 100644
--- a/src/components/CarvedAvatar.tsx
+++ b/src/components/CarvedAvatar.tsx
@@ -12,7 +12,7 @@ import { MAUS_COLORS, type MausColor, type MausMotion, type MausState } from "@/
import { avatarMarks, type AvatarKind } from "@/lib/avatar-marks";
import { CARVED_BODIES, type CarvedBody, type CarvedBodyId } from "../../shared/carved-bodies";
import type { CursorAvatarHandle } from "./CursorAvatar";
-import { mascotClock, put, usePrefersReducedMotion, type MascotTicket } from "./mascot-clock";
+import { mascotClock, put, useMascotStill, type MascotTicket } from "./mascot-clock";
import { ACTIVE_STATES, HOVER_BLINK_MS, blinkOpenness, frameFloorMs, nextFrameAt } from "./mascot-motion";
import { mascotFaceInk, type MascotFaceColor } from "../../shared/bot-avatar";
@@ -165,7 +165,7 @@ function CarvedAvatarComponent(
const body = CARVED_BODIES[bodyId];
const faceInk = mascotFaceInk(faceColor);
const uid = useId().replace(/:/g, "");
- const reduced = usePrefersReducedMotion();
+ const reduced = useMascotStill();
const live = !reduced && (animated ?? ACTIVE_STATES.has(state));
const group = useRef<SVGGElement>(null);
const eyes = [useRef<SVGRectElement>(null), useRef<SVGRectElement>(null)] as const;
diff --git a/src/components/ChatView.tsx b/src/components/ChatView.tsx
index 8e925af7f1..bd8f00882d 100644
--- a/src/components/ChatView.tsx
+++ b/src/components/ChatView.tsx
@@ -62,7 +62,7 @@ import { VoiceNoteBubble, type VoiceNoteAttachment } from "./VoiceNoteBubble";
import { RawMarkdownView, RawToggleAction } from "./RawMarkdownToggle";
import { useTeammates } from "@/state/team-people";
import { NewConversationInstead } from "./NewConversationInstead";
-import { SkillBurgerSlot } from "./skill-burger/SkillBurgerSlot";
+import { SkillBurgerSlot } from "./skill-burger/SkillBurgerSlot"; import { useFeature } from "@/lib/use-feature";
import { useColorUserBubbles } from "@/lib/user-bubble-preference";
import { userBubbleStyle } from "@/lib/user-bubble-tone";
import { DataResultChip } from "./DataResultChip"; import { PublishedPageCard } from "./PublishedPageCard"; import { TemplateChatCard } from "./TemplateCard"; import { PublishedSiteCards } from "./published-apps/PublishedSiteCards";
@@ -754,7 +754,7 @@ export const ChatView = memo(function ChatView({ bot: profile, inForkPanel = fal
const composerDock = useComposerDockPad(composerDockRef);
// An opened page fills the messages area, between the header and the message box, which stays usable.
const [pagePane, setPagePane] = useState<HTMLDivElement | null>(null);
- const advanced = useAdvancedMode(), activity = useChatActivity();
+ const advanced = useAdvancedMode(), activity = useChatActivity(), skillBurger = useFeature("skillBurger");
const phone = useMediaQuery(PHONE_LAYOUT);
const phoneMenu = phone && !remoteClient;
const simpleHead = !advanced && !remoteClient;
@@ -1165,7 +1165,7 @@ export const ChatView = memo(function ChatView({ bot: profile, inForkPanel = fal
<div ref={setPagePane} data-page-pane-slot className="contents" style={{ "--page-pane-bottom": `${composerDock.box}px` } as CSSProperties} />
<div ref={composerDockRef} className="pointer-events-none absolute inset-x-0 bottom-0 z-[2] chat-column-dock">
- <SkillBurgerSlot botId={bot.id} threadId={bot.threadId} busy={Boolean(bot.busy)} canWrite={mayWrite} messages={messages} liveTools={liveTools} transcriptKey={transcriptKey} />
+ {skillBurger && <SkillBurgerSlot botId={bot.id} threadId={bot.threadId} busy={Boolean(bot.busy)} canWrite={mayWrite} messages={messages} liveTools={liveTools} transcriptKey={transcriptKey} />}
{showJumpToLatest && (
<div className="relative">
<JumpToLatestButton onClick={jumpToLatest} className="pointer-events-auto bottom-2" />
diff --git a/src/components/CursorAvatar.tsx b/src/components/CursorAvatar.tsx
index df4a138c3e..caa4d49772 100644
--- a/src/components/CursorAvatar.tsx
+++ b/src/components/CursorAvatar.tsx
@@ -19,7 +19,7 @@ import {
BLEND_OMEGA, COMPACT_MASCOT_PX, FRAME_SLACK_MS, GLYPH_EASE_MS, HOVER_BLINK_MS, MOTION, PoseBlend, REST_POSE, VIEW_SPAN, blinkOpenness, bodyPose,
bodyTransform, faceTravelUnits, frameFloorMs, loopSeed, morphUnitsPerMs, nextFrameAt, nextMascotFrame, poseTransform, restPose, type BodyMotion,
} from "./mascot-motion"
-import { mascotClock, put, usePrefersReducedMotion, type MascotTicket } from "./mascot-clock"
+import { mascotClock, put, useMascotStill, type MascotTicket } from "./mascot-clock"
export { MOTION, bodyTransform, type BodyMotion }
export {
@@ -594,7 +594,7 @@ export const CursorAvatar = React.forwardRef<CursorAvatarHandle, CursorAvatarPro
const ticket = useRef<MascotTicket | null>(null)
const wake = () => ticket.current?.wake(nextFrameAt(performance.now(), frameFloorMs(engine.current.props.sizePx, engine.current.hovered)))
- const reduced = usePrefersReducedMotion()
+ const reduced = useMascotStill()
const motionStrength = motion ?? (reduced ? 0 : 1)
const paint = `url(#${uid}-grad)`
const sizePx = typeof size === 'number' ? size : 160
diff --git a/src/components/ObjectAvatar.tsx b/src/components/ObjectAvatar.tsx
index 238e3d2b9d..5c043dcc69 100644
--- a/src/components/ObjectAvatar.tsx
+++ b/src/components/ObjectAvatar.tsx
@@ -5,7 +5,7 @@ import { mascotFaceInk, type MascotFaceColor } from "../../shared/bot-avatar";
import { mountAvatar, type AvatarOptions, type MountedAvatar } from "../../packages/phone-protocol/src/open-bot-avatar/dom/index.ts";
import type { AvatarDefinition, AvatarMood, AvatarState } from "../../packages/phone-protocol/src/open-bot-avatar/types.ts";
import { DONE_TURN_S } from "../../packages/phone-protocol/src/open-bot-avatar/motion.ts";
-import { usePrefersReducedMotion } from "./mascot-clock";
+import { useMascotStill } from "./mascot-clock";
import { ACTIVE_STATES } from "./mascot-motion";
export type ObjectLook = { state: AvatarState; mood: AvatarMood };
@@ -65,7 +65,7 @@ export type ObjectAvatarProps = {
};
function ObjectAvatarComponent({ definition, fill, faceColor, size = 44, state = "idle", trackPointer = true, animated, label, kind }: ObjectAvatarProps) {
- const reduced = usePrefersReducedMotion();
+ const reduced = useMascotStill();
const cheering = useFinishCheer(state);
const live = !reduced && (animated ?? (ACTIVE_STATES.has(state) || cheering));
const shown = cheering && live ? DONE : objectLook(state);
diff --git a/src/components/SidebarPhoneBar.tsx b/src/components/SidebarPhoneBar.tsx
index 3faeff3401..4eac6f0ac4 100644
--- a/src/components/SidebarPhoneBar.tsx
+++ b/src/components/SidebarPhoneBar.tsx
@@ -2,6 +2,7 @@ import { FolderOpen, Hamburger, LayoutGrid, Puzzle, Rocket, Search, UsersRound,
import { useCloudFilesReady } from "@/lib/cloud-files";
import { t } from "@/lib/i18n";
+import { useFeature } from "@/lib/use-feature";
import { useStore } from "@/state/store";
import { CloudRoomCard } from "./CloudRoomCard";
@@ -15,6 +16,7 @@ export function SidebarPhoneBar({ query, onQuery }: { query: string; onQuery: (q
const { state, dispatch } = useStore();
const automationsNeedYou = useAutomationsNeedYou();
const filesReady = useCloudFilesReady();
+ const skillBurger = useFeature("skillBurger");
const items: SidebarMenuItem[] = [
{
key: "automations",
@@ -52,13 +54,13 @@ export function SidebarPhoneBar({ query, onQuery }: { query: string; onQuery: (q
active: state.pluginsOpen,
onSelect: () => dispatch({ type: "togglePlugins", open: true }),
},
- {
+ ...(skillBurger ? [{
key: "skill-burgers",
label: t("skillBurger.list.title"),
icon: <Hamburger size={18} />,
active: state.activeView === "skill-burgers",
onSelect: () => dispatch({ type: "showSkillBurgers" }),
- },
+ }] : []),
];
return (
<div data-sidebar-phone-bar className="px-3 pb-3 pt-1">
diff --git a/src/components/SidebarProfileMenu.tsx b/src/components/SidebarProfileMenu.tsx
index 83ad44aedc..8b437c2284 100644
--- a/src/components/SidebarProfileMenu.tsx
+++ b/src/components/SidebarProfileMenu.tsx
@@ -61,7 +61,7 @@ import { pageIsThisComputer } from "@/lib/companion-bridge";
import { cloudPlanLabel } from "@/lib/cloud-plan";
import { shortcutLabel } from "./ShortcutHint";
import { useAnnouncements } from "./announcements/use-announcements";
-import { useOtherServerName } from "@/lib/other-server";
+import { useOtherServerName } from "@/lib/other-server"; import { useFeature } from "@/lib/use-feature";
import { isOwnerOrAdmin, profileForSession, readSessionState, type SessionState } from "@/lib/session";
import {
cloudPhoneDestination,
@@ -542,7 +542,7 @@ export function SidebarProfileMenu({ iconOnly = false, rail = false, circle = fa
const { state, dispatch } = useStore();
const simple = account !== undefined;
const [menuOpen, setMenuOpen] = useState(false);
- const advancedMode = useAdvancedMode();
+ const advancedMode = useAdvancedMode(), skillBurger = useFeature("skillBurger");
const automationsNeedYou = useAutomationsNeedYou();
const planSnapshot = useCloudPlanSnapshot(usageBridge(state.config?.cloudHome === true) ?? (window.ogb?.remoteClient?.active ? undefined : window.ogb?.cloudPlan));
const cloudUsage = cloudUsageSummary(planSnapshot);
@@ -612,7 +612,7 @@ export function SidebarProfileMenu({ iconOnly = false, rail = false, circle = fa
onTeamMap: () => dispatch({ type: "showTeamMap" }),
onFiles: filesReady ? () => dispatch({ type: "showFiles" }) : undefined,
onPublishedApps: () => dispatch({ type: "showPublishedApps" }),
- onSkillBurgers: () => dispatch({ type: "showSkillBurgers" }),
+ onSkillBurgers: skillBurger ? () => dispatch({ type: "showSkillBurgers" }) : undefined,
onTeamFiles: state.config?.team ? () => dispatch({ type: "showTeamFiles" }) : undefined,
archived: account?.archived,
}),
diff --git a/src/components/StatusActivityRow.tsx b/src/components/StatusActivityRow.tsx
index ca6cac00a3..b20d740390 100644
--- a/src/components/StatusActivityRow.tsx
+++ b/src/components/StatusActivityRow.tsx
@@ -2,6 +2,7 @@ import { Brain, Info, RefreshCw } from "lucide-react";
import { statusActivity } from "@/lib/activity-runs";
import { isSavedToThreadLine } from "@/lib/activity-text";
import { t } from "@/lib/i18n";
+import { useFeature } from "@/lib/use-feature";
import { useStore, type Message } from "@/state/store";
import { bugReportFixedText } from "./BugReportNote";
import { CancelledTurnRow } from "./CancelledTurnRow";
@@ -11,10 +12,11 @@ const pill = "rounded-full border border-hairline/40 px-2.5 py-1 text-[13px] tex
export function StatusActivityRow({ message }: { message: Message }) {
const { dispatch } = useStore();
- const status = statusActivity(message);
+ const status = statusActivity(message), threadNotes = useFeature("threadNotes");
if (!status) return null;
if (status.kind === "stopped") return <CancelledTurnRow name={message.tool?.name} stoppedBy={message.stoppedBy} />;
if (isSavedToThreadLine(message)) {
+ if (!threadNotes) return null;
return <div role="status" data-saved-to-thread="" className="flex w-fit items-center gap-1.5 px-1 text-[12px] leading-4 text-ink-tertiary"><Brain size={14} aria-hidden="true" />{status.text}</div>;
}
if (message.tool?.rescue) return <FirstReplyRescueRow rescue={message.tool.rescue} text={status.text} at={message.at} />;
diff --git a/src/components/bot-panel/pages.tsx b/src/components/bot-panel/pages.tsx
index a4615aac73..2675e18d48 100644
--- a/src/components/bot-panel/pages.tsx
+++ b/src/components/bot-panel/pages.tsx
@@ -3,6 +3,7 @@ import { FolderOpen, Plus, Server } from "lucide-react";
import { appSwitchPatch } from "@/lib/bot-app-access";
import { skillsLibraryEnabled } from "@/lib/feature-flags";
+import { useFeature } from "@/lib/use-feature";
import { t } from "@/lib/i18n";
import { mcpServersForBot, mcpServersOfBot, mcpSwitch, useMcpServers } from "@/lib/mcp-servers";
import { fetchMemoryOverview, markMemoryReviewed, MEMORY_INDEX, saveMemoryDoc, saveThreadNotes, type LendingReview } from "@/lib/memory";
@@ -172,7 +173,7 @@ export function RoutinesPage({ bot, derived }: PageContext) {
* memory, its topic files included, with the lines they saved to the team's memory. */
export function MemoryPage({ bot }: PageContext) {
const memory = useMemoryDoc(bot);
- const memoryOn = bot.memoryEnabled !== false;
+ const memoryOn = bot.memoryEnabled !== false, threadNotes = useFeature("threadNotes");
const teamSaved = useTeamMemoryEntries(bot.id, memory.mine && memoryOn && !bot.defaultBot?.person, memory.docs);
if (!memoryOn) return <Card><NoteRow>{t("botPanel.library.memoryOff", { name: bot.name })}</NoteRow></Card>;
if (memory.error) return <Card><NoteRow tone="warn">{t("botPanel.library.memoryError")}</NoteRow></Card>;
@@ -183,7 +184,7 @@ export function MemoryPage({ bot }: PageContext) {
return (
<div key={`${bot.id}:${bot.threadId}`} data-panel-memory="" className="flex flex-col gap-4 px-1 pt-2">
{!memory.mine && <MemoryReviewNotice bot={bot} />}
- {thread && (thread.scoped || thread.text.trim()) && (
+ {threadNotes && thread && (thread.scoped || thread.text.trim()) && (
<MemoryText attr="thread" label={t("memoryPage.thisThread")} doc={thread} placeholder={t("memoryPage.empty")}
save={(text, hash) => saveThreadNotes(bot.id, bot.threadId, text, hash)} />
)}
@@ -244,7 +245,7 @@ export function SkillsPage({ bot }: PageContext) {
const [source, setSource] = useState("");
const [importing, setImporting] = useState(false);
const [imported, setImported] = useState<string[]>([]);
- const libraryOn = skillsLibraryEnabled(state.config);
+ const libraryOn = skillsLibraryEnabled(state.config), skillBurger = useFeature("skillBurger");
const own = skills.skills.filter((skill) => skill.origin !== "project" && !isBurgerSource(skill.source));
const project = skills.skills.filter((skill) => skill.origin === "project");
@@ -290,7 +291,7 @@ export function SkillsPage({ bot }: PageContext) {
return (
<>
- <SavedWorkflowsCard botId={bot.id} threadId={bot.threadId} />
+ {skillBurger && <SavedWorkflowsCard botId={bot.id} threadId={bot.threadId} />}
<Card>
{skills.loading ? (
<NoteRow>{t("skills.loading")}</NoteRow>
diff --git a/src/components/bot-settings/MemorySection.tsx b/src/components/bot-settings/MemorySection.tsx
index 1bdaadab92..f51686cede 100644
--- a/src/components/bot-settings/MemorySection.tsx
+++ b/src/components/bot-settings/MemorySection.tsx
@@ -40,6 +40,7 @@ import { inputCls } from "./field";
import { sameFields, useStoreDispatch, useStoreSelector } from "@/state/store-select";
import { useMinuteTick } from "@/lib/minute-tick";
import { ThreadMemoryCard } from "../bot-panel/MemoryText";
+import { useFeature } from "@/lib/use-feature";
import { MemoryModelSetting } from "./MemoryModelSetting";
import { useMemoryUpkeepStatus } from "./use-memory-upkeep-status";
@@ -112,6 +113,7 @@ 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();
+ const threadNotes = useFeature("threadNotes");
const [overview, setOverview] = useState<MemoryOverview | null>(null);
const [journal, setJournal] = useState<MemoryJournalRow[] | null>(null);
const [editing, setEditing] = useState<Editing | null>(null);
@@ -324,7 +326,7 @@ export function MemorySection({ bot, active = true, onToggle }: { bot: Bot; acti
)}
</div>
- <ThreadMemoryCard bot={bot} />
+ {threadNotes && <ThreadMemoryCard bot={bot} />}
{lendingReview && (
<LendingReviewNotice
diff --git a/src/components/mascot-clock.ts b/src/components/mascot-clock.ts
index 8f1d125649..d7b0bb7cd3 100644
--- a/src/components/mascot-clock.ts
+++ b/src/components/mascot-clock.ts
@@ -1,5 +1,6 @@
import { useSyncExternalStore } from "react";
+import { useDeviceFeature } from "@/lib/feature-switches";
import { FRAME_SLACK_MS, FULL_FRAME_MS } from "./mascot-motion";
export type MascotFrame = (now: number) => number;
@@ -172,6 +173,12 @@ export function usePrefersReducedMotion(): boolean {
return useSyncExternalStore(subscribeReducedMotion, readReducedMotion, () => false);
}
+/** Mascots hold still when the system asks for less motion or the person turned Mascot animations off. */
+export function useMascotStill(): boolean {
+ const reduced = usePrefersReducedMotion();
+ return !useDeviceFeature("mascotMotion") || reduced;
+}
+
const written = new WeakMap<Element, Map<string, string>>();
/** Sets an attribute, or `opacity` as a style, only when it changes. */
diff --git a/src/components/settings/SettingsNav.tsx b/src/components/settings/SettingsNav.tsx
index 56714ff197..a4c8ca4cc9 100644
--- a/src/components/settings/SettingsNav.tsx
+++ b/src/components/settings/SettingsNav.tsx
@@ -321,13 +321,13 @@ function HitRow({ ctx, place, hit, query, onHit }: { ctx: SettingsContext; place
const PAGE_OWNER: Record<SettingsPageId, SettingsOwner> = {
overview: "place", devices: "place", phone: "place", ai: "place", bots: "place", desktops: "place", vault: "place", usage: "place", transfer: "place", storage: "place",
- data: "place", people: "place", installations: "place", account: "account", plan: "account", app: "app", general: "app", appearance: "app",
+ data: "place", people: "place", installations: "place", account: "account", plan: "account", app: "app", general: "app", appearance: "app", features: "app",
};
const PAGE_KEY: Partial<Record<SettingsPageId, Parameters<typeof t>[0]>> = {
devices: "settings.page.devices", phone: "settings.section.phoneDevices", ai: "settings.group.ai", bots: "settings.page.bots", desktops: "settings.page.desktops",
vault: "settings.section.vault", usage: "settings.page.spending", transfer: "settings.page.importExport", storage: "settings.page.storage", data: "settings.page.data", people: "settings.section.people",
- installations: "settings.section.workspaces", plan: "settings.page.plan", general: "settings.section.general", appearance: "settings.section.appearance",
+ installations: "settings.section.workspaces", plan: "settings.page.plan", general: "settings.section.general", appearance: "settings.section.appearance", features: "settings.page.features",
};
/** A result's second line: its owner and its page ("This computer › Phone & devices"), or what a jump opens. */
diff --git a/src/components/settings/SettingsWindow.test.ts b/src/components/settings/SettingsWindow.test.ts
index b8e95d684f..67e691b6e9 100644
--- a/src/components/settings/SettingsWindow.test.ts
+++ b/src/components/settings/SettingsWindow.test.ts
@@ -55,7 +55,7 @@ describe("the Settings window", () => {
it("opens with the place, Your account and This app, each headed by an identity row", () => {
fixture.advanced = true;
const html = render();
- expect(navPages(html)).toEqual(["overview", "devices", "phone", "ai", "bots", "desktops", "vault", "usage", "transfer", "data", "account", "app", "general", "appearance"]);
+ expect(navPages(html)).toEqual(["overview", "devices", "phone", "ai", "bots", "desktops", "vault", "usage", "transfer", "data", "account", "app", "general", "appearance", "features"]);
expect(html).toContain("This computer");
expect(html).toContain("Your account");
expect(html).toContain("This app");
@@ -77,7 +77,7 @@ describe("the Settings window", () => {
expect(render("appearance")).toContain("MausBot on this device");
});
- const SIMPLE_NAV = ["overview", "devices", "phone", "ai", "vault", "usage", "transfer", "account", "plan", "app", "appearance"];
+ const SIMPLE_NAV = ["overview", "devices", "phone", "ai", "vault", "usage", "transfer", "account", "plan", "app", "appearance", "features"];
const SIMPLE_PEOPLE: Array<[string, () => void]> = [
["a person with only this computer", () => vi.stubGlobal("window", desktopHere({ cloudAccount: { state: () => new Promise(() => {}), onState: () => () => {} } }))],
["This computer's rail, with My Cloud", () => vi.stubGlobal("window", desktopHere({ cloudAccount: { state: () => new Promise(() => {}), onState: () => () => {} }, workspaces: { state: () => new Promise(() => {}), places: () => new Promise(() => {}) } }))],
@@ -271,3 +271,36 @@ describe("the outer menu", () => {
expect(rows.find((item) => item.key === "support")?.separatorBefore).toBe(true);
});
});
+
+describe("Settings → Features", () => {
+ const featureSwitches = () => Object.fromEntries(fixture.switches.map((props) => [(props as { "data-feature-switch"?: string })["data-feature-switch"], props.checked]).filter(([name]) => name));
+ beforeEach(() => { vi.stubGlobal("localStorage", { getItem: () => null, setItem: () => {} }); });
+
+ it("is in Simple mode's list, with Skill Burger on and thread tabs off by default", () => {
+ fixture.config = { features: { skillBurger: true, threadTabs: false } };
+ const html = render("features");
+ expect(navPages(html)).toContain("features");
+ expect(html).toContain("Skill Burger");
+ expect(html).toContain("Save a bot&#x27;s run as steps you can run again");
+ expect(featureSwitches()).toEqual({ skillBurger: true, threadTabs: false, threadNotes: true, mascotMotion: true });
+ });
+
+ it("saves Skill Burger off in the place's config.json", async () => {
+ const { api } = await import("@/state/store");
+ fixture.config = { features: { skillBurger: true, threadTabs: false } };
+ render("features");
+ fixture.switches.find((props) => (props as { "data-feature-switch"?: string })["data-feature-switch"] === "skillBurger")!.onClick!({} as never);
+ expect(api).toHaveBeenCalledWith("/api/config", { method: "PATCH", body: JSON.stringify({ features: { skillBurger: false } }) });
+ });
+
+ it("leaves out the place's switches when its server doesn't know them, and for a team's member", () => {
+ fixture.config = {};
+ render("features");
+ expect(featureSwitches()).toEqual({ threadNotes: true, mascotMotion: true });
+ fixture.switches = [];
+ fixture.config = { cloudHome: true, team: { name: "Acme" }, features: { skillBurger: true, threadTabs: false } };
+ fixture.admin = false;
+ render("features");
+ expect(featureSwitches()).toEqual({ threadNotes: true, mascotMotion: true });
+ });
+});
diff --git a/src/components/settings/pages/FeaturesPage.tsx b/src/components/settings/pages/FeaturesPage.tsx
new file mode 100644
index 0000000000..7b6dc0fcc9
--- /dev/null
+++ b/src/components/settings/pages/FeaturesPage.tsx
@@ -0,0 +1,67 @@
+import { useState } from "react";
+import type { LocaleKey } from "@/locales";
+import { t } from "@/lib/i18n";
+import { setDeviceFeature, type DeviceFeature } from "@/lib/feature-switches";
+import { useFeature, type Feature, type PlaceFeature } 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" },
+ threadTabs: { title: "settings.features.threadTabs", line: "settings.features.threadTabsLine" },
+ threadNotes: { title: "settings.features.threadNotes", line: "settings.features.threadNotesLine" },
+ mascotMotion: { title: "settings.features.mascotMotion", line: "settings.features.mascotMotionLine" },
+};
+
+function FeatureRow({ name, saving = false, error, onChange }: { name: Feature; saving?: boolean; error?: string; onChange: (on: boolean) => void }) {
+ const on = useFeature(name);
+ const copy = COPY[name];
+ return (
+ <SettingRow title={t(copy.title)} subtitle={t(copy.line)} message={error ? <p role="alert" className="text-danger">{error}</p> : null}>
+ <Switch data-feature-switch={name} checked={on} aria-label={t(copy.title)} disabled={saving} onClick={() => onChange(!on)}
+ className="disabled:cursor-wait disabled:opacity-50" />
+ </SettingRow>
+ );
+}
+
+/** A switch kept in this place's config.json; shown once its server says it knows the switch. */
+function PlaceFeatureRow({ name }: { name: PlaceFeature }) {
+ const known = useStoreSelector((state) => typeof state.config?.features?.[name] === "boolean");
+ const dispatch = useStoreDispatch();
+ const [saving, setSaving] = useState(false);
+ const [error, setError] = useState("");
+ if (!known) return null;
+ const save = async (on: boolean) => {
+ if (saving) return;
+ setSaving(true);
+ setError("");
+ try {
+ const config: ConfigStatus = await api("/api/config", { method: "PATCH", body: JSON.stringify({ features: { [name]: on } }) });
+ dispatch({ type: "configStatus", config });
+ } catch {
+ setError(t("settings.features.error"));
+ } finally {
+ setSaving(false);
+ }
+ };
+ return <FeatureRow name={name} saving={saving} error={error} onChange={(on) => void save(on)} />;
+}
+
+const DeviceFeatureRow = ({ name }: { name: DeviceFeature }) => <FeatureRow name={name} onChange={(on) => setDeviceFeature(name, on)} />;
+
+export function FeaturesPage() {
+ const { ctx } = useSettingsShell();
+ const placeSwitches = !ctx.client && !(ctx.team && !ctx.admin);
+ return (
+ <SettingsGroup block="features">
+ <SettingsRows>
+ {placeSwitches && <PlaceFeatureRow name="skillBurger" />}
+ {placeSwitches && <PlaceFeatureRow name="threadTabs" />}
+ <DeviceFeatureRow name="threadNotes" />
+ <DeviceFeatureRow name="mascotMotion" />
+ </SettingsRows>
+ </SettingsGroup>
+ );
+}
diff --git a/src/components/settings/pages/SettingsPageBody.tsx b/src/components/settings/pages/SettingsPageBody.tsx
index fab0d340b1..5520324260 100644
--- a/src/components/settings/pages/SettingsPageBody.tsx
+++ b/src/components/settings/pages/SettingsPageBody.tsx
@@ -3,6 +3,7 @@ import { AccountPage, PlanPage } from "./AccountPages";
import { AppPage, AppearancePage, GeneralPage } from "./AppPages";
import { DataPage, ImportExportPage, InstallationsPage, PeoplePage, SpendingPage, VaultPage } from "./DataPages";
import { DevicesPage } from "./DevicesPage";
+import { FeaturesPage } from "./FeaturesPage";
import { PhonePage } from "./PhonePage";
import { AiPage, BotsPage, DesktopsPage, OverviewPage } from "./PlacePages";
import { StoragePage } from "./StoragePage";
@@ -26,6 +27,7 @@ const PAGES: Record<SettingsPageId, () => React.ReactNode> = {
app: AppPage,
general: GeneralPage,
appearance: AppearancePage,
+ features: FeaturesPage,
};
export function SettingsPageBody({ page }: { page: SettingsPageId }) {
diff --git a/src/components/settings/settings-index.test.ts b/src/components/settings/settings-index.test.ts
index f07c2c3d5e..a0d52ed6ee 100644
--- a/src/components/settings/settings-index.test.ts
+++ b/src/components/settings/settings-index.test.ts
@@ -25,7 +25,7 @@ const PEOPLE = {
describe("the pages", () => {
it("lists the place's pages, then Your account, then This app, in one fixed order", () => {
- expect(ids(fullContext())).toEqual([...PLACE_PAGES, "account", "plan", "app", "general", "appearance"]);
+ expect(ids(fullContext())).toEqual([...PLACE_PAGES, "account", "plan", "app", "general", "appearance", "features"]);
});
it.each(Object.entries(PEOPLE))("keeps the same place pages, in the same order, for %s", (who, ctx) => {
@@ -36,7 +36,7 @@ describe("the pages", () => {
it.each(["local only", "This computer, with My Cloud", "My Cloud's page in the desktop window", "My Cloud in a browser (owner)"] as const)(
"shows Simple's eleven entries for %s", (who) => {
- expect(ids({ ...PEOPLE[who], advanced: false })).toEqual(["overview", "devices", "phone", "ai", "vault", "usage", "transfer", "account", "plan", "app", "appearance"]);
+ expect(ids({ ...PEOPLE[who], advanced: false })).toEqual(["overview", "devices", "phone", "ai", "vault", "usage", "transfer", "account", "plan", "app", "appearance", "features"]);
});
it("is shorter in Simple: the four Advanced pages come back in Advanced, in place", () => {
@@ -112,7 +112,7 @@ describe("the pages", () => {
});
it("drops the place's pages and Plan & billing for a paired client, which keeps This app", () => {
- expect(ids(fullContext({ client: true }))).toEqual(["overview", "account", "app", "general", "appearance"]);
+ expect(ids(fullContext({ client: true }))).toEqual(["overview", "account", "app", "general", "appearance", "features"]);
});
});
diff --git a/src/components/settings/settings-index.ts b/src/components/settings/settings-index.ts
index 5f46429e4d..8848b2975b 100644
--- a/src/components/settings/settings-index.ts
+++ b/src/components/settings/settings-index.ts
@@ -1,5 +1,5 @@
import {
- Archive, ArrowLeftRight, Bot, Coins, CreditCard, HardDrive, LockKeyhole, Monitor, Network, Palette, Server, SlidersHorizontal, Smartphone, Sparkles, Users,
+ Archive, ArrowLeftRight, Bot, Coins, CreditCard, HardDrive, LockKeyhole, Monitor, Network, Palette, Server, SlidersHorizontal, Smartphone, Sparkles, ToggleRight, Users,
type LucideIcon,
} from "lucide-react";
import type { LocaleKey } from "@/locales";
@@ -51,8 +51,8 @@ const notClient = (ctx: SettingsContext) => !ctx.client;
const adminPage = (ctx: SettingsContext) => !ctx.client && !(ctx.team && !ctx.admin);
/** A page Simple mode leaves out: its everyday rows show elsewhere in Simple (Overview, This app, Plan & billing). */
const advancedOnly = (when: (ctx: SettingsContext) => boolean) => (ctx: SettingsContext) => ctx.advanced && when(ctx);
-/** Simple mode's eleven entries: the place (Overview, Devices, Phone & devices, AI, Vault, Spending, Import & export, and Storage
- * on a Cloud), Your account (Plan & billing) and This app (Appearance). Advanced adds You and your bots, Desktops & browser,
+/** Simple mode's twelve entries: the place (Overview, Devices, Phone & devices, AI, Vault, Spending, Import & export, and Storage
+ * on a Cloud), Your account (Plan & billing) and This app (Appearance, Features). Advanced adds You and your bots, Desktops & browser,
* Data and General. */
export const ADVANCED_PAGES: readonly SettingsPageId[] = ["bots", "desktops", "data", "general"];
@@ -93,6 +93,8 @@ export const SETTINGS_PAGES: readonly SettingsPage[] = [
synonyms: ["general", "language", "typing", "send", "enter", "notifications", "sounds", "startup", "login", "analytics", "privacy", "talk"] },
{ id: "appearance", owner: "app", labelKey: "settings.section.appearance", icon: Palette, when: () => true,
synonyms: ["appearance", "theme", "skin", "looks", "dark mode", "light mode", "font", "chat width", "layout", "threads", "pins"] },
+ { id: "features", owner: "app", labelKey: "settings.page.features", icon: ToggleRight, when: () => true,
+ synonyms: ["features", "turn off", "turn on", "hide", "skill burger", "skill burgers", "mascot", "animations", "thread notes", "tabs", "thread tabs"] },
];
export const OWNERS: readonly SettingsOwner[] = ["place", "account", "app"];
@@ -252,6 +254,10 @@ export const SETTINGS_INDEX: readonly SettingsIndexEntry[] = [
{ id: "bubbles", page: "appearance", anchor: "look", labelKey: "settings.userBubbles.simpleTitle", synonyms: ["message color", "my messages", "bubbles"] },
{ id: "tool-calls", page: "appearance", anchor: "chat", labelKey: "settings.appearance.chat", synonyms: ["tool calls", "this run", "chat width", "font", "typeface"] },
{ id: "layout", page: "appearance", anchor: "appearance", labelKey: "settings.appearance.layout", advanced: true, synonyms: ["show your computers", "rail", "window frame", "title bar", "threads", "tools layout", "pinned", "circles", "universal pins", "pinned panels"] },
+ { id: "skill-burger-switch", page: "features", anchor: "features", labelKey: "settings.features.skillBurger", when: (ctx) => !ctx.client && !(ctx.team && !ctx.admin), topFor: ["skill burger", "skill burgers"], synonyms: ["burger", "saved runs", "workflows"] },
+ { id: "thread-tabs", page: "features", anchor: "features", labelKey: "settings.features.threadTabs", when: (ctx) => !ctx.client && !(ctx.team && !ctx.admin), synonyms: ["tabs", "threads"] },
+ { id: "thread-notes", page: "features", anchor: "features", labelKey: "settings.features.threadNotes", synonyms: ["saved to this thread", "notes", "memory line"] },
+ { id: "mascot-motion", page: "features", anchor: "features", labelKey: "settings.features.mascotMotion", topFor: ["mascot", "animations"], synonyms: ["motion", "still", "moving"] },
{ id: "apps", page: "overview", labelKey: "settings.search.apps", jump: "apps", synonyms: ["apps", "gmail", "slack", "calendar", "notion", "connect app", "integrations"] },
{ id: "bot-settings", page: "overview", labelKey: "settings.search.bot", jump: "bot", synonyms: ["approvals", "safety", "routines", "memory", "bot's notifications"] },
{ id: "shortcuts", page: "app", labelKey: "sidebar.menu.shortcuts", jump: "shortcuts", synonyms: ["keyboard shortcuts", "hotkeys", "cheat sheet"] },
diff --git a/src/components/skill-burger/feature-gate.test.ts b/src/components/skill-burger/feature-gate.test.ts
new file mode 100644
index 0000000000..b30d55ff50
--- /dev/null
+++ b/src/components/skill-burger/feature-gate.test.ts
@@ -0,0 +1,73 @@
+// Settings → Features: Skill Burger off takes its chat card, its menu entries, its page and the bot panel's saved list
+// away; thread notes off takes the "Saved to this thread" line away. Nothing saved is touched, so on brings it all back.
+import { readFileSync } from "node:fs";
+import { createElement } from "react";
+import { renderToStaticMarkup } from "react-dom/server";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import { setLocale } from "@/lib/i18n";
+import type { Message } from "@/state/store";
+
+const fixture = vi.hoisted(() => ({ config: {} as Record<string, unknown>, items: [] as Array<{ key: string }> }));
+vi.mock("@/state/store", async (importOriginal) => ({
+ ...await importOriginal<typeof import("@/state/store")>(),
+ useStore: () => ({ state: { config: fixture.config, activeView: "chat", pluginsOpen: false, bots: [] }, dispatch: vi.fn() }),
+}));
+vi.mock("@/lib/cloud-files", () => ({ useCloudFilesReady: () => false }));
+vi.mock("../SidebarFooterNav", () => ({ useAutomationsNeedYou: () => false }));
+vi.mock("../CloudRoomCard", () => ({ CloudRoomCard: () => null }));
+vi.mock("../CloudUsageMeter", () => ({ CloudUsageCard: () => null }));
+vi.mock("../UpdateIndicator", () => ({ UpdateIndicator: () => null }));
+vi.mock("../SidebarPopoverMenu", () => ({ SidebarPopoverMenu: ({ items }: { items: Array<{ key: string }> }) => { fixture.items = items; return null; } }));
+
+const { SidebarPhoneBar } = await import("../SidebarPhoneBar");
+const { StatusActivityRow } = await import("../StatusActivityRow");
+const { setDeviceFeature } = await import("@/lib/feature-switches");
+
+const storage = new Map<string, string>();
+beforeEach(() => {
+ storage.clear();
+ vi.stubGlobal("localStorage", { getItem: (key: string) => storage.get(key) ?? null, setItem: (key: string, value: string) => storage.set(key, value) });
+ fixture.config = {};
+ fixture.items = [];
+ setLocale("en");
+});
+afterEach(() => vi.unstubAllGlobals());
+
+const phoneTools = () => {
+ renderToStaticMarkup(createElement(SidebarPhoneBar, { query: "", onQuery: () => {} }));
+ return fixture.items.map((item) => item.key);
+};
+
+describe("the Skill Burger switch", () => {
+ it("shows Skill Burgers in the tools menu by default, hides it while off, and brings it back on", () => {
+ expect(phoneTools()).toContain("skill-burgers");
+ fixture.config = { features: { skillBurger: false } };
+ expect(phoneTools()).not.toContain("skill-burgers");
+ fixture.config = { features: { skillBurger: true } };
+ expect(phoneTools()).toContain("skill-burgers");
+ });
+
+ it("gates every other way in at its call site", () => {
+ const source = (path: string) => readFileSync(new URL(path, import.meta.url), "utf8");
+ expect(source("../ChatView.tsx")).toMatch(/\{skillBurger && <SkillBurgerSlot /);
+ expect(source("../../App.tsx")).toContain('state.activeView === "skill-burgers" && skillBurger ? (');
+ expect(source("../SidebarProfileMenu.tsx")).toContain('onSkillBurgers: skillBurger ? () => dispatch({ type: "showSkillBurgers" }) : undefined,');
+ expect(source("../bot-panel/pages.tsx")).toMatch(/\{skillBurger && <SavedWorkflowsCard /);
+ for (const path of ["../ChatView.tsx", "../../App.tsx", "../SidebarProfileMenu.tsx", "../bot-panel/pages.tsx"]) {
+ expect(source(path), path).toContain('skillBurger = useFeature("skillBurger")');
+ }
+ });
+});
+
+describe("the thread notes switch", () => {
+ const saved = { id: "m1", role: "bot", kind: "activity", at: "2026-11-24T10:00:00.000Z", text: "", tool: { name: "notice: Saved to this thread", nameCode: "chat.notice.savedToThread", ok: true } } as unknown as Message;
+ const line = () => renderToStaticMarkup(createElement(StatusActivityRow, { message: saved }));
+
+ it("shows the Saved to this thread line by default, hides it while off, and brings it back on", () => {
+ expect(line()).toContain("data-saved-to-thread");
+ setDeviceFeature("threadNotes", false);
+ expect(line()).toBe("");
+ setDeviceFeature("threadNotes", true);
+ expect(line()).toContain("Saved to this thread");
+ });
+});
diff --git a/src/lib/feature-switches.test.ts b/src/lib/feature-switches.test.ts
new file mode 100644
index 0000000000..771da7f741
--- /dev/null
+++ b/src/lib/feature-switches.test.ts
@@ -0,0 +1,60 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import { skillBurgerEnabled, threadTabsEnabled } from "./feature-flags";
+
+function memoryStorage() {
+ const values = new Map<string, string>();
+ return {
+ getItem: (key: string) => values.get(key) ?? null,
+ setItem: (key: string, value: string) => values.set(key, value),
+ };
+}
+
+let local: ReturnType<typeof memoryStorage>;
+
+beforeEach(() => {
+ vi.resetModules();
+ local = memoryStorage();
+ vi.stubGlobal("localStorage", local);
+ vi.stubGlobal("window", new EventTarget());
+});
+
+afterEach(() => {
+ vi.unstubAllGlobals();
+});
+
+describe("Settings → Features on this device", () => {
+ it("starts with thread notes and mascot animations on", async () => {
+ const switches = await import("./feature-switches");
+ expect(switches.readDeviceFeature("threadNotes")).toBe(true);
+ expect(switches.readDeviceFeature("mascotMotion")).toBe(true);
+ });
+
+ it("keeps a switch off across a restart, and on again once turned back on", async () => {
+ let switches = await import("./feature-switches");
+ switches.setDeviceFeature("mascotMotion", false);
+ vi.resetModules();
+ switches = await import("./feature-switches");
+ expect(switches.readDeviceFeature("mascotMotion")).toBe(false);
+ expect(switches.readDeviceFeature("threadNotes")).toBe(true);
+ switches.setDeviceFeature("mascotMotion", true);
+ vi.resetModules();
+ switches = await import("./feature-switches");
+ expect(switches.readDeviceFeature("mascotMotion")).toBe(true);
+ });
+
+ it("stays on when this device's storage cannot be read", async () => {
+ vi.stubGlobal("localStorage", { getItem: () => { throw new Error("blocked"); }, setItem: () => {} });
+ const switches = await import("./feature-switches");
+ expect(switches.readDeviceFeature("threadNotes")).toBe(true);
+ });
+});
+
+describe("Settings → Features in the place's config.json", () => {
+ it("has Skill Burger on and thread tabs off until config.json says otherwise", () => {
+ expect(skillBurgerEnabled(null)).toBe(true);
+ expect(skillBurgerEnabled({ features: {} })).toBe(true);
+ expect(skillBurgerEnabled({ features: { skillBurger: false } })).toBe(false);
+ expect(threadTabsEnabled(null)).toBe(false);
+ expect(threadTabsEnabled({ features: { threadTabs: true } })).toBe(true);
+ });
+});
diff --git a/src/locales/de.json b/src/locales/de.json
index 9377523af9..c49938ac00 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -4332,5 +4332,15 @@
"skillBurger.run.pathUndone": "Weg entfernt",
"skillBurger.run.addPathFailed": "Das hat nicht geklappt. Versuch es noch einmal.",
"activity.tool.team.runWorkflow": "Skill Burger ausführen",
- "activity.tool.team.workflowEdit": "Skill Burger ändern"
+ "activity.tool.team.workflowEdit": "Skill Burger ändern",
+ "settings.page.features": "Funktionen",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Speichert den Lauf eines Bots als Schritte, die du erneut ausführen kannst",
+ "settings.features.threadTabs": "Thread-Tabs",
+ "settings.features.threadTabsLine": "Zeigt die Threads eines Bots als Tabs über dem Chat",
+ "settings.features.threadNotes": "Thread-Notizen",
+ "settings.features.threadNotesLine": "Zeigt, was ein Bot sich zu jedem Thread notiert",
+ "settings.features.mascotMotion": "Maskottchen-Animationen",
+ "settings.features.mascotMotionLine": "Lässt die Maskottchen der Bots sich bewegen, während sie arbeiten",
+ "settings.features.error": "Das konnte nicht gespeichert werden. Prüfe deine Verbindung und versuche es erneut."
}
diff --git a/src/locales/en.json b/src/locales/en.json
index 53c6f09130..faea38da43 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -11809,5 +11809,15 @@
"skillBurger.run.pathUndone": "Path removed",
"skillBurger.run.addPathFailed": "Couldn't do that. Try again.",
"activity.tool.team.runWorkflow": "Run workflow",
- "activity.tool.team.workflowEdit": "Workflow edit"
+ "activity.tool.team.workflowEdit": "Workflow edit",
+ "settings.page.features": "Features",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Save a bot's run as steps you can run again",
+ "settings.features.threadTabs": "Thread tabs",
+ "settings.features.threadTabsLine": "Show a bot's threads as tabs above the chat",
+ "settings.features.threadNotes": "Thread notes",
+ "settings.features.threadNotesLine": "Show what a bot notes down for each thread",
+ "settings.features.mascotMotion": "Mascot animations",
+ "settings.features.mascotMotionLine": "Let bots' mascots move while they work",
+ "settings.features.error": "Couldn't save that. Check your connection and try again."
}
diff --git a/src/locales/es.json b/src/locales/es.json
index 9d2af96824..3ba572fbd6 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -6604,5 +6604,15 @@
"skillBurger.run.pathUndone": "Camino quitado",
"skillBurger.run.addPathFailed": "No se pudo hacer. Inténtalo de nuevo.",
"activity.tool.team.runWorkflow": "Ejecutar Skill Burger",
- "activity.tool.team.workflowEdit": "Cambiar Skill Burger"
+ "activity.tool.team.workflowEdit": "Cambiar Skill Burger",
+ "settings.page.features": "Funciones",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Guarda la ejecución de un bot como pasos que puedes volver a ejecutar",
+ "settings.features.threadTabs": "Pestañas de hilos",
+ "settings.features.threadTabsLine": "Muestra los hilos de un bot como pestañas sobre el chat",
+ "settings.features.threadNotes": "Notas del hilo",
+ "settings.features.threadNotesLine": "Muestra lo que un bot anota para cada hilo",
+ "settings.features.mascotMotion": "Animaciones de la mascota",
+ "settings.features.mascotMotionLine": "Deja que las mascotas de los bots se muevan mientras trabajan",
+ "settings.features.error": "No se pudo guardar. Revisa tu conexión e inténtalo de nuevo."
}
diff --git a/src/locales/fr.json b/src/locales/fr.json
index 634b11a100..584f6c4d99 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -4009,5 +4009,15 @@
"skillBurger.run.pathUndone": "Chemin retiré",
"skillBurger.run.addPathFailed": "Impossible de le faire. Réessayez.",
"activity.tool.team.runWorkflow": "Exécuter le Skill Burger",
- "activity.tool.team.workflowEdit": "Modifier le Skill Burger"
+ "activity.tool.team.workflowEdit": "Modifier le Skill Burger",
+ "settings.page.features": "Fonctionnalités",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Enregistre l'exécution d'un bot en étapes que tu peux relancer",
+ "settings.features.threadTabs": "Onglets de fils",
+ "settings.features.threadTabsLine": "Affiche les fils d'un bot en onglets au-dessus du chat",
+ "settings.features.threadNotes": "Notes du fil",
+ "settings.features.threadNotesLine": "Affiche ce qu'un bot note pour chaque fil",
+ "settings.features.mascotMotion": "Animations de la mascotte",
+ "settings.features.mascotMotionLine": "Laisse les mascottes des bots bouger pendant qu'ils travaillent",
+ "settings.features.error": "Impossible d'enregistrer. Vérifie ta connexion et réessaie."
}
diff --git a/src/locales/hi.json b/src/locales/hi.json
index d49980e3ba..0853ec7e30 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -3861,5 +3861,15 @@
"skillBurger.run.pathUndone": "रास्ता हटाया गया",
"skillBurger.run.addPathFailed": "यह नहीं हो सका। फिर कोशिश करें।",
"activity.tool.team.runWorkflow": "Skill Burger चलाएँ",
- "activity.tool.team.workflowEdit": "Skill Burger बदलें"
+ "activity.tool.team.workflowEdit": "Skill Burger बदलें",
+ "settings.page.features": "सुविधाएँ",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "किसी बॉट के रन को ऐसे चरणों के रूप में सहेजें जिन्हें आप फिर से चला सकें",
+ "settings.features.threadTabs": "थ्रेड टैब",
+ "settings.features.threadTabsLine": "चैट के ऊपर बॉट के थ्रेड टैब के रूप में दिखाएँ",
+ "settings.features.threadNotes": "थ्रेड नोट्स",
+ "settings.features.threadNotesLine": "दिखाएँ कि बॉट हर थ्रेड के लिए क्या नोट करता है",
+ "settings.features.mascotMotion": "मैस्कॉट एनिमेशन",
+ "settings.features.mascotMotionLine": "काम करते समय बॉट के मैस्कॉट को हिलने दें",
+ "settings.features.error": "इसे सहेजा नहीं जा सका। अपना कनेक्शन जाँचें और फिर से कोशिश करें।"
}
diff --git a/src/locales/it.json b/src/locales/it.json
index 57947a6fae..d28cc264ad 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -11494,5 +11494,15 @@
"skillBurger.run.pathUndone": "Percorso rimosso",
"skillBurger.run.addPathFailed": "Non è stato possibile. Riprova.",
"activity.tool.team.runWorkflow": "Esegui Skill Burger",
- "activity.tool.team.workflowEdit": "Modifica Skill Burger"
+ "activity.tool.team.workflowEdit": "Modifica Skill Burger",
+ "settings.page.features": "Funzioni",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Salva l'esecuzione di un bot come passaggi da rieseguire",
+ "settings.features.threadTabs": "Schede dei thread",
+ "settings.features.threadTabsLine": "Mostra i thread di un bot come schede sopra la chat",
+ "settings.features.threadNotes": "Note del thread",
+ "settings.features.threadNotesLine": "Mostra cosa annota un bot per ogni thread",
+ "settings.features.mascotMotion": "Animazioni della mascotte",
+ "settings.features.mascotMotionLine": "Lascia che le mascotte dei bot si muovano mentre lavorano",
+ "settings.features.error": "Impossibile salvare. Controlla la connessione e riprova."
}
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 11e8570fd5..911487369e 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -8138,5 +8138,15 @@
"skillBurger.run.pathUndone": "手順を削除しました",
"skillBurger.run.addPathFailed": "できませんでした。もう一度お試しください。",
"activity.tool.team.runWorkflow": "Skill Burger を実行",
- "activity.tool.team.workflowEdit": "Skill Burger を変更"
+ "activity.tool.team.workflowEdit": "Skill Burger を変更",
+ "settings.page.features": "機能",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "ボットの実行を、もう一度実行できる手順として保存します",
+ "settings.features.threadTabs": "スレッドのタブ",
+ "settings.features.threadTabsLine": "ボットのスレッドをチャットの上にタブで表示します",
+ "settings.features.threadNotes": "スレッドのメモ",
+ "settings.features.threadNotesLine": "ボットが各スレッドについて書き留めた内容を表示します",
+ "settings.features.mascotMotion": "マスコットのアニメーション",
+ "settings.features.mascotMotionLine": "作業中にボットのマスコットを動かします",
+ "settings.features.error": "保存できませんでした。接続を確認して、もう一度お試しください。"
}
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 07fbee90de..9eeb34d5ae 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -7828,5 +7828,15 @@
"skillBurger.run.pathUndone": "경로를 제거했습니다",
"skillBurger.run.addPathFailed": "하지 못했습니다. 다시 시도하세요.",
"activity.tool.team.runWorkflow": "Skill Burger 실행",
- "activity.tool.team.workflowEdit": "Skill Burger 변경"
+ "activity.tool.team.workflowEdit": "Skill Burger 변경",
+ "settings.page.features": "기능",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "봇의 실행을 다시 실행할 수 있는 단계로 저장해요",
+ "settings.features.threadTabs": "스레드 탭",
+ "settings.features.threadTabsLine": "봇의 스레드를 채팅 위에 탭으로 보여줘요",
+ "settings.features.threadNotes": "스레드 메모",
+ "settings.features.threadNotesLine": "봇이 스레드마다 적어 둔 내용을 보여줘요",
+ "settings.features.mascotMotion": "마스코트 애니메이션",
+ "settings.features.mascotMotionLine": "봇이 일하는 동안 마스코트가 움직이게 해요",
+ "settings.features.error": "저장하지 못했어요. 연결을 확인하고 다시 시도해 주세요."
}
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 55d00e8e76..4c30d85eea 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -7300,5 +7300,15 @@
"skillBurger.run.pathUndone": "Usunięto ścieżkę",
"skillBurger.run.addPathFailed": "Nie udało się. Spróbuj ponownie.",
"activity.tool.team.runWorkflow": "Uruchom Skill Burger",
- "activity.tool.team.workflowEdit": "Zmień Skill Burger"
+ "activity.tool.team.workflowEdit": "Zmień Skill Burger",
+ "settings.page.features": "Funkcje",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Zapisuje przebieg pracy bota jako kroki, które można uruchomić ponownie",
+ "settings.features.threadTabs": "Karty wątków",
+ "settings.features.threadTabsLine": "Pokazuje wątki bota jako karty nad czatem",
+ "settings.features.threadNotes": "Notatki wątku",
+ "settings.features.threadNotesLine": "Pokazuje, co bot notuje w każdym wątku",
+ "settings.features.mascotMotion": "Animacje maskotki",
+ "settings.features.mascotMotionLine": "Pozwala maskotkom botów poruszać się podczas pracy",
+ "settings.features.error": "Nie udało się zapisać. Sprawdź połączenie i spróbuj ponownie."
}
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 19001496d3..8b19b263eb 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -11809,5 +11809,15 @@
"skillBurger.run.pathUndone": "Caminho removido",
"skillBurger.run.addPathFailed": "Não foi possível. Tente de novo.",
"activity.tool.team.runWorkflow": "Executar Skill Burger",
- "activity.tool.team.workflowEdit": "Alterar Skill Burger"
+ "activity.tool.team.workflowEdit": "Alterar Skill Burger",
+ "settings.page.features": "Recursos",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Salva a execução de um bot como etapas que você pode executar de novo",
+ "settings.features.threadTabs": "Abas de conversas",
+ "settings.features.threadTabsLine": "Mostra as conversas de um bot como abas acima do chat",
+ "settings.features.threadNotes": "Notas da conversa",
+ "settings.features.threadNotesLine": "Mostra o que um bot anota em cada conversa",
+ "settings.features.mascotMotion": "Animações do mascote",
+ "settings.features.mascotMotionLine": "Deixa os mascotes dos bots se moverem enquanto trabalham",
+ "settings.features.error": "Não foi possível salvar. Verifique sua conexão e tente de novo."
}
diff --git a/src/locales/ru.json b/src/locales/ru.json
index bb056a7442..66c4d27eff 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -7354,5 +7354,15 @@
"skillBurger.run.pathUndone": "Путь удалён",
"skillBurger.run.addPathFailed": "Не получилось. Попробуйте ещё раз.",
"activity.tool.team.runWorkflow": "Запустить Skill Burger",
- "activity.tool.team.workflowEdit": "Изменить Skill Burger"
+ "activity.tool.team.workflowEdit": "Изменить Skill Burger",
+ "settings.page.features": "Функции",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Сохраняет работу бота как шаги, которые можно запустить снова",
+ "settings.features.threadTabs": "Вкладки веток",
+ "settings.features.threadTabsLine": "Показывает ветки бота вкладками над чатом",
+ "settings.features.threadNotes": "Заметки ветки",
+ "settings.features.threadNotesLine": "Показывает, что бот записывает для каждой ветки",
+ "settings.features.mascotMotion": "Анимации маскота",
+ "settings.features.mascotMotionLine": "Маскоты ботов двигаются, пока боты работают",
+ "settings.features.error": "Не удалось сохранить. Проверьте подключение и попробуйте ещё раз."
}
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 9d8ee4fda3..dac962935f 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -6099,5 +6099,15 @@
"skillBurger.run.pathUndone": "Yol kaldırıldı",
"skillBurger.run.addPathFailed": "Yapılamadı. Tekrar deneyin.",
"activity.tool.team.runWorkflow": "Skill Burger çalıştır",
- "activity.tool.team.workflowEdit": "Skill Burger değiştir"
+ "activity.tool.team.workflowEdit": "Skill Burger değiştir",
+ "settings.page.features": "Özellikler",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Bir botun çalışmasını yeniden çalıştırabileceğin adımlar olarak kaydeder",
+ "settings.features.threadTabs": "Konuşma sekmeleri",
+ "settings.features.threadTabsLine": "Bir botun konuşmalarını sohbetin üstünde sekmeler olarak gösterir",
+ "settings.features.threadNotes": "Konuşma notları",
+ "settings.features.threadNotesLine": "Bir botun her konuşma için not aldıklarını gösterir",
+ "settings.features.mascotMotion": "Maskot animasyonları",
+ "settings.features.mascotMotionLine": "Botların maskotları çalışırken hareket eder",
+ "settings.features.error": "Kaydedilemedi. Bağlantını kontrol edip tekrar dene."
}
diff --git a/src/locales/uk.json b/src/locales/uk.json
index e90a4d2479..35dad790b3 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -4281,5 +4281,15 @@
"skillBurger.run.pathUndone": "Шлях вилучено",
"skillBurger.run.addPathFailed": "Не вдалося. Спробуйте ще раз.",
"activity.tool.team.runWorkflow": "Запустити Skill Burger",
- "activity.tool.team.workflowEdit": "Змінити Skill Burger"
+ "activity.tool.team.workflowEdit": "Змінити Skill Burger",
+ "settings.page.features": "Функції",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Зберігає роботу бота як кроки, які можна запустити знову",
+ "settings.features.threadTabs": "Вкладки гілок",
+ "settings.features.threadTabsLine": "Показує гілки бота вкладками над чатом",
+ "settings.features.threadNotes": "Нотатки гілки",
+ "settings.features.threadNotesLine": "Показує, що бот записує для кожної гілки",
+ "settings.features.mascotMotion": "Анімації маскота",
+ "settings.features.mascotMotionLine": "Маскоти ботів рухаються, поки боти працюють",
+ "settings.features.error": "Не вдалося зберегти. Перевірте з'єднання і спробуйте ще раз."
}
diff --git a/src/locales/vi.json b/src/locales/vi.json
index 36fc406abc..5b61832696 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -6099,5 +6099,15 @@
"skillBurger.run.pathUndone": "Đã xóa nhánh",
"skillBurger.run.addPathFailed": "Không làm được. Hãy thử lại.",
"activity.tool.team.runWorkflow": "Chạy Skill Burger",
- "activity.tool.team.workflowEdit": "Đổi Skill Burger"
+ "activity.tool.team.workflowEdit": "Đổi Skill Burger",
+ "settings.page.features": "Tính năng",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Lưu một lần chạy của bot thành các bước bạn có thể chạy lại",
+ "settings.features.threadTabs": "Thẻ luồng",
+ "settings.features.threadTabsLine": "Hiển thị các luồng của bot thành thẻ phía trên khung chat",
+ "settings.features.threadNotes": "Ghi chú của luồng",
+ "settings.features.threadNotesLine": "Hiển thị những gì bot ghi lại cho từng luồng",
+ "settings.features.mascotMotion": "Hoạt ảnh linh vật",
+ "settings.features.mascotMotionLine": "Cho linh vật của bot chuyển động khi bot làm việc",
+ "settings.features.error": "Không thể lưu. Hãy kiểm tra kết nối rồi thử lại."
}
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 1813d53e9a..26569bdc66 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -10416,5 +10416,15 @@
"skillBurger.run.pathUndone": "已移除路徑",
"skillBurger.run.addPathFailed": "無法完成,請再試一次。",
"activity.tool.team.runWorkflow": "執行 Skill Burger",
- "activity.tool.team.workflowEdit": "變更 Skill Burger"
+ "activity.tool.team.workflowEdit": "變更 Skill Burger",
+ "settings.page.features": "功能",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "把機器人的一次執行儲存為可再次執行的步驟",
+ "settings.features.threadTabs": "對話分頁",
+ "settings.features.threadTabsLine": "在聊天上方以分頁顯示機器人的對話",
+ "settings.features.threadNotes": "對話筆記",
+ "settings.features.threadNotesLine": "顯示機器人為每個對話記下的內容",
+ "settings.features.mascotMotion": "吉祥物動畫",
+ "settings.features.mascotMotionLine": "機器人工作時讓它們的吉祥物動起來",
+ "settings.features.error": "無法儲存。請檢查連線後再試一次。"
}
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 19cf80bdd7..d6223da9e0 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -10329,5 +10329,15 @@
"skillBurger.run.pathUndone": "已移除路径",
"skillBurger.run.addPathFailed": "无法完成,请重试。",
"activity.tool.team.runWorkflow": "运行 Skill Burger",
- "activity.tool.team.workflowEdit": "更改 Skill Burger"
+ "activity.tool.team.workflowEdit": "更改 Skill Burger",
+ "settings.page.features": "功能",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "把机器人的一次运行保存为可再次运行的步骤",
+ "settings.features.threadTabs": "对话标签页",
+ "settings.features.threadTabsLine": "在聊天上方以标签页显示机器人的对话",
+ "settings.features.threadNotes": "对话笔记",
+ "settings.features.threadNotesLine": "显示机器人为每个对话记下的内容",
+ "settings.features.mascotMotion": "吉祥物动画",
+ "settings.features.mascotMotionLine": "机器人工作时让它们的吉祥物动起来",
+ "settings.features.error": "无法保存。请检查网络连接后重试。"
}
diff --git a/src/state/store.tsx b/src/state/store.tsx
index 4c67fef9c2..a39f9235b5 100644
--- a/src/state/store.tsx
+++ b/src/state/store.tsx
@@ -470,7 +470,7 @@ export type AppSettingsSection = SettingsPageId
| "engines" | "companion" | "remote" | "computer" | "logins" | "botAccess" | "activity" | "backups" | "workspaces"
| "skills" | "import" | "updates";
export type SettingsPageId = "overview" | "devices" | "phone" | "ai" | "bots" | "desktops" | "vault" | "usage" | "transfer" | "storage" | "data" | "people"
- | "installations" | "account" | "plan" | "app" | "general" | "appearance";
+ | "installations" | "account" | "plan" | "app" | "general" | "appearance" | "features";
export type BotSettingsSection =
| "overview"