Skip to content

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

Add promotional messages off switch in Settings → Features

skygunner6638665dc470
diff --git a/docs/announcements.md b/docs/announcements.md
index 7d98013866..c5a09ca3a9 100644
--- a/docs/announcements.md
+++ b/docs/announcements.md
@@ -34,6 +34,8 @@ analytics on, the app counts the card (see [Counting](#counting)).
Older versions of the app know nothing of this file and never download it.
+In **Settings → Features**, turn off **Promotional messages** for a workspace to hide sponsored cards and built-in upgrade offers. Product news, tips, release notes and account notices remain available. Self-hosted workspaces can set `features.promotions` to `false` in `config.json`.
+
## Publishing a card
1. Edit `announcements/announcements.json` on a branch: add a card to `cards` (the first card in the list that is for a
diff --git a/screenshots/issue-6652/before-768-daylight.png b/screenshots/issue-6652/before-768-daylight.png
new file mode 100644
index 0000000000..c262666389
Binary files /dev/null and b/screenshots/issue-6652/before-768-daylight.png differ
diff --git a/screenshots/issue-6652/before-768-midnight.png b/screenshots/issue-6652/before-768-midnight.png
new file mode 100644
index 0000000000..4070467c7f
Binary files /dev/null and b/screenshots/issue-6652/before-768-midnight.png differ
diff --git a/screenshots/issue-6652/off-768-daylight.png b/screenshots/issue-6652/off-768-daylight.png
new file mode 100644
index 0000000000..0c2a9dd7a7
Binary files /dev/null and b/screenshots/issue-6652/off-768-daylight.png differ
diff --git a/screenshots/issue-6652/off-768-midnight.png b/screenshots/issue-6652/off-768-midnight.png
new file mode 100644
index 0000000000..5d98253730
Binary files /dev/null and b/screenshots/issue-6652/off-768-midnight.png differ
diff --git a/server/config.test.ts b/server/config.test.ts
index 32aee1cb98..0d9b402e90 100644
--- a/server/config.test.ts
+++ b/server/config.test.ts
@@ -57,6 +57,11 @@ const reloaded = (patch: object, cfg: AppConfig = {}) =>
changedInstanceIds(engineLaunches(instanceConfigs(cfg), {}), engineLaunches(instanceConfigs({ ...cfg, ...patch } as AppConfig), {}));
describe("configuration boundaries", () => {
+ it("keeps the optional promotions preference in stored config and patches", () => {
+ expect(parseStoredConfig({ features: { promotions: false } }).features).toEqual({ promotions: false });
+ expect(parseConfigPatch({ features: { promotions: true } }).features).toEqual({ promotions: true });
+ expect(() => parseConfigPatch({ features: { promotions: "off" } })).toThrow();
+ });
it("loads and takes a retired features.teamBoard without keeping it: the Team Board has no switch", () => {
expect(parseStoredConfig({ features: { teamBoard: true, threadTabs: true } }).features).toEqual({ threadTabs: true });
expect(parseConfigPatch({ features: { teamBoard: false } }).features).toEqual({});
diff --git a/server/config.ts b/server/config.ts
index 502f1b16fa..3fe01c9bae 100644
--- a/server/config.ts
+++ b/server/config.ts
@@ -226,7 +226,7 @@ const featureConfigSchema = z.object({
/** Room jobs to several members run side by side, each in a thread of its own. On unless false. */
parallelRoomJobs: z.boolean().optional(),
acpPlanLines: z.boolean().optional(), // An ACP agent's plan as activity lines. Off unless true.
-}).extend({ agentsToolBridge: z.boolean().optional(), savedSteps: z.boolean().optional(), usbPhoneTakeover: z.boolean().optional(), cloudComputerAutoReplace: z.boolean().optional(), phonePush: z.boolean().optional(), skillBurger: z.boolean().optional(), threadTabs: z.boolean().optional(), suggestedReplies: z.boolean().optional() }); // suggestedReplies: a faded next-line suggestion in an empty composer after a bot replies, written by the bot's own engine's smallest model, on unless false; skillBurger: Skill Burgers in chat, the side menu and the bot panel, and the tools that run them, on unless false; threadTabs: a bot's threads as tabs above its chat, off unless true; cloudComputerAutoReplace: set a dead or silent cloud computer aside (kept seven days with its files) and give its bot a new one by itself, on unless false (OMB_CLOUD_COMPUTER_AUTO_REPLACE wins); agentsToolBridge: the find_tool / use_tool bridge, off unless true; savedSteps: repeat a computer task from its saved steps, on unless false; usbPhoneTakeover: watch and take over the bots' USB phone, off unless true; phonePush: wake a paired phone whose app is closed through the hosted push relay, on unless false (OMB_PHONE_PUSH=0 or 1 wins)
+}).extend({ agentsToolBridge: z.boolean().optional(), savedSteps: z.boolean().optional(), usbPhoneTakeover: z.boolean().optional(), cloudComputerAutoReplace: z.boolean().optional(), phonePush: z.boolean().optional(), skillBurger: z.boolean().optional(), threadTabs: z.boolean().optional(), suggestedReplies: z.boolean().optional(), promotions: z.boolean().optional() }); // suggestedReplies: a faded next-line suggestion in an empty composer after a bot replies, written by the bot's own engine's smallest model, on unless false; skillBurger: Skill Burgers in chat, the side menu and the bot panel, and the tools that run them, on unless false; threadTabs: a bot's threads as tabs above its chat, off unless true; cloudComputerAutoReplace: set a dead or silent cloud computer aside (kept seven days with its files) and give its bot a new one by itself, on unless false (OMB_CLOUD_COMPUTER_AUTO_REPLACE wins); agentsToolBridge: the find_tool / use_tool bridge, off unless true; savedSteps: repeat a computer task from its saved steps, on unless false; usbPhoneTakeover: watch and take over the bots' USB phone, off unless true; phonePush: wake a paired phone whose app is closed through the hosted push relay, on unless false (OMB_PHONE_PUSH=0 or 1 wins)
const onboardingConfigSchema = z.object({
completedAt: z.string().trim().max(40).optional(),
version: z.number().int().min(0).max(1000).optional(),
@@ -467,7 +467,7 @@ export interface AppConfig extends HelperConfig {
context?: { rebuildBytes?: number; compactAt?: number; autoCompact?: boolean; roomCompactAt?: number; roomSessions?: boolean; replayToolHistory?: boolean };
memory?: { captureQuietMs?: number; tidyHour?: number };
vpsIdle?: z.infer<typeof vpsIdleConfigSchema>; localVm?: { mode?: "shared" | "per-bot" | "pool"; maxInstances?: number; idleTimeoutMinutes?: number; preserveInstalledApps?: boolean; memoryGb?: number; cpus?: number };
- features?: { skillAuthoring?: boolean; skillReview?: boolean; skillReviewSteps?: number; showToolCalls?: boolean; browser?: boolean; sharedComputers?: boolean; claudeUserMcp?: boolean; claudeUserSkills?: boolean; llmThreadTitles?: boolean; smartSetupChoices?: boolean; autoRecall?: boolean; skillsLibrary?: boolean; shareLearnedSkills?: "off" | "ask" | "auto"; roomMemoryCapture?: boolean; parallelRoomJobs?: boolean; acpPlanLines?: boolean; agentsToolBridge?: boolean; savedSteps?: boolean; usbPhoneTakeover?: boolean; cloudComputerAutoReplace?: boolean; phonePush?: boolean; skillBurger?: boolean; threadTabs?: boolean; suggestedReplies?: boolean };
+ features?: { skillAuthoring?: boolean; skillReview?: boolean; skillReviewSteps?: number; showToolCalls?: boolean; browser?: boolean; sharedComputers?: boolean; claudeUserMcp?: boolean; claudeUserSkills?: boolean; llmThreadTitles?: boolean; smartSetupChoices?: boolean; autoRecall?: boolean; skillsLibrary?: boolean; shareLearnedSkills?: "off" | "ask" | "auto"; roomMemoryCapture?: boolean; parallelRoomJobs?: boolean; acpPlanLines?: boolean; agentsToolBridge?: boolean; savedSteps?: boolean; usbPhoneTakeover?: boolean; cloudComputerAutoReplace?: boolean; phonePush?: boolean; skillBurger?: boolean; threadTabs?: boolean; suggestedReplies?: boolean; promotions?: boolean };
onboarding?: { completedAt?: string; version?: number; reelSeen?: boolean; hintsSeen?: string[]; firstTurnAt?: string };
browserProfiles?: BrowserProfile[];
browserEngine?: BrowserEngineConfig;
diff --git a/server/index.test.ts b/server/index.test.ts
index 0b816667bf..71837df0c3 100644
--- a/server/index.test.ts
+++ b/server/index.test.ts
@@ -10000,7 +10000,7 @@ describe("harness HTTP API", () => {
it("keeps skill authoring on by default and persists an explicit opt-out", async () => {
const before = await api("GET", "/api/config");
expect(before.status).toBe(200);
- expect(before.body.features).toEqual({ browser: false, skillAuthoring: true, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: false, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: true, savedSteps: true, savedStepsHere: process.platform === "darwin", skillBurger: true, threadTabs: false, suggestedReplies: true, roomFeed: true, roomFeedSince: expect.any(Number), usbPhoneTakeover: false });
+ expect(before.body.features).toEqual({ browser: false, skillAuthoring: true, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: false, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: true, savedSteps: true, savedStepsHere: process.platform === "darwin", skillBurger: true, threadTabs: false, suggestedReplies: true, promotions: true, roomFeed: true, roomFeedSince: expect.any(Number), usbPhoneTakeover: false });
const untouched = JSON.parse(readFileSync(join(home, ".openmausbot", "config.json"), "utf8"));
expect(untouched.features?.skillAuthoring).toBeUndefined();
expect(untouched.features?.skillReview).toBeUndefined();
@@ -10010,7 +10010,7 @@ describe("harness HTTP API", () => {
features: { skillAuthoring: false },
});
expect(saved.status).toBe(200);
- expect(saved.body.features).toEqual({ browser: false, skillAuthoring: false, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: false, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: true, savedSteps: true, savedStepsHere: process.platform === "darwin", skillBurger: true, threadTabs: false, suggestedReplies: true, roomFeed: true, roomFeedSince: expect.any(Number), usbPhoneTakeover: false });
+ expect(saved.body.features).toEqual({ browser: false, skillAuthoring: false, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: false, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: true, savedSteps: true, savedStepsHere: process.platform === "darwin", skillBurger: true, threadTabs: false, suggestedReplies: true, promotions: true, roomFeed: true, roomFeedSince: expect.any(Number), usbPhoneTakeover: false });
const disk = JSON.parse(readFileSync(join(home, ".openmausbot", "config.json"), "utf8"));
// Earlier browser coverage may have persisted its own toggle: opting out must preserve sibling settings.
@@ -10028,7 +10028,7 @@ describe("harness HTTP API", () => {
const tools = await api("PATCH", "/api/config", { features: { showToolCalls: true } });
expect(tools.status).toBe(200);
- expect(tools.body.features).toEqual({ browser: false, skillAuthoring: false, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: true, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: true, savedSteps: true, savedStepsHere: process.platform === "darwin", skillBurger: true, threadTabs: false, suggestedReplies: true, roomFeed: true, roomFeedSince: expect.any(Number), usbPhoneTakeover: false });
+ expect(tools.body.features).toEqual({ browser: false, skillAuthoring: false, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: true, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: true, savedSteps: true, savedStepsHere: process.platform === "darwin", skillBurger: true, threadTabs: false, suggestedReplies: true, promotions: true, roomFeed: true, roomFeedSince: expect.any(Number), usbPhoneTakeover: false });
const bot = (await api("POST", "/api/bots", {})).body.bot;
try {
diff --git a/server/index.ts b/server/index.ts
index 2d5930c9d1..e51b5ea811 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -11621,7 +11621,7 @@ function configStatus() {
autoRecall: autoRecallEnabled(cfg),
roomMemoryCapture: roomMemoryCaptureEnabled(cfg),
parallelRoomJobs: parallelRoomJobsEnabled(cfg),
- savedSteps: savedStepsEnabled(cfg), savedStepsHere: savedSteps.here(), skillBurger: skillBurgerEnabled(cfg), threadTabs: cfg.features?.threadTabs === true, suggestedReplies: cfg.features?.suggestedReplies !== false, roomFeed: true, roomFeedSince: roomFeedSince(DATA_DIR),
+ savedSteps: savedStepsEnabled(cfg), savedStepsHere: savedSteps.here(), skillBurger: skillBurgerEnabled(cfg), threadTabs: cfg.features?.threadTabs === true, suggestedReplies: cfg.features?.suggestedReplies !== false, promotions: cfg.features?.promotions !== false, roomFeed: true, roomFeedSince: roomFeedSince(DATA_DIR),
usbPhoneTakeover: HAS_USB_PORT ? usbPhoneTakeoverEnabled(cfg) : undefined,
},
onboarding: {
diff --git a/shared/settings-places.ts b/shared/settings-places.ts
index 70f858da1c..453606d736 100644
--- a/shared/settings-places.ts
+++ b/shared/settings-places.ts
@@ -104,6 +104,7 @@ export const SETTINGS_PLACES = [
{"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":"suggested-replies","path":"Settings → Features → Suggested replies","words":["suggestions","autocomplete","next reply","tab"]},
+ {"id":"promotions","path":"Settings → Features → Promotional messages","words":["ads","offers","upgrade messages","sponsor"]},
{"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/components/AppNotices.test.ts b/src/components/AppNotices.test.ts
index 4948c3ed08..527b896117 100644
--- a/src/components/AppNotices.test.ts
+++ b/src/components/AppNotices.test.ts
@@ -175,6 +175,30 @@ beforeEach(() => {
});
afterEach(() => { vi.unstubAllGlobals(); vi.useRealTimers(); setLocale("en"); });
+describe("promotional messages", () => {
+ it("skips the Cloud offer and shows a trial deadline when promotions are off", async () => {
+ returning();
+ f.state.config.features = { promotions: false };
+ storage.delete(BOAT_OFFER_NOTICE);
+ storage.delete(PRODUCT_HUNT_NOTICE);
+ expect(await launch()).toBe("");
+ expect(bridges.cloud.offer).not.toHaveBeenCalled();
+ snapshot = { status: "paid", tier: "pro", trial: trial("active"), notice: "active" };
+ expect(await relaunch()).toContain("Your free trial ends on");
+ expect(bridges.plan.noticeSeen).toHaveBeenCalledOnce();
+ });
+
+ it("keeps the What's new slides about apps and publishing, with no plan pitches", async () => {
+ returning();
+ f.state.config.features = { promotions: false };
+ storage.delete(WHATS_NEW_NOTICE);
+ desk.saved = null;
+ offer = { ...TRIAL_OFFER, plans: [...plans, { tier: "team", label: "Team", amount: 9900, trialDays: 7 }] };
+ expect(slidesOf(await launch())).toEqual(["apps", "publish"]);
+ expect(bridges.cloud.offer).not.toHaveBeenCalled();
+ });
+});
+
describe("the card after the update", () => {
it("offers the free trial to someone signed out who has used the app before, in the Admin's numbers, with Start free trial and Show me how", async () => {
returning();
@@ -1671,6 +1695,13 @@ describe("cards from the announcements file", () => {
expect(await relaunch()).not.toContain("Title of branded");
});
+ it("skips sponsored cards but still shows product news when promotions are off", async () => {
+ f.state.config.features = { promotions: false };
+ feed = [card("sponsor", { kind: "sponsor" }), card("phone-app")];
+ expect(await launch()).toContain("Title of phone-app");
+ expect(events()).toEqual([{ id: "phone-app", kind: "product", action: "shown" }]);
+ });
+
describe("a sponsor's card", () => {
const sponsor = (id: string) => card(id, { kind: "sponsor", label: "Sponsor" });
diff --git a/src/components/AppNotices.tsx b/src/components/AppNotices.tsx
index 4d18524a16..8eacc5fbb3 100644
--- a/src/components/AppNotices.tsx
+++ b/src/components/AppNotices.tsx
@@ -22,6 +22,7 @@ import { togetherSlideShown, useTogetherNoticeDrawn, useTogetherNoticeDue } from
import { SIMPLE_ONLY } from "@/lib/simple-only";
import { useAdvancedBackDue, useNewLookDue } from "@/lib/new-look";
import { useAdvancedMode } from "@/lib/interface-mode";
+import { promotionsEnabled } from "@/lib/feature-flags";
import { useSimpleModePromptSeen } from "@/lib/simple-mode-prompt";
import { reportWhatsNew, togetherSlideDue, WHATS_NEW_SOURCES, whatsNewAudience, whatsNewCarousel, whatsNewView, type WhatsNewAction, type WhatsNewSlide } from "@/lib/whats-new";
import { cloudSignInDue, onboardingCloudOffered, welcomeFinishedThisLaunch, type WelcomeViewer } from "@/lib/onboarding";
@@ -78,6 +79,7 @@ const FIRST_MESSAGES_MS = 6_000;
export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { quiet?: boolean; viewer?: WelcomeViewer | null; now?: () => number }) {
const { state, dispatch } = useStore();
+ const promotions = promotionsEnabled(state.config);
const remote = window.ogb?.remoteClient?.active === true;
const local = localDesktopPage();
const bridge = !remote && local ? window.ogb?.cloudAccount : undefined;
@@ -143,7 +145,7 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q
}, []);
const view = bridge ? cloudPlanView(account) : null;
const record = state.config?.onboarding;
- const introAllowed = Boolean(bridge) && brandStatus().source !== "file" && organization !== true && !onboardingCloudOffered(record);
+ const introAllowed = promotions && Boolean(bridge) && brandStatus().source !== "file" && organization !== true && !onboardingCloudOffered(record);
const stage = introStage(record, now());
const trialDue = cloudTrialNotice(plan);
const branded = brandStatus().source === "file", team = Boolean(state.config?.team);
@@ -156,7 +158,7 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q
const whatsNewHere = !branded && !whatsNewSeen;
const plansDue = !whatsNewHere || !bridge || !desktop || organization === true ? false : !desktopState || organization === null ? null : desktopState.cloud;
const whatsNewFor = plansDue === false ? null : whatsNewAudience(account);
- const wantOffer = Boolean(bridge?.offer) && ((introAllowed && view !== null && buyOfferAllowed(view) && stage !== "done")
+ const wantOffer = promotions && Boolean(bridge?.offer) && ((introAllowed && view !== null && buyOfferAllowed(view) && stage !== "done")
|| whatsNewFor === "none" || whatsNewFor === "own");
const offerKey = wantOffer ? `${view?.kind}:${JSON.stringify(account?.offer ?? null)}` : null;
useEffect(() => {
@@ -170,7 +172,7 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q
if (whatsNewSeen && desktopState && !desktopState.seen.includes(WHATS_NEW_NOTICE)) void desktop?.seen(WHATS_NEW_NOTICE).catch(() => {});
}, [whatsNewSeen, desktopState]);
const offerRead = !bridge?.offer ? null : offerFor === offerKey ? offer : undefined;
- const plans = plansDue === false ? "none" : plansDue === null ? "loading" : whatsNewView(account, offerRead);
+ const plans = !promotions || plansDue === false ? "none" : plansDue === null ? "loading" : whatsNewView(account, offerRead);
const teamSold = plansDue === true && offerRead ? offerRead.plans.some(entry => entry.tier === "team") : undefined;
const consentDue = consent.state?.available === true && consent.state.due && !consentDone;
const consentBlocked = useOtherDialogOpen(consentDue) || liveCall;
@@ -184,13 +186,14 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q
const simpleBlocked = useOtherDialogOpen(simpleDue) || liveCall;
// A sponsor's card is for whoever chooses a team's providers: its Owner and Admins, never its members.
const sponsorsHere = SPONSOR_CARDS_FOR_TEAM_MEMBERS || !state.config?.team || viewer?.canSave === true;
- const boatHere = sponsorsHere && boatOfferRuns(now()) && brandStatus().source !== "file";
+ const boatHere = promotions && sponsorsHere && boatOfferRuns(now()) && brandStatus().source !== "file";
const teams = teamsAction({ team: state.config?.team, viewer, account, canAddCloud: Boolean(bridge) });
// Owed while it has a slide for this person (or may, while that is read): the Teams popup and the sponsor's card it took
// in wait for it, and count as seen with it.
// A Cloud this person has: this page is one, or this desktop's sign-in has a plan of its own or a team's.
const hasCloud = viewer?.cloudHome === true || whatsNewFor === "own" || whatsNewFor === "team";
- const whatsNewState = !whatsNewHere ? "none" : togetherSlide === null ? "loading" : whatsNewCarousel({ plans, team: organization === true ? null : teams, teamSold,
+ const whatsNewTeam = organization === true || (!promotions && teams.kind === "start") ? null : teams;
+ const whatsNewState = !whatsNewHere ? "none" : togetherSlide === null ? "loading" : whatsNewCarousel({ plans, team: whatsNewTeam, teamSold,
cloud: hasCloud, apps: { place: state.config?.cloudHome === true ? "cloud" : "computer", install: local && !remote && Boolean(window.ogb?.appInstall) },
staging: account?.staging === true, together: togetherSlide });
const whatsNew = typeof whatsNewState === "object" ? whatsNewState : null;
@@ -251,14 +254,14 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q
facts: { nowMs: now(), version: appVersion(), platform: announcementPlatform(globalThis.navigator?.userAgent), surface, plan: announcementPlan(surface, view, team),
people: usedBefore(state.bots) ? "existing" : "new", locale: activeLocale(), conditions: announcementConditions(state) },
seen: seenRecord, branded, admin: viewer?.canSave !== false,
- sponsors: !providersRestricted(state.config?.managedPolicy) && sponsorsHere,
+ sponsors: promotions && !providersRestricted(state.config?.managedPolicy) && sponsorsHere,
});
const announcement = picked && picked !== "wait" ? picked : null;
// Teams: once for whom What's new has nothing, ahead of every other notice, on every page but a branded build's or an
// organization's desktop; never in the launch a welcome or MausBot's card took, before a first reply, over a first run's
// own screens or another dialog, during a live call or a move.
const teamsSeen = noticeSeen(record, TEAMS_NOTICE) || Boolean(desktopState?.seen.includes(TEAMS_NOTICE));
- const teamsHere = !branded && organization !== true && !teamsSeen && !whatsNewOwed;
+ const teamsHere = !branded && whatsNewTeam !== null && !teamsSeen && !whatsNewOwed;
const teamsBlocked = useOtherDialogOpen(teamsHere, true) || liveCall;
const teamsNow = !teamsHere || moving || afterWelcome === true ? false
: organization === null || !viewer || (desktop && !desktopState) || afterWelcome === null || mausBotFirst || moving === null || teamsBlocked ? null : true;
@@ -283,9 +286,9 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q
[SIMPLE_MODE_NOTICE]: !simpleDue || afterWelcome === true ? false : afterWelcome === null || mausBotFirst || simpleBlocked ? null : true,
[UPDATES_CONSENT_NOTICE]: consentNow,
[TWO_PLACES_NOTICE]: twoFact,
- [PRODUCT_HUNT_NOTICE]: !cards || moving || firstChat === true || brandStatus().source === "file" || now() >= PRODUCT_HUNT_UNTIL ? false
+ [PRODUCT_HUNT_NOTICE]: !promotions || !cards || moving || firstChat === true || brandStatus().source === "file" || now() >= PRODUCT_HUNT_UNTIL ? false
: organization === null || moving === null || firstChat === null ? null : !organization,
- [CLOUD_INTRO]: moving ? false : moving === null ? null : introDue(),
+ [CLOUD_INTRO]: !promotions || moving ? false : moving === null ? null : introDue(),
[CLOUD_TRIAL_NOTICE]: planBridge && plan === null ? null : Boolean(key && (trialDue || trialOpen === key)),
[CLOUD_NOTICE]: !view ? false : view.kind === "unknown" ? null
: Boolean(kind && !noticeSeen(record, CLOUD_NOTICE_CARD[kind].dismissed)),
@@ -293,7 +296,7 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q
[BOAT_OFFER_NOTICE]: !boatHere || moving || afterWelcome === true || !usedBefore(state.bots) || desktopState?.seen.includes(BOAT_OFFER_NOTICE) ? false
: organization === null || moving === null || afterWelcome === null || mausBotFirst || (desktop && !desktopState) ? null : !organization,
[ANNOUNCEMENT_NOTICE]: announcementNow,
- [STAR_NOTICE]: !bridge || moving || brandStatus().source === "file" || !usedBefore(state.bots) ? false : moving === null ? null : true,
+ [STAR_NOTICE]: !promotions || !bridge || moving || brandStatus().source === "file" || !usedBefore(state.bots) ? false : moving === null ? null : true,
}, id => id === TEAMS_NOTICE ? teamsSeen : id === CLOUD_INTRO ? stage === "done" && !introOpen
: id === STAR_NOTICE || id === PRODUCT_HUNT_NOTICE || id === BOAT_OFFER_NOTICE ? noticeSeen(record, id) : false, launch, closed) : null;
diff --git a/src/components/settings/SettingsWindow.test.ts b/src/components/settings/SettingsWindow.test.ts
index 28e2941948..1c189a9caf 100644
--- a/src/components/settings/SettingsWindow.test.ts
+++ b/src/components/settings/SettingsWindow.test.ts
@@ -317,6 +317,15 @@ describe("Settings → Features", () => {
expect(featureSwitches()).toEqual({ skillBurger: true, threadTabs: false, suggestedReplies: false });
});
+ it.each([true, false])("sets promotional messages to the opposite of %s", async (promotions) => {
+ const { api } = await import("@/state/store");
+ fixture.config = { features: { promotions } };
+ expect(render("features")).toContain("Promotional messages");
+ expect(featureSwitches()).toEqual({ promotions });
+ fixture.switches.find((props) => (props as { "data-feature-switch"?: string })["data-feature-switch"] === "promotions")!.onClick!({} as never);
+ expect(api).toHaveBeenCalledWith("/api/config", { method: "PATCH", body: JSON.stringify({ features: { promotions: !promotions } }) });
+ });
+
it("shows no Board switch on a Team Cloud, even from an older server that still reports one", () => {
fixture.config = { cloudHome: true, team: { name: "Acme" }, features: { skillBurger: true, threadTabs: false, teamBoard: false } };
expect(render("features")).not.toContain("Board");
diff --git a/src/components/settings/pages/FeaturesPage.tsx b/src/components/settings/pages/FeaturesPage.tsx
index 26e73f370f..cbafa9d8d8 100644
--- a/src/components/settings/pages/FeaturesPage.tsx
+++ b/src/components/settings/pages/FeaturesPage.tsx
@@ -10,6 +10,7 @@ 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" },
suggestedReplies: { title: "settings.features.suggestedReplies", line: "settings.features.suggestedRepliesLine" },
+ promotions: { title: "settings.features.promotions", line: "settings.features.promotionsLine" },
};
/** One switch kept in this place's config.json; shown once its server says it knows the switch. */
@@ -49,6 +50,7 @@ export function FeaturesPage() {
<FeatureRow name="skillBurger" />
<FeatureRow name="threadTabs" />
<FeatureRow name="suggestedReplies" />
+ <FeatureRow name="promotions" />
</SettingsRows>
</SettingsGroup>
);
diff --git a/src/components/settings/settings-index.ts b/src/components/settings/settings-index.ts
index d66d7d19c5..0d114d6141 100644
--- a/src/components/settings/settings-index.ts
+++ b/src/components/settings/settings-index.ts
@@ -265,6 +265,7 @@ export const SETTINGS_INDEX: readonly SettingsIndexEntry[] = [
{ id: "skill-burger-switch", page: "features", anchor: "features", labelKey: "settings.features.skillBurger", topFor: ["skill burger", "skill burgers"], synonyms: ["burger", "saved runs", "workflows"] },
{ id: "thread-tabs", page: "features", anchor: "features", labelKey: "settings.features.threadTabs", synonyms: ["tabs", "threads"] },
{ id: "suggested-replies", page: "features", anchor: "features", labelKey: "settings.features.suggestedReplies", synonyms: ["suggestions", "autocomplete", "next reply", "tab"] },
+ { id: "promotions", page: "features", anchor: "features", labelKey: "settings.features.promotions", synonyms: ["ads", "offers", "upgrade messages", "sponsor"] },
{ 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/lib/feature-flags.ts b/src/lib/feature-flags.ts
index f86d4e982d..d3de13a057 100644
--- a/src/lib/feature-flags.ts
+++ b/src/lib/feature-flags.ts
@@ -1,7 +1,7 @@
import { t } from "./i18n";
export interface FeatureFlagConfig {
- features?: { skillAuthoring?: boolean; skillReview?: boolean; skillReviewSteps?: number; showToolCalls?: boolean; browser?: boolean; sharedComputers?: boolean; claudeUserMcp?: boolean; claudeUserSkills?: boolean; skillsLibrary?: boolean; shareLearnedSkills?: "off" | "ask" | "auto"; roomMemoryCapture?: boolean; savedSteps?: boolean; savedStepsHere?: boolean; usbPhoneTakeover?: boolean; skillBurger?: boolean; threadTabs?: boolean; roomFeed?: boolean; roomFeedSince?: number; suggestedReplies?: boolean };
+ features?: { skillAuthoring?: boolean; skillReview?: boolean; skillReviewSteps?: number; showToolCalls?: boolean; browser?: boolean; sharedComputers?: boolean; claudeUserMcp?: boolean; claudeUserSkills?: boolean; skillsLibrary?: boolean; shareLearnedSkills?: "off" | "ask" | "auto"; roomMemoryCapture?: boolean; savedSteps?: boolean; savedStepsHere?: boolean; usbPhoneTakeover?: boolean; skillBurger?: boolean; threadTabs?: boolean; roomFeed?: boolean; roomFeedSince?: number; suggestedReplies?: boolean; promotions?: boolean };
browserEngine?: { kind: "engine" | "unavailable"; reason?: string; installable?: boolean; installing?: boolean; installError?: string };
}
@@ -104,6 +104,10 @@ export function skillBurgerEnabled(config: FeatureFlagConfig | null | undefined)
/** 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 promotionsEnabled(config: FeatureFlagConfig | null | undefined): boolean {
+ return config?.features?.promotions !== false;
+}
+
export function suggestedRepliesEnabled(config: FeatureFlagConfig | null | undefined): boolean {
return config?.features?.suggestedReplies === true;
}
diff --git a/src/lib/use-feature.ts b/src/lib/use-feature.ts
index 04acfdfcfd..dfefef14cf 100644
--- a/src/lib/use-feature.ts
+++ b/src/lib/use-feature.ts
@@ -1,14 +1,15 @@
-import { skillBurgerEnabled, suggestedRepliesEnabled, threadTabsEnabled } from "@/lib/feature-flags";
+import { promotionsEnabled, skillBurgerEnabled, suggestedRepliesEnabled, threadTabsEnabled } from "@/lib/feature-flags";
import type { ConfigStatus } from "@/state/store";
import { useStoreSelector } from "@/state/store-select";
/** Switches on Settings → Features, kept in the place's config.json (`features.<name>`), so its server reads them too. */
-export type Feature = "skillBurger" | "threadTabs" | "suggestedReplies";
+export type Feature = "skillBurger" | "threadTabs" | "suggestedReplies" | "promotions";
const FEATURES: Record<Feature, (config: ConfigStatus | null | undefined) => boolean> = {
skillBurger: skillBurgerEnabled,
threadTabs: threadTabsEnabled,
suggestedReplies: suggestedRepliesEnabled,
+ promotions: promotionsEnabled,
};
/** Whether a switch on Settings → Features is on. */
diff --git a/src/locales/de.json b/src/locales/de.json
index aff1b5050f..75cad5406e 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -4481,6 +4481,8 @@
"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.promotions": "Werbenachrichten",
+ "settings.features.promotionsLine": "Upgrade-Angebote und gesponserte Nachrichten anzeigen.",
"settings.features.suggestedReplies": "Antwortvorschläge",
"settings.features.suggestedRepliesLine": "Schlägt nach einer Bot-Antwort vor, was du als Nächstes schreiben könntest. Die KI des Bots schreibt ihn mit ihrem kleinsten Modell, das verbraucht etwas von deinem Abo oder API-Guthaben.",
"composer.placeholder.newThread": "Einen Thread in {name} beginnen",
diff --git a/src/locales/en.json b/src/locales/en.json
index cf38252006..624a0eb692 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -12194,6 +12194,8 @@
"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.promotions": "Promotional messages",
+ "settings.features.promotionsLine": "Show upgrade offers and sponsored messages.",
"settings.features.suggestedReplies": "Suggested replies",
"settings.features.suggestedRepliesLine": "After a bot replies, suggest what you might say next. The bot's own AI writes it with its smallest model, which uses a little of your plan or API credit.",
"composer.placeholder.newThread": "Start a thread in {name}",
diff --git a/src/locales/es.json b/src/locales/es.json
index 919093c334..aeab92bab7 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -6659,6 +6659,8 @@
"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.promotions": "Mensajes promocionales",
+ "settings.features.promotionsLine": "Mostrar ofertas de mejora de plan y mensajes patrocinados.",
"settings.features.suggestedReplies": "Respuestas sugeridas",
"settings.features.suggestedRepliesLine": "Cuando un bot responde, sugiere lo que podrías decir después. La propia IA del bot la escribe con su modelo más pequeño, que consume un poco de tu plan o crédito de API.",
"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 74a9a262b0..d4e0037df6 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -4072,6 +4072,8 @@
"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.promotions": "Messages promotionnels",
+ "settings.features.promotionsLine": "Afficher les offres de changement de forfait et les messages sponsorisés.",
"settings.features.suggestedReplies": "Réponses suggérées",
"settings.features.suggestedRepliesLine": "Après la réponse d'un bot, suggère ce que vous pourriez dire ensuite. L'IA du bot l'écrit avec son plus petit modèle, ce qui utilise un peu de votre forfait ou de votre crédit API.",
"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 8185bb2210..530834e26d 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -3924,6 +3924,8 @@
"settings.features.skillBurgerLine": "किसी बॉट के रन को ऐसे चरणों के रूप में सहेजें जिन्हें आप फिर से चला सकें",
"settings.features.threadTabs": "थ्रेड टैब",
"settings.features.threadTabsLine": "चैट के ऊपर बॉट के थ्रेड टैब के रूप में दिखाएँ",
+ "settings.features.promotions": "प्रचार संदेश",
+ "settings.features.promotionsLine": "अपग्रेड ऑफ़र और प्रायोजित संदेश दिखाएँ।",
"settings.features.suggestedReplies": "सुझाए गए जवाब",
"settings.features.suggestedRepliesLine": "बॉट के जवाब के बाद सुझाता है कि आप आगे क्या कह सकते हैं। बॉट का अपना AI इसे अपने सबसे छोटे मॉडल से लिखता है, जिससे आपके प्लान या API क्रेडिट का थोड़ा हिस्सा खर्च होता है।",
"settings.features.error": "इसे सहेजा नहीं जा सका। अपना कनेक्शन जाँचें और फिर से कोशिश करें।",
diff --git a/src/locales/it.json b/src/locales/it.json
index 077c6d2781..b85c800afc 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -11831,6 +11831,8 @@
"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.promotions": "Messaggi promozionali",
+ "settings.features.promotionsLine": "Mostra le offerte di upgrade e i messaggi sponsorizzati.",
"settings.features.suggestedReplies": "Risposte suggerite",
"settings.features.suggestedRepliesLine": "Dopo la risposta di un bot, suggerisce cosa potresti dire dopo. La scrive l'IA del bot con il suo modello più piccolo, che usa un po' del tuo piano o credito API.",
"settings.features.error": "Impossibile salvare. Controlla la connessione e riprova.",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 31bb8550fc..17e0a2475d 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -8195,6 +8195,8 @@
"settings.features.skillBurgerLine": "ボットの実行を、もう一度実行できる手順として保存します",
"settings.features.threadTabs": "スレッドのタブ",
"settings.features.threadTabsLine": "ボットのスレッドをチャットの上にタブで表示します",
+ "settings.features.promotions": "プロモーションメッセージ",
+ "settings.features.promotionsLine": "アップグレードの案内やスポンサーからのメッセージを表示します。",
"settings.features.suggestedReplies": "返信の提案",
"settings.features.suggestedRepliesLine": "ボットの返信のあとに、次に送りそうな一言を提案します。ボット自身の AI がいちばん小さいモデルで書くため、プランや API クレジットを少し使います。",
"settings.features.error": "保存できませんでした。接続を確認して、もう一度お試しください。",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 1ed535c438..7fa5ff709d 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -7886,6 +7886,8 @@
"settings.features.skillBurgerLine": "봇의 실행을 다시 실행할 수 있는 단계로 저장해요",
"settings.features.threadTabs": "스레드 탭",
"settings.features.threadTabsLine": "봇의 스레드를 채팅 위에 탭으로 보여줘요",
+ "settings.features.promotions": "프로모션 메시지",
+ "settings.features.promotionsLine": "업그레이드 제안과 후원 메시지를 표시합니다.",
"settings.features.suggestedReplies": "답장 제안",
"settings.features.suggestedRepliesLine": "봇이 답한 뒤 다음에 할 말을 제안합니다. 봇의 AI가 가장 작은 모델로 작성하므로 요금제나 API 크레딧을 조금 사용합니다.",
"settings.features.error": "저장하지 못했어요. 연결을 확인하고 다시 시도해 주세요.",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index f1c3092702..d56d509a0c 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -7355,6 +7355,8 @@
"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.promotions": "Wiadomości promocyjne",
+ "settings.features.promotionsLine": "Pokaż oferty zmiany planu na wyższy i wiadomości sponsorowane.",
"settings.features.suggestedReplies": "Proponowane odpowiedzi",
"settings.features.suggestedRepliesLine": "Po odpowiedzi bota proponuje, co możesz napisać dalej. Pisze ją AI bota najmniejszym modelem, co zużywa trochę Twojego planu lub środków API.",
"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 0dd3959498..3d34ba5d57 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -12194,6 +12194,8 @@
"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.promotions": "Mensagens promocionais",
+ "settings.features.promotionsLine": "Mostra ofertas de upgrade e mensagens patrocinadas.",
"settings.features.suggestedReplies": "Respostas sugeridas",
"settings.features.suggestedRepliesLine": "Depois que um bot responde, sugere o que você pode dizer em seguida. A própria IA do bot escreve com o menor modelo dela, o que usa um pouco do seu plano ou crédito de API.",
"composer.placeholder.newThread": "Comece uma conversa em {name}",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 8eb73ffb99..ee01f2acb6 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -7409,6 +7409,8 @@
"settings.features.skillBurgerLine": "Сохраняет работу бота как шаги, которые можно запустить снова",
"settings.features.threadTabs": "Вкладки веток",
"settings.features.threadTabsLine": "Показывает ветки бота вкладками над чатом",
+ "settings.features.promotions": "Рекламные сообщения",
+ "settings.features.promotionsLine": "Показывать предложения перейти на более высокий тариф и спонсорские сообщения.",
"settings.features.suggestedReplies": "Предложенные ответы",
"settings.features.suggestedRepliesLine": "После ответа бота предлагает, что вы можете написать дальше. Его пишет ИИ самого бота на самой маленькой модели, это немного расходует ваш тариф или кредит API.",
"settings.features.error": "Не удалось сохранить. Проверьте подключение и попробуйте ещё раз.",
diff --git a/src/locales/tr.json b/src/locales/tr.json
index a245729ded..71e798b299 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -6154,6 +6154,8 @@
"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.promotions": "Tanıtım mesajları",
+ "settings.features.promotionsLine": "Plan yükseltme tekliflerini ve sponsorlu mesajları göster.",
"settings.features.suggestedReplies": "Önerilen yanıtlar",
"settings.features.suggestedRepliesLine": "Bir bot yanıt verdikten sonra sıradaki mesajınızı önerir. Botun kendi yapay zekâsı bunu en küçük modeliyle yazar; bu, planınızdan veya API kredinizden biraz kullanır.",
"settings.features.error": "Kaydedilemedi. Bağlantını kontrol edip tekrar dene.",
diff --git a/src/locales/uk.json b/src/locales/uk.json
index 61c7bc28e1..a90c964234 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -4341,6 +4341,8 @@
"settings.features.skillBurgerLine": "Зберігає роботу бота як кроки, які можна запустити знову",
"settings.features.threadTabs": "Вкладки гілок",
"settings.features.threadTabsLine": "Показує гілки бота вкладками над чатом",
+ "settings.features.promotions": "Рекламні повідомлення",
+ "settings.features.promotionsLine": "Показувати пропозиції перейти на вищий тариф і спонсорські повідомлення.",
"settings.features.suggestedReplies": "Запропоновані відповіді",
"settings.features.suggestedRepliesLine": "Після відповіді бота пропонує, що ви можете написати далі. Її пише ШІ самого бота найменшою моделлю, це трохи витрачає ваш тариф або кредит API.",
"settings.features.error": "Не вдалося зберегти. Перевірте з'єднання і спробуйте ще раз.",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index 2006c759ba..244c431f66 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -6154,6 +6154,8 @@
"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.promotions": "Thông báo quảng bá",
+ "settings.features.promotionsLine": "Hiển thị ưu đãi nâng cấp và thông báo được tài trợ.",
"settings.features.suggestedReplies": "Câu trả lời gợi ý",
"settings.features.suggestedRepliesLine": "Sau khi bot trả lời, gợi ý điều bạn có thể nói tiếp. AI của chính bot viết nó bằng mô hình nhỏ nhất, dùng một ít gói hoặc tín dụng API của bạn.",
"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 535b1bec67..6e4dc1d9d3 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -10497,6 +10497,8 @@
"settings.features.skillBurgerLine": "把機器人的一次執行儲存為可再次執行的步驟",
"settings.features.threadTabs": "對話分頁",
"settings.features.threadTabsLine": "在聊天上方以分頁顯示機器人的對話",
+ "settings.features.promotions": "促銷訊息",
+ "settings.features.promotionsLine": "顯示升級優惠與贊助訊息。",
"settings.features.suggestedReplies": "建議回覆",
"settings.features.suggestedRepliesLine": "機器人回覆後,建議你接下來可能要說的話。由機器人自己的 AI 用其最小的模型撰寫,會用掉少量方案或 API 額度。",
"settings.features.error": "無法儲存。請檢查連線後再試一次。",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 2e355b71dd..dfe94597ff 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -12111,6 +12111,8 @@
"settings.features.skillBurgerLine": "把机器人的一次运行保存为可再次运行的步骤",
"settings.features.threadTabs": "对话标签页",
"settings.features.threadTabsLine": "在聊天上方以标签页显示机器人的对话",
+ "settings.features.promotions": "促销消息",
+ "settings.features.promotionsLine": "显示升级优惠和赞助消息。",
"settings.features.suggestedReplies": "建议回复",
"settings.features.suggestedRepliesLine": "机器人回复后,建议你接下来可能要说的话。由机器人自己的 AI 用其最小的模型生成,会消耗少量套餐或 API 额度。",
"composer.placeholder.newThread": "在 {name} 中开始一个对话",
diff --git a/src/state/config-status.ts b/src/state/config-status.ts
index d2375d98f5..6c8521a997 100644
--- a/src/state/config-status.ts
+++ b/src/state/config-status.ts
@@ -169,7 +169,7 @@ export interface ConfigStatus {
/** What a paired phone calls this computer; "" uses the default. */
computerName?: string;
/** Opt-in flags. Absent means off. */
- features?: { skillAuthoring: boolean; skillReview?: boolean; skillReviewSteps?: number; showToolCalls?: boolean; browser?: boolean; sharedComputers?: boolean; claudeUserMcp?: boolean; skillsLibrary?: boolean; shareLearnedSkills?: "off" | "ask" | "auto"; roomMemoryCapture?: boolean; savedSteps?: boolean; savedStepsHere?: boolean; usbPhoneTakeover?: boolean; skillBurger?: boolean; threadTabs?: boolean; roomFeed?: boolean; roomFeedSince?: number; suggestedReplies?: boolean };
+ features?: { skillAuthoring: boolean; skillReview?: boolean; skillReviewSteps?: number; showToolCalls?: boolean; browser?: boolean; sharedComputers?: boolean; claudeUserMcp?: boolean; skillsLibrary?: boolean; shareLearnedSkills?: "off" | "ask" | "auto"; roomMemoryCapture?: boolean; savedSteps?: boolean; savedStepsHere?: boolean; usbPhoneTakeover?: boolean; skillBurger?: boolean; threadTabs?: boolean; roomFeed?: boolean; roomFeedSince?: number; suggestedReplies?: boolean; promotions?: boolean };
/** First-run progress: whether the welcome tour was finished and which
* one-time hints were dismissed. Server-owned so it follows the workspace. */
onboarding?: OnboardingStatus;