Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Bot settings: per-bot 'Run code in the apps' sandbox' switch (off by default)
AdityaUmale760dcdb84802
diff --git a/server/connector-advertisement.test.ts b/server/connector-advertisement.test.tsindex c4a776bfad..80e6613429 100644--- a/server/connector-advertisement.test.ts+++ b/server/connector-advertisement.test.ts@@ -1,5 +1,6 @@import { describe, expect, it } from "vitest";import {+ advertisedGrants,CONNECTOR_ALLOWED_TOOLS_MAX_BYTES,connectorToolAdvertised,filterToolsListFrame,@@ -136,3 +137,19 @@ describe("tools/list frame filtering", () => {expect(filterToolsListFrame(nameless, grants({ gmail: { tools: "*" } }))).toEqual(nameless);});});++describe("app sandbox switch", () => {+ it("offers the sandbox tools only to a bot with app grants whose switch is on", () => {+ const gmail = grants({ gmail: { tools: "*" } });+ expect(advertisedGrants({ connectorTools: gmail })).toBe(gmail);+ expect(advertisedGrants({ connectorTools: gmail, appSandbox: false })).toBe(gmail);+ expect(advertisedGrants({ appSandbox: true })).toBeUndefined();+ const on = advertisedGrants({ connectorTools: gmail, appSandbox: true })!;+ expect(gmail).toEqual({ gmail: { tools: "*" } });+ for (const tool of ["COMPOSIO_REMOTE_WORKBENCH", "COMPOSIO_REMOTE_BASH_TOOL", "GMAIL_SEND_EMAIL"]) {+ expect(connectorToolAdvertised(tool, on)).toBe(true);+ expect(connectorToolAdvertised(tool, gmail)).toBe(tool === "GMAIL_SEND_EMAIL");+ }+ expect(connectorToolAdvertised("SLACK_POST_MESSAGE", on)).toBe(false);+ });+});diff --git a/server/connector-advertisement.ts b/server/connector-advertisement.tsindex 789ac32646..c14d699181 100644--- a/server/connector-advertisement.ts+++ b/server/connector-advertisement.ts@@ -1,7 +1,7 @@// Trims the connector bridge's tools/list to the bot's grants; call-time enforcement stays the authority. Whenever// filtering cannot run (no env var, malformed, oversized) the bridge relays the list untouched.import { CONNECTOR_SLUG_PATTERN, CONNECTOR_TOOL_NAME_PATTERN, type ConnectorToolGrant } from "../shared/wire.ts";-import { serviceSlugFor, serviceSlugForCandidates } from "./connector-verdict.ts";+import { APP_SANDBOX_SERVICE, APP_SANDBOX_TOOLS, serviceSlugFor, serviceSlugForCandidates } from "./connector-verdict.ts";export const CONNECTOR_ALLOWED_TOOLS_ENV = "OMB_CONNECTOR_ALLOWED_TOOLS";@@ -23,6 +23,12 @@ export const CONNECTOR_META_TOOLS: readonly string[] = ["COMPOSIO_WAIT_FOR_CONNECTIONS",];+/** What a bot's tools/list offers: its grants, and the sandbox's code tools while its sandbox switch is on. */+export function advertisedGrants(bot: { connectorTools?: Record<string, ConnectorToolGrant>; appSandbox?: boolean }): Record<string, ConnectorToolGrant> | undefined {+ if (bot.connectorTools === undefined || bot.appSandbox !== true) return bot.connectorTools;+ return { ...bot.connectorTools, [APP_SANDBOX_SERVICE]: { tools: [...APP_SANDBOX_TOOLS] } };+}+const CONNECTION_TOOL_SUFFIXES = ["_MANAGE_CONNECTIONS", "_WAIT_FOR_CONNECTIONS"];export function serializeConnectorAllowedTools(diff --git a/server/connector-verdict.test.ts b/server/connector-verdict.test.tsindex 6a07b6b6b8..fe0058cbad 100644--- a/server/connector-verdict.test.ts+++ b/server/connector-verdict.test.ts@@ -181,6 +181,15 @@ describe("refusal text", () => {expect(text).not.toContain("GMAIL");});+ it("points a refused sandbox call at the bot's sandbox switch", () => {+ const text = connectorRefusalText(evaluateConnectorTools(["COMPOSIO_REMOTE_WORKBENCH"], { gmail: { tools: "*" } }).denials);+ expect(text).toContain("Run code in the apps' sandbox");+ expect(connectorRefusalText([+ { tool: "COMPOSIO_REMOTE_WORKBENCH", service: "composio", onGrantedService: false },+ { tool: "NOTION_CREATE_PAGE", service: "notion", onGrantedService: false },+ ])).not.toContain("sandbox");+ });+it("names every refused tool in a batch", () => {const text = connectorRefusalText([{ tool: "SLACK_CREATE_CHANNEL", service: "slack", onGrantedService: true },diff --git a/server/connector-verdict.ts b/server/connector-verdict.tsindex 0266a80e73..4d6fd4d945 100644--- a/server/connector-verdict.ts+++ b/server/connector-verdict.ts@@ -4,6 +4,18 @@import { CONNECTOR_TOOL_NAME_PATTERN, type ConnectorToolGrant } from "../shared/wire.ts";import { EMAIL_SLUG } from "../shared/email.ts";+/** The connected apps' sandbox: Composio's code tools. Code run there can reach any connected app, so a bot with per-app+ * grants gets them only when its person turns on "Run code in the apps' sandbox"; each run still asks below Full access. */+export const APP_SANDBOX_TOOLS: readonly string[] = ["COMPOSIO_REMOTE_WORKBENCH", "COMPOSIO_REMOTE_BASH_TOOL"];++/** The service Composio's own tools are named for (COMPOSIO_REMOTE_WORKBENCH → composio). */+export const APP_SANDBOX_SERVICE = "composio";++/** A bot with per-app grants asked to run code in the apps' sandbox while its switch is off. */+export const APP_SANDBOX_REFUSAL = "This call was not performed. A bot runs code in the connected apps' sandbox only by calling "+ + "COMPOSIO_REMOTE_WORKBENCH or COMPOSIO_REMOTE_BASH_TOOL directly (never inside COMPOSIO_MULTI_EXECUTE_TOOL), and only once the person "+ + "turns on \"Run code in the apps' sandbox\" in its settings, under Access → Connected apps. If that tool is not offered to you, ask them.";+/** The only Composio meta-tool whose arguments name target tools. */export const COMPOSIO_MULTI_EXECUTE_TOOL = "COMPOSIO_MULTI_EXECUTE_TOOL";@@ -128,6 +140,7 @@ export function evaluateConnectorTools(/** Never lists what the bot could have called instead: enumerating adjacent grants teaches the model to probe. */export function connectorRefusalText(denials: ConnectorDenial[]): string {+ if (denials.every((denial) => APP_SANDBOX_TOOLS.includes(denial.tool))) return APP_SANDBOX_REFUSAL;const named = denials.map((denial) => '"' + denial.tool + '"').join(", ");const one = denials.length === 1;return [diff --git a/server/host/team-connections-host.ts b/server/host/team-connections-host.tsindex 925aa03397..f26251d529 100644--- a/server/host/team-connections-host.ts+++ b/server/host/team-connections-host.ts@@ -14,6 +14,7 @@ import type { CloudTeam, TeamRole } from "../cloud-team.ts";import type * as Composio from "../composio.ts";import type { AppConfig } from "../config.ts";import type { McpServerSpec } from "../contracts.ts";+import { advertisedGrants } from "../connector-advertisement.ts";import { serviceSlugFor } from "../connector-verdict.ts";import { type McpOAuthManager, type McpSignInPhase, withMcpSignIn, withoutPendingSignIn } from "../mcp-oauth.ts";import { isRemoteMcpServer, parseStoredMcpServer } from "../mcp-registry.ts";@@ -22,7 +23,7 @@ import { appLabel, ConnectionScopes, PeopleConnections, personAppOf, SCOPES_FILEimport { APP_TOOL_NAMES_ENV, APP_TOOLS_ENV, appToolsFor } from "../connector-app-tools.ts";import type { ConnectorScopes } from "../../shared/connector-scopes.ts";-type Bot = { id: string; name: string; connectorTools?: Parameters<typeof Composio.mcpIntegration>[1]["connectorTools"]; connectorScopes?: ConnectorScopes };+type Bot = { id: string; name: string; connectorTools?: Parameters<typeof Composio.mcpIntegration>[1]["connectorTools"]; connectorScopes?: ConnectorScopes; appSandbox?: boolean };type Integration = { command: string; args: string[]; env: Record<string, string> };type McpBot = { id: string; name: string; mcpServers?: string[] };@@ -220,7 +221,7 @@ export function createTeamConnectionsHost(deps: TeamConnectionsHostDeps) {async appsIntegrations(bot: Bot, threadId: string, generation: string, names: "dotted" | "plain" = "plain"): Promise<{ composio?: Integration; composioOwn?: Integration }> {const cfg = deps.cfg();const out: { composio?: Integration; composioOwn?: Integration } = {};- const base = { harnessUrl: deps.harnessUrl, botId: bot.id, threadId, connectorTools: bot.connectorTools };+ const base = { harnessUrl: deps.harnessUrl, botId: bot.id, threadId, connectorTools: advertisedGrants(bot) };const shared = await deps.composio.mcpIntegration(cfg, { ...base, commsToken: deps.mint({ botId: bot.id, threadId, generation }) });if (shared) out.composio = await withAppTools(shared, bot, names);const person = personApps().length ? turnPerson(threadId, generation) : null;diff --git a/server/index.ts b/server/index.tsindex 5aeadecdab..1d532b0666 100644--- a/server/index.ts+++ b/server/index.ts@@ -116,7 +116,7 @@ import { boatDeletionSnapshot } from "./boat-delete-journal.ts";import { liveDecisionRefusal } from "../shared/live-approval.ts"; import type { PersonWaitKind } from "../shared/person-wait.ts";import { vpsLeftBehindNotice } from "./cloud-backend.ts";import * as composio from "./composio.ts";-import { connectorCallFromFrame, connectorRefusalText, connectorScopeRefusalText, connectorUnrecognizedText, evaluateConnectorTools } from "./connector-verdict.ts";+import { APP_SANDBOX_REFUSAL, APP_SANDBOX_TOOLS, connectorCallFromFrame, connectorRefusalText, connectorScopeRefusalText, connectorUnrecognizedText, evaluateConnectorTools } from "./connector-verdict.ts";import { connectorCardDescription, connectorCardText, signInCardText } from "./connector-card-text.ts";import { BOT_LIMIT_CODE, BOT_PAUSED_CODE } from "../shared/bot-limit.ts"; import { createBotLimit } from "./host/starter-bot-limit.ts"; import { createStarterAwake } from "./host/starter-awake.ts"; import { createStarterCaps } from "./host/starter-caps.ts"; import { createStarterAwakeRoutes } from "./routes/starter-awake.ts"; import { chiefOfStaffSystemPrompt } from "./chief-of-staff.ts"; import { chiefLevel, readTeamRolesWith } from "./chief-level.ts"; import { defaultBotRefusal, ensureDefaultBot } from "./default-bot.ts";import { buildRecall, recallRooms, recallThreadIds, withRecalled } from "./recall.ts";@@ -14516,7 +14516,10 @@ const handleRequest = async (req: IncomingMessage, res: ServerResponse) => {: [];if (proactive.fence.refusesConnectorCall(currentSender, internalCapability.threadId, body)) return refuseOutbound(READ_AND_DRAFT_REFUSAL);const scopeRefusal = managedPolicy.appsCallRefusal(connectorCalls, serviceSlugs) ?? await teamConnections.callRefusal(internalCapability, connectorCalls); if (scopeRefusal) return refuseOutbound(scopeRefusal);- const access = connectorAccessDecision(currentSender.connectorScopes, connectorCalls, serviceSlugs);+ const sandboxCall = rpc?.method === "tools/call" && typeof rpcParams?.name === "string" && APP_SANDBOX_TOOLS.includes(rpcParams.name);+ const sandboxOn = (bot: Pick<BotRecord, "appSandbox">) => sandboxCall && bot.appSandbox === true; // the apps' sandbox runs code only while the bot's switch is on+ if (sandboxCall && currentSender.connectorTools !== undefined && !sandboxOn(currentSender)) return refuseOutbound(APP_SANDBOX_REFUSAL);+ const access = connectorAccessDecision(currentSender.connectorScopes, sandboxOn(currentSender) ? [] : connectorCalls, serviceSlugs);if (!access.ok) {const described = describeTool(access.slug);const appName = described.app ?? access.toolkit;@@ -14527,7 +14530,7 @@ const handleRequest = async (req: IncomingMessage, res: ServerResponse) => {return refuseOutbound(connectorScopeRefusalText(call, access.reason, currentSender.name, appName, described.label));}const opaque = connectorCalls.some(call => call.slug === "COMPOSIO_PROXY_EXECUTE");- if (opaque && currentSender.connectorTools !== undefined) return refuseOutbound("OpenMausBot cannot verify this code against this bot's tool grants. Use a direct app tool.");+ if (opaque && currentSender.connectorTools !== undefined && !sandboxOn(currentSender)) return refuseOutbound("OpenMausBot cannot verify this code against this bot's tool grants. Use a direct app tool.");// A room turn can run at a Chief's delegated level, which only the room handoff carries.const sendsFreely = () => roomTurnLevels.forRequest(internalCapability.threadId, internalCapability.botId,() => sourceApprovalMode(internalCapability.botId, internalCapability.threadId)) === "full";@@ -14557,8 +14560,8 @@ const handleRequest = async (req: IncomingMessage, res: ServerResponse) => {requireActiveInternalCapability();const fresh = store.bot(internalCapability.botId);if (!fresh || fresh.composio === false || !composio.configured(cfg) || managedPolicy.appsCallRefusal(connectorCalls, serviceSlugs)) refuseDispatch("Connected apps were disabled while this call waited.");- const freshAccess = connectorAccessDecision(fresh.connectorScopes, connectorCalls, serviceSlugs);- if (!freshAccess.ok || (opaque && fresh.connectorTools !== undefined) ||+ const freshAccess = connectorAccessDecision(fresh.connectorScopes, sandboxOn(fresh) ? [] : connectorCalls, serviceSlugs);+ if (!freshAccess.ok || (opaque && fresh.connectorTools !== undefined && !sandboxOn(fresh)) ||(call.kind === "tools" && !evaluateConnectorTools(call.names, fresh.connectorTools, serviceSlugs).allowed) ||(call.kind === "unrecognized" && fresh.connectorTools !== undefined)) {refuseDispatch("This bot's connected-app permissions changed. The call was not run.");diff --git a/server/routes/bot-patch.ts b/server/routes/bot-patch.tsindex 439d7df0d7..6974972991 100644--- a/server/routes/bot-patch.ts+++ b/server/routes/bot-patch.ts@@ -280,6 +280,11 @@ export function createBotPatchRoutes(deps: BotPatchRouteDeps): RouteHandler {if (body.voiceNoteEveryReply !== null && typeof body.voiceNoteEveryReply !== "boolean") return json(res, 400, { error: "voiceNoteEveryReply must be true, false or null" });patch.voiceNoteEveryReply = body.voiceNoteEveryReply ?? undefined;}+ // Lets the bot run code that reaches every connected app: an admin decision, kept off a member editor's list.+ if (body.appSandbox !== undefined) {+ if (typeof body.appSandbox !== "boolean") return json(res, 400, { error: "appSandbox must be true or false" });+ patch.appSandbox = body.appSandbox;+ }// Spends the Cloud plan's monthly X research calls: an admin decision too.if (body.xResearch !== undefined) {if (typeof body.xResearch !== "boolean") return json(res, 400, { error: "xResearch must be true or false" });@@ -626,6 +631,7 @@ export function createBotPatchRoutes(deps: BotPatchRouteDeps): RouteHandler {}}if (body.approvePeerComms === false && existingBot?.approvePeerComms === true) loosened.push("approvePeerComms");+ if (body.appSandbox === true && existingBot?.appSandbox !== true) loosened.push("appSandbox");if (section !== undefined && sectionKey(existingBot?.section) !== sectionKey(section)) loosened.push("section");if (Array.isArray(patch.alwaysAllow) && patch.alwaysAllow.some((key) => !(existingBot?.alwaysAllow ?? []).includes(key))) {loosened.push("alwaysAllow");diff --git a/server/trust-controls.e2e.test.ts b/server/trust-controls.e2e.test.tsindex 66310e76b1..9c18a227aa 100644--- a/server/trust-controls.e2e.test.ts+++ b/server/trust-controls.e2e.test.ts@@ -519,6 +519,30 @@ it("still asks before arbitrary workbench code under Send without asking", asyncexpect(relayed).toHaveLength(before);});+it("runs sandbox code for a bot with app grants only after its sandbox switch is on, never inside a batch, and still asks", async () => {+ const b = await bot("Sandbox switch");+ expect((await api("PATCH", `/api/bots/${b.id}`, { connectorTools: { gmail: { tools: "*" } } })).status).toBe(200);+ const token = await mint(b.id, b.threadId);+ const before = relayed.length;+ const code = { code_to_execute: "print(1)" };+ const wrapped = () => relay(token, "COMPOSIO_MULTI_EXECUTE_TOOL", { tools: [{ tool_slug: "COMPOSIO_REMOTE_WORKBENCH", arguments: code }] });+ const off = await relay(token, "COMPOSIO_REMOTE_WORKBENCH", code);+ expect(off.body.result.isError).toBe(true);+ expect(JSON.stringify(off.body.result)).toContain("Run code in the apps' sandbox");+ expect((await wrapped()).body.result.isError).toBe(true);+ expect((await api("PATCH", `/api/bots/${b.id}`, { appSandbox: "yes" })).status).toBe(400);+ expect((await api("PATCH", `/api/bots/${b.id}`, { appSandbox: true }, member)).status).toBe(403);+ expect((await api("PATCH", `/api/bots/${b.id}`, { appSandbox: true })).status).toBe(200);+ const held = relay(token, "COMPOSIO_REMOTE_WORKBENCH", code);+ const card = await pending(b.threadId);+ expect(relayed).toHaveLength(before);+ await api("POST", `/api/threads/${b.threadId}/respond`, { requestId: card.card.requestId, behavior: "allow" });+ expect((await held).body.result.isError).not.toBe(true);+ expect(relayed).toHaveLength(before + 1);+ expect((await wrapped()).body.result.isError).toBe(true);+ expect(relayed).toHaveLength(before + 1);+});+it("tells a scoped bot its multi-execute arguments were unreadable, not that it lacks access", async () => {const b = await bot("Misshapen batch");await api("PATCH", `/api/bots/${b.id}`, { connectorScopes: { apps: { gmail: "write" } } });diff --git a/shared/wire.ts b/shared/wire.tsindex 1a60bd191b..3b91166073 100644--- a/shared/wire.ts+++ b/shared/wire.ts@@ -346,6 +346,9 @@ export interface WireBot extends DefaultBotFields, BotAccessFields {* actions), which spend the workspace's treg balance.* Absent/false = off: the person turns it on per bot. */xResearch?: boolean;+ /** Whether this bot may run code in the connected apps' sandbox (Composio's workbench and bash tools), for jobs such as+ * uploading a file to Google Drive. Absent/false = off; a bot with no per-app tool grants already has every tool. */+ appSandbox?: boolean;/** Whether this bot uses native memory. Absent/true = enabled. */memoryEnabled?: boolean;/** Queue direct-chat messages behind outstanding delegated work. */diff --git a/src/components/bot-settings/AccessSection.test.ts b/src/components/bot-settings/AccessSection.test.tsindex f8cd3b3fa4..746c9aed00 100644--- a/src/components/bot-settings/AccessSection.test.ts+++ b/src/components/bot-settings/AccessSection.test.ts@@ -421,6 +421,18 @@ describe("AccessSection per-app scopes", () => {const html = render(makeBot({ connectorScopes: { apps: { gmail: "write" } } }));expect(html).not.toContain("Limit this bot to specific apps");});++ it("offers the sandbox switch, off by default, only to a bot with its own app grants", () => {+ fixture.apps = { phase: "ready", connectedSlugs: ["gmail"], apps: [app("gmail", "Gmail")] };+ const SANDBOX = /aria-label="Run code in the apps' sandbox"[^>]*aria-checked="(true|false)"|aria-checked="(true|false)"[^>]*aria-label="Run code in the apps' sandbox"/;+ const off = render(makeBot({ connectorTools: { gmail: { tools: "*" } } }));+ expect(off.match(SANDBOX)?.slice(1).find(Boolean)).toBe("false");+ expect(off).toContain("Off: this bot uses only the app tools above.");+ const on = render(makeBot({ connectorTools: { gmail: { tools: "*" } }, appSandbox: true }));+ expect(on.match(SANDBOX)?.slice(1).find(Boolean)).toBe("true");+ expect(on).toContain("below Full access it asks you first each time.");+ expect(render(makeBot())).not.toContain("data-app-sandbox");+ });});describe("AccessSection parts", () => {diff --git a/src/components/bot-settings/AccessSection.tsx b/src/components/bot-settings/AccessSection.tsxindex d42382cce4..607ae8c163 100644--- a/src/components/bot-settings/AccessSection.tsx+++ b/src/components/bot-settings/AccessSection.tsx@@ -506,6 +506,19 @@ function ResearchCard({ bot, patch }: { bot: Bot; patch: (patch: { xResearch: bo);}+/** Lets a bot with per-app grants run code in the connected apps' sandbox, which some app jobs need (a Google Drive upload). */+function AppSandboxRow({ on, onChange }: { on: boolean; onChange: (on: boolean) => void }) {+ return (+ <div className="mt-3 flex items-center justify-between gap-4 border-t border-hairline/40 pt-3">+ <div>+ <div className="text-[14px] font-medium text-ink">{t("botAccess.apps.sandbox.title")}</div>+ <div className="mt-0.5 text-[13px] text-ink-secondary">{t(on ? "botAccess.apps.sandbox.on" : "botAccess.apps.sandbox.off")}</div>+ </div>+ <Switch checked={on} aria-label={t("botAccess.apps.sandbox.title")} onClick={() => onChange(!on)} data-app-sandbox="" />+ </div>+ );+}+function RecordStepsRow({ on, browserOn, myChrome, onChange }: { on: boolean; browserOn: boolean; myChrome: boolean; onChange: (on: boolean) => void }) {return (<div className="mt-3 flex items-center justify-between gap-4 border-t border-hairline/40 pt-3">@@ -767,6 +780,7 @@ export function AccessSection({<>{!draft && <ConnectorScopesControl connectedSlugs={connectedSlugs} labels={appLabels} scopes={bot.connectorScopes} onChange={(connectorScopes) => patch({ connectorScopes })} />}<ConnectorToolsGrants bot={bot} patch={patch} slugs={connectedSlugs} />+ {bot.connectorTools !== undefined && <AppSandboxRow on={bot.appSandbox === true} onChange={(appSandbox) => patch({ appSandbox })} />}</>)}{connectedAppsEnabled && connectedAppsConfigured && (diff --git a/src/components/bot-settings/useBotSettingsDerived.ts b/src/components/bot-settings/useBotSettingsDerived.tsindex 2a5f7bd50e..4e909e2758 100644--- a/src/components/bot-settings/useBotSettingsDerived.ts+++ b/src/components/bot-settings/useBotSettingsDerived.ts@@ -34,6 +34,7 @@ export type BotPatch = Partial<| "replyStyle"| "memoryEnabled"| "xResearch"+ | "appSandbox"| "voice"| "chiefOfStaff"| "managedSections"diff --git a/src/locales/en.json b/src/locales/en.jsonindex df0e4cfd02..8b28fb8d1a 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -6806,6 +6806,9 @@"botAccess.apps.allow": "Allow this bot to use connected apps","botAccess.apps.connectFirst": "Connect apps in App Settings first","botAccess.apps.modelUnsupportedShort": "This model cannot use connected apps",+ "botAccess.apps.sandbox.title": "Run code in the apps' sandbox",+ "botAccess.apps.sandbox.on": "This bot can run code with your connected apps, for jobs like uploading a file to Google Drive. That code can reach any connected app; below Full access it asks you first each time.",+ "botAccess.apps.sandbox.off": "Off: this bot uses only the app tools above. Turn on for jobs that need code, like uploading a file to Google Drive.","botAccess.browser.title": "Browser","botAccess.browser.windowsUnavailable": "Not available on this Windows machine yet: install the browser with `openmausbot browser install`.","botAccess.browser.disabledInSettings": "The built-in browser is switched off under App Settings → Devices.",diff --git a/src/state/bot-patch-queue.ts b/src/state/bot-patch-queue.tsindex 73c3845661..e141706bc0 100644--- a/src/state/bot-patch-queue.ts+++ b/src/state/bot-patch-queue.ts@@ -28,6 +28,7 @@ export type BotUpdatePatch = Partial<| "voiceNotes"| "voiceNoteEveryReply"| "xResearch"+ | "appSandbox"| "pinned"| "hidden"| "sidebarHidden"diff --git a/src/state/store.tsx b/src/state/store.tsxindex d40cff1aa4..3d0a3c08ab 100644--- a/src/state/store.tsx+++ b/src/state/store.tsx@@ -309,7 +309,7 @@ export interface Bot extends DefaultBotFields, Pick<WireBot, "mascotFaceColor" |speakReplies?: boolean;replyStyle?: import("../../shared/wire").WireBot["replyStyle"];voice?: string;- voiceNotes?: boolean; xResearch?: boolean; voiceNoteEveryReply?: boolean | null; // null or absent: follows the Voice setting+ voiceNotes?: boolean; xResearch?: boolean; appSandbox?: boolean; voiceNoteEveryReply?: boolean | null; // null or absent: follows the Voice settingmemoryEnabled?: boolean;pinned?: boolean;hidden?: boolean;