Skip to content

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

i18n(pt-br): wire upstream strings and apply the fourth review pass

KesleyDEVd6e7d1bc588b
diff --git a/electron/accounts-main.mjs b/electron/accounts-main.mjs
index a3816fb1db..6a61318162 100644
--- a/electron/accounts-main.mjs
+++ b/electron/accounts-main.mjs
@@ -2,6 +2,7 @@
// rail's. A Cloud's or a server's page never reads it, because it would learn the addresses of the person's other accounts;
// it may only ask main, from the person's click, to open the sheet on the rail's page.
import { accountPlaces, clearPlaceStorage, withoutPlaces } from "./account-places.mjs";
+import nativeText from "./native-text.cjs";
/** The sign-in as the You menu shows it: never a token, and no account while none is signed in. */
export function accountsView(state) {
@@ -45,7 +46,7 @@ export function createAccountLeave({ saved, persist, session, mine, leaveWindow,
* the rail. `leaving`: the home window lets go of what it was doing for this account; `leave`: createAccountLeave's;
* `show`: the window goes where it belongs now; `tell`: this app's pages read the list again.
*/
-export function installAccounts({ ipcMain, ownPage, placePage, account, client, holdSheet, tellSheet, leaving, leave, show, tell }) {
+export function installAccounts({ ipcMain, ownPage, placePage, account, client, holdSheet, tellSheet, leaving, leave, show, tell, t = nativeText.englishText.t }) {
let sheetPending = false, queue = Promise.resolve();
const view = () => accountsView(account()?.state());
const serial = (work) => { const run = queue.then(work, work); queue = run.catch(() => {}); return run; };
@@ -64,7 +65,7 @@ export function installAccounts({ ipcMain, ownPage, placePage, account, client,
});
own("accounts:list", view);
own("accounts:sign-out", async (id) => {
- if (view().active?.id !== id) throw new Error("That account isn't signed in here any more.");
+ if (view().active?.id !== id) throw new Error(t("native.accounts.notSignedIn"));
await signOutActive();
return view();
});
diff --git a/electron/ask-prompt.mjs b/electron/ask-prompt.mjs
index e2ce70c4a4..a090e8a239 100644
--- a/electron/ask-prompt.mjs
+++ b/electron/ask-prompt.mjs
@@ -2,12 +2,13 @@
// for something else never answers it, and never while the person is looking at that Cloud in this app, where the card is.
import { askPromptWords } from "./screen-words.mjs";
import { deviceWord } from "./lending-indicator.mjs";
+import nativeText from "./native-text.cjs";
/** Waits at most this long for a quiet moment. */
const QUIET_WAIT_MS = 15_000;
/** `window()`: this app's main window, or null. `idleSeconds()`: seconds since the last touch, null when unknown. */
-export function createAskPrompt({ dialog, window, idleSeconds = () => null, wait = ms => new Promise(resolve => setTimeout(resolve, ms)), platform = process.platform }) {
+export function createAskPrompt({ dialog, window, idleSeconds = () => null, wait = ms => new Promise(resolve => setTimeout(resolve, ms)), platform = process.platform, t = nativeText.englishText.t }) {
const open = () => { const win = window(); return win && !win.isDestroyed() ? win : null; };
const looking = env => {
const win = open();
@@ -22,7 +23,7 @@ export function createAskPrompt({ dialog, window, idleSeconds = () => null, wait
await wait(500);
}
if (signal.aborted || looking(env)) return null;
- const words = askPromptWords(ask, { cloud: env.name, device: deviceWord(platform) });
+ const words = askPromptWords(ask, { cloud: env.name, device: deviceWord(platform), t });
const options = { type: "question", message: words.message, detail: words.detail, buttons: words.buttons, defaultId: 0, cancelId: 1, noLink: true, signal };
// Electron 43 runs a message box without a window synchronously on macOS, where `signal` cannot close it.
const parent = platform === "darwin" ? open() : null;
diff --git a/electron/clean-workspace.d.mts b/electron/clean-workspace.d.mts
index 1c20bc4810..9d703ce190 100644
--- a/electron/clean-workspace.d.mts
+++ b/electron/clean-workspace.d.mts
@@ -14,6 +14,7 @@ export function createCleanWorkspace(deps: {
running(): string | null;
swap(dir: string): Promise<{ ok: boolean }>;
allowed?(): boolean;
+ t?(key: string, params?: Record<string, string | number>): string;
changed?(): void;
log?(line: string): void;
}): CleanWorkspace;
diff --git a/electron/clean-workspace.mjs b/electron/clean-workspace.mjs
index c91ef46ba7..6916a333f2 100644
--- a/electron/clean-workspace.mjs
+++ b/electron/clean-workspace.mjs
@@ -15,6 +15,7 @@ import nodeFs from "node:fs";
import path from "node:path";
import { WELCOME_VERSION } from "./onboarding-record.mjs";
+import nativeText from "./native-text.cjs";
/** This first conversation stays quiet: no corner notices until a reply, no spotlights (src/lib/onboarding.ts MET_CHIEF_HINT). */
const QUIET_HINT = "met-chief-v1";
@@ -43,7 +44,7 @@ export function cleanWorkspaceConfig(language = null, now = new Date()) {
* `swap`: starts the server on that folder instead, and moves the window to its page. `changed`: the clean workspace started or
* ended, so whatever depends on it (lending) looks again.
*/
-export function createCleanWorkspace({ dataDir, running, swap, allowed = () => true, changed = () => {}, log = () => {}, fs = nodeFs }) {
+export function createCleanWorkspace({ dataDir, running, swap, allowed = () => true, changed = () => {}, log = () => {}, fs = nodeFs, t = nativeText.englishText.t }) {
const folder = () => cleanWorkspaceDir(dataDir());
const active = () => running() === folder();
let held = 0, swapping = false;
@@ -101,7 +102,7 @@ export function createCleanWorkspace({ dataDir, running, swap, allowed = () => t
async holding(work) {
held++;
try {
- if (!(await leave())) throw new Error("OpenMausBot on this computer could not go back to its own copy yet.");
+ if (!(await leave())) throw new Error(t("native.home.ownCopyNotReady"));
return await work();
} finally { held--; }
},
@@ -117,7 +118,7 @@ export function createCleanWorkspace({ dataDir, running, swap, allowed = () => t
return Response.json(id ? { environmentId: id } : {});
}
}
- throw Object.assign(new Error("This computer's own copy isn't running."), { code: CLEAN });
+ throw Object.assign(new Error(t("native.home.ownCopyNotRunning")), { code: CLEAN });
};
},
};
diff --git a/electron/cloud-connections.d.mts b/electron/cloud-connections.d.mts
index ec40550869..95cb2d35eb 100644
--- a/electron/cloud-connections.d.mts
+++ b/electron/cloud-connections.d.mts
@@ -53,11 +53,12 @@ export class ConnectionMoveError extends Error {
export function parseConnections(value: unknown): ConnectionsRead | null;
export function collectConnections(local: ConnectionsLocal): Promise<CollectedConnections>;
-export function adoptComposioId(target: ConnectionsTarget, options: { local: ConnectionsLocal; here: Connection; there: Connection | null }):
+export function adoptComposioId(target: ConnectionsTarget, options: { local: ConnectionsLocal; here: Connection; there: Connection | null; managedApps?: boolean; t?: (key: string, params?: Record<string, string | number>) => string }):
Promise<{ shared: true } | { kept: true; missing: string[] }>;
export function sendConnections(collected: CollectedConnections, target: ConnectionsTarget, options: {
local: ConnectionsLocal;
release?: boolean;
+ t?(key: string, params?: Record<string, string | number>): string;
signIns?: boolean;
waitMs?: number;
onProgress?: (progress: { done: number; total: number; label: string }) => void;
diff --git a/electron/cloud-connections.mjs b/electron/cloud-connections.mjs
index fabf986665..aca84035c8 100644
--- a/electron/cloud-connections.mjs
+++ b/electron/cloud-connections.mjs
@@ -9,6 +9,8 @@
// `local`: this computer's server, `{ json(route), handoff(what) }`: a loopback read, and the private port's answer.
// `target`: the owner session on My Cloud, `{ call(method, route, body?) }` answering `{ ok, status, body }`.
+import nativeText from "./native-text.cjs";
+
const record = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
const sentence = (value) => (typeof value === "string" && value.trim() ? value.trim().slice(0, 300) : null);
const pick = (source, names) => Object.fromEntries(names.filter((name) => source[name] !== undefined && source[name] !== null).map((name) => [name, source[name]]));
@@ -118,10 +120,10 @@ async function letGo(local, target, item, digest) {
* are connected keeps them, and says which apps connected here it lacks (`missing`).
* `here` and `there`: the "composio" connection of this computer and of My Cloud (null when My Cloud has none yet).
*/
-export async function adoptComposioId(target, { local, here, there, managedApps = true }) {
+export async function adoptComposioId(target, { local, here, there, managedApps = true, t = nativeText.englishText.t }) {
if (here.account && there?.account === here.account) return { shared: true };
if (here.mode === "managed" && !managedApps) {
- throw new ConnectionMoveError("no_service", "Your connected apps stay on this computer: that server has no connected-apps service of its own. Connect them again there in Apps.", true);
+ throw new ConnectionMoveError("no_service", t("native.cloud.connectedAppsStay"), true);
}
const listed = await local.json("/api/connectors/connected").catch(() => null);
const apps = Object.entries(record(listed?.services) ? listed.services : {}).filter(([slug, state]) => SLUG.test(slug) && record(state) && state.connected === true)
@@ -158,7 +160,7 @@ export async function adoptComposioId(target, { local, here, there, managedApps
* it); the sign-ins My Cloud took that this computer still holds; the sign-ins left for a later pass; and the keys a
* trial's Cloud keeps unused while its Claude credit lasts.
*/
-export async function sendConnections(collected, target, { local, release = true, signIns = true, waitMs = ENGINE_WAIT_MS, onProgress = () => {} } = {}) {
+export async function sendConnections(collected, target, { local, release = true, signIns = true, waitMs = ENGINE_WAIT_MS, onProgress = () => {}, t = nativeText.englishText.t } = {}) {
const answer = await target.call("GET", "/api/cloud-connections").catch(() => null);
if (answer?.status === 404) throw new ConnectionMoveError("outdated", "My Cloud needs an update before it can take this computer's apps and keys. It updates by itself.");
let cloud = answer?.ok ? parseConnections(answer.body) : null;
@@ -220,7 +222,7 @@ export async function sendConnections(collected, target, { local, release = true
if (result.kept.length === kept) done(item);
},
async composio(item) {
- const outcome = await adoptComposioId(target, { local, here: item, there: cloud.connections.find((theirs) => theirs.id === "composio") ?? null, managedApps: cloud.managedApps !== false });
+ const outcome = await adoptComposioId(target, { local, here: item, there: cloud.connections.find((theirs) => theirs.id === "composio") ?? null, managedApps: cloud.managedApps !== false, t });
if (outcome.kept) {
result.kept.push({ id: item.id, label: item.label });
result.missing.push(...outcome.missing.map((slug) => ({ slug })));
diff --git a/electron/cloud-home.node-test.mjs b/electron/cloud-home.node-test.mjs
index 45cffe9fca..372aca8c5e 100644
--- a/electron/cloud-home.node-test.mjs
+++ b/electron/cloud-home.node-test.mjs
@@ -8,6 +8,7 @@ import { CLOUD_HOME_NAME, cloudHomeConnectUrl, cloudPlanDisk, cloudUnreachableTe
import environments from "./environments.cjs";
import { handSaved } from "./own-home-main.mjs";
import { homeLook, withoutOldCloudHome } from "./cloud-list.mjs";
+import nativeText from "./native-text.cjs";
const NOW = 1_800_000_000_000;
const origin = "https://omb-u-1a2b3c4d5e6f.fly.dev";
@@ -433,7 +434,7 @@ test("the Server menu opens My Cloud through the Cloud's own connection, never a
const entry = { id: "cloud", name: CLOUD_HOME_NAME, origin }, other = { id: "vps", kind: "remote", name: "VPS", origin: "https://vps.example.test" };
const context = vm.createContext({
environmentsState: { environments: [entry, other], activeId: environments.LOCAL_ID }, LOCAL_ID: environments.LOCAL_ID,
- cloudAccount: { homeTarget: () => ({ origin }), state: () => ({}) }, isCloudHomeEntry, slog: () => {},
+ cloudAccount: { homeTarget: () => ({ origin }), state: () => ({}) }, isCloudHomeEntry, slog: () => {}, nativeT: nativeText.englishText.t,
connectCloudHome: (...args) => connect(...args), cloudHomeSignedIn: async () => signedIn,
openCloudSettings: async () => { calls.push("settings"); },
persistEnvironments: next => { calls.push(`active:${next.activeId}`); context.environmentsState = next; }, withActive: environments.withActive,
diff --git a/electron/cloud-rail.mjs b/electron/cloud-rail.mjs
index d1ccaad268..ada023c149 100644
--- a/electron/cloud-rail.mjs
+++ b/electron/cloud-rail.mjs
@@ -177,7 +177,7 @@ export function installCloudRail({ ipcMain, guard, trusted, lists = trusted, bes
// Make … my home, from a circle's menu: only a server main listed with it, by main's own word for it.
listed("workspaces:make-home", (_event, id) => {
const place = places().find(entry => entry.id === plain(id) && entry.makeHome);
- if (!place || !makeHome) throw new Error("That server can't be your bots' home now.");
+ if (!place || !makeHome) throw new Error(t("native.home.notAvailable"));
return makeHome(place.id);
});
// A link pasted on +'s sheet goes to main's own Connect dialog, which checks it and names its host before connecting.
diff --git a/electron/cloud-send-main.d.mts b/electron/cloud-send-main.d.mts
index b77edb3eba..912005d742 100644
--- a/electron/cloud-send-main.d.mts
+++ b/electron/cloud-send-main.d.mts
@@ -17,6 +17,7 @@ export function installCloudSend(deps: {
window(): { isDestroyed(): boolean; webContents: { send(channel: string, value: unknown): void; mainFrame: { url: string } } } | null;
localOrigin(): string;
fetch?: typeof fetch;
+ t?(key: string, params?: Record<string, string | number>): string;
engineWaitMs?: number;
space?: { disk(): unknown; grow(sizeGb: number): Promise<unknown> };
move?: () => { view(): unknown; seen(): unknown; retry(): Promise<unknown> } | null;
diff --git a/electron/cloud-send-main.mjs b/electron/cloud-send-main.mjs
index 3ba6e22cbd..71f836c476 100644
--- a/electron/cloud-send-main.mjs
+++ b/electron/cloud-send-main.mjs
@@ -72,7 +72,7 @@ export async function openOwnerSession(target, fetchImpl, { label = SESSION_LABE
* `moveSession`: the one session every pass of the move uses (move-session.mjs); without it each pass opens its own.
*/
export function installCloudSend({ ipcMain, cloudPage, server, local, home, cookieFetch, reconnect, power, file, window, localOrigin,
- fetch: fetchImpl = globalThis.fetch, engineWaitMs, space, move = () => null, teamMove = () => null, moveSession = null }) {
+ fetch: fetchImpl = globalThis.fetch, engineWaitMs, space, move = () => null, teamMove = () => null, moveSession = null, t }) {
const handoff = createLoginHandoffClient();
const pageOf = () => {
const win = window();
@@ -121,6 +121,7 @@ export function installCloudSend({ ipcMain, cloudPage, server, local, home, cook
onChange: deliver,
engineWaitMs,
space,
+ t,
});
const onPage = (channel, handler) => (event, ...args) => {
const asking = cloudPage(event);
diff --git a/electron/cloud-send.d.mts b/electron/cloud-send.d.mts
index 2aa19858ee..743ed13d43 100644
--- a/electron/cloud-send.d.mts
+++ b/electron/cloud-send.d.mts
@@ -184,6 +184,7 @@ export function createCloudSend(deps: {
/** Bring newer chats' copy, for a Cloud too old to take chats by row. */
store: { read(): unknown; write(value: unknown): void };
onChange?(snapshot: CloudSendSnapshot): void;
+ t?(key: string, params?: Record<string, string | number>): string;
now?(): number;
/** How long a move waits for My Cloud to run the engines whose keys it just took. */
engineWaitMs?: number;
diff --git a/electron/cloud-send.mjs b/electron/cloud-send.mjs
index 68ad6a7460..a414bacd1d 100644
--- a/electron/cloud-send.mjs
+++ b/electron/cloud-send.mjs
@@ -20,6 +20,7 @@ import { collectConnections, releaseConnections, sendConnections } from "./cloud
import { createMoveKinds, mergeRoutines } from "./cloud-send-kinds.mjs";
import { botsOnCloud } from "./cloud-logins.mjs";
import { checkChats, checkPassed, checkSecrets, manifestGaps, missingAttachments, roomsRemovedThere, roomsThatGo, rowIdChunks } from "./cloud-send-check.mjs";
+import nativeText from "./native-text.cjs";
const LOCAL_ROUTE = /^\/api\/(?:cloud-send|cloud-send\?move=1|cloud-send\/manifest|cloud-send\/chats|cloud-send\/chats\?attachments=1|cloud-send\/kind\?key=[\w%.-]{1,300}|cloud-send\/memory|cloud-send\/memory\?bot=[\w-]{1,128}|cloud-send\/files|cloud-send\/files\?path=[\w%.()~!*'-]{1,12000}&offset=\d{1,16}&length=\d{1,9}|cloud-send\/chats\/rows\?thread=[\w-]{1,200}&after=\d{1,16}&id=[\w%.-]{0,600}|cloud-send\/chats\/ids\?thread=[\w-]{1,200}&from=\d{1,9}|cloud-send\/chats\/attachment\/[A-Za-z0-9-]{1,80}\.[A-Za-z0-9]{1,10}|cloud-connections|connectors\/connected|config|bots\?messages=0|bots\/[\w-]{1,128}\/(?:skills|skills\/[a-z0-9-]{1,64}|memory|memory\/file\?path=[\w%.-]{1,200})|attachments\/[A-Za-z0-9-]{1,80}\.(?:png|jpg|gif|webp))$/u;
/** One request's chats: a few conversations' rows, well under My Cloud's body limit. */
@@ -210,7 +211,7 @@ const movedResult = () => ({ moved: 0, memory: 0, files: { sent: 0, kept: 0 }, c
* name the team gave it; never apps, keys, logins, settings or its notes about the person. `local` is then the bot's
* own Cloud, and `label` names the person beside a file or bot of the same name.
*/
-export function createCloudSend({ local, cloud, handoff, store, onChange = () => {}, now = Date.now, engineWaitMs, space, team = null }) {
+export function createCloudSend({ local, cloud, handoff, store, onChange = () => {}, now = Date.now, engineWaitMs, space, team = null, t = nativeText.englishText.t }) {
let saved = parseSendState(safeRead(store));
let view = { cloud: "none", plan: null, local: null, theirs: null, chats: null };
let running = null, progress = null;
@@ -462,7 +463,7 @@ export function createCloudSend({ local, cloud, handoff, store, onChange = () =>
* could not let go of yet is kept and let go of on the next final pass. */
async function moveConnections(origin, session, result, final) {
const kept = entry(origin);
- const failed = (id, label, error, last) => result.failed.push({ key: id, kind: "connection", label, error: sentence(error) ?? "It did not move.", ...(last ? { final: true } : {}) });
+ const failed = (id, label, error, last) => result.failed.push({ key: id, kind: "connection", label, error: sentence(error) ?? t("native.home.itemDidNotMove"), ...(last ? { final: true } : {}) });
if (final && kept.release.length) {
kept.release = await releaseConnections(kept.release, { local: connectionLocal, target: session }).catch(() => kept.release);
persist();
@@ -470,7 +471,7 @@ export function createCloudSend({ local, cloud, handoff, store, onChange = () =>
let collected;
try { collected = await collectConnections(connectionLocal); }
catch (error) { failed("connections", "Apps and keys", error?.message, false); return null; }
- const moved = await sendConnections(collected, session, { local: connectionLocal, signIns: final, ...(engineWaitMs !== undefined ? { waitMs: engineWaitMs } : {}),
+ const moved = await sendConnections(collected, session, { local: connectionLocal, signIns: final, t, ...(engineWaitMs !== undefined ? { waitMs: engineWaitMs } : {}),
onProgress: (step) => { progress = { done: step.done, total: step.total }; publish(); } });
result.connections += moved.moved.length + moved.runsHere.length;
for (const failure of moved.failed) failed(failure.id, failure.label, failure.message, failure.final);
diff --git a/electron/computer-sharing.mjs b/electron/computer-sharing.mjs
index 3cd78c44ce..109f446be4 100644
--- a/electron/computer-sharing.mjs
+++ b/electron/computer-sharing.mjs
@@ -363,7 +363,7 @@ export function createComputerSharing({ file, fetch: fetchImpl, environments, cu
const cloudIdentity = async env => {
const { auth, info, details, link, chrome: takesChrome, timeouts, long, edits } = await describe(env);
const own = ownHomeId(env);
- if (own !== null && (auth.own !== true || info.environmentId !== own)) throw Object.assign(new Error("This server is not your bots' home any more"), { problem: "not-cloud" });
+ if (own !== null && (auth.own !== true || info.environmentId !== own)) throw Object.assign(new Error(t("native.lend.homeChanged")), { problem: "not-cloud" });
if ((own === null && auth.cloudHome !== true) || !Array.isArray(auth.scopes) || !auth.scopes.includes("admin")) throw Object.assign(new Error("This server is not My Cloud"), { problem: "not-cloud" });
if (details) supportsDetails.add(env.id); else supportsDetails.delete(env.id);
if (link) supportsLink.add(env.id); else supportsLink.delete(env.id);
@@ -502,8 +502,8 @@ export function createComputerSharing({ file, fetch: fetchImpl, environments, cu
const connection = await cuaConnection();
jobSignal.throwIfAborted();
const mcp = sharedCuaConnection(connection);
- if (!mcp) { if (grant.cloud) try { askForScreen(connection); } catch {} throw new Error(cuaUnavailable(connection?.reason)); }
- live.cua = createSharedCua(mcp);
+ if (!mcp) { if (grant.cloud) try { askForScreen(connection); } catch {} throw new Error(cuaUnavailable(connection?.reason, process.platform, t)); }
+ live.cua = createSharedCua(mcp, { t });
}
return live.cua;
});
@@ -647,7 +647,7 @@ export function createComputerSharing({ file, fetch: fetchImpl, environments, cu
/** This computer as the person's own Clouds hear it: paused, and why apps and screen or commands aren't lent. */
const thisComputer = async () => {
const status = await Promise.resolve().then(screen).then(value => value && typeof value === "object" ? value : null, () => null);
- return { name: os.hostname().slice(0, 120) || "This computer", platform: LENT_PLATFORMS.has(process.platform) ? process.platform : null, paused,
+ return { name: os.hostname().slice(0, 120) || t("rail.thisComputer"), platform: LENT_PLATFORMS.has(process.platform) ? process.platform : null, paused,
screen: { ready: status?.ready === true, reason: status && !status.ready ? status.reason ?? null : null }, terminal: terminalAccount !== null && terminalAccount === signedInAccount() };
};
/** Every Cloud of the person's own may use this computer again. */
@@ -799,7 +799,7 @@ export function createComputerSharing({ file, fetch: fetchImpl, environments, cu
lendTerminal(on) {
const account = on === true ? signedInAccount() : null;
if (closed || terminalAccount === account) return;
- if (on === true && !account) throw new Error("Sign in to the Cloud before lending it the terminal.");
+ if (on === true && !account) throw new Error(t("native.lend.terminalSignIn"));
const before = terminalAccount;
terminalAccount = account;
try { store(records); } catch (error) { terminalAccount = before; throw error; }
diff --git a/electron/lending-dialogs.mjs b/electron/lending-dialogs.mjs
index 02a9e3c5cf..e56fdbce03 100644
--- a/electron/lending-dialogs.mjs
+++ b/electron/lending-dialogs.mjs
@@ -34,9 +34,9 @@ export function createLendingDialogs({ dialog, window, validate, isHome = async
askingTerminal = true;
try {
const { response } = await dialog.showMessageBox({
- type: "warning", buttons: ["Let them run commands", "Cancel"], defaultId: 1, cancelId: 1,
- message: "Let your Clouds run commands on this computer?",
- detail: "Bots on your own Clouds could run any command on this computer as you, including reading and changing any file you can. You can turn this off from the OpenMausBot icon's menu.",
+ type: "warning", buttons: [t("native.lend.terminalAllow"), t("native.common.cancel")], defaultId: 1, cancelId: 1,
+ message: t("native.lend.terminalTitle"),
+ detail: t("native.lend.terminalDetail"),
});
if (response !== 0) return false;
} finally { askingTerminal = false; }
diff --git a/electron/lending-dialogs.node-test.mjs b/electron/lending-dialogs.node-test.mjs
index cc508ee2b2..4a31864935 100644
--- a/electron/lending-dialogs.node-test.mjs
+++ b/electron/lending-dialogs.node-test.mjs
@@ -59,6 +59,23 @@ test("the terminal is lent only after its warning's own yes, one question at a t
assert.deepEqual([stopped, off.calls.length], [1, 0]);
});
+test("the terminal warning follows the app's language and keeps Cancel as its default", async () => {
+ const text = nativeText.createNativeText({ saved: "en" });
+ const { dialog, calls } = fakeDialog();
+ const dialogs = createLendingDialogs({ dialog, window: liveWindow, validate: named, t: text.t });
+ for (const [language, message, buttons] of [
+ ["en", "Let your Clouds run commands on this computer?", ["Let them run commands", "Cancel"]],
+ ["pt-br", "Permitir que seus Clouds executem comandos neste computador?", ["Permitir que executem comandos", "Cancelar"]],
+ ]) {
+ text.set(language);
+ assert.equal(await dialogs.lendTerminal(true, () => assert.fail("Cancel never grants access")), false);
+ const options = calls.at(-1)[1];
+ assert.equal(options.message, message);
+ assert.deepEqual(options.buttons, buttons);
+ assert.deepEqual([options.defaultId, options.cancelId], [1, 1]);
+ }
+});
+
test("the whole home folder is lent only after its own warning, and is named in the access dialog", async () => {
const win = liveWindow(), isHome = async (path) => path === "/Users/me";
for (const [response, lent] of [[0, true], [1, false], [-1, false]]) {
diff --git a/electron/lending-indicator.mjs b/electron/lending-indicator.mjs
index 5672773f6e..2968a045ee 100644
--- a/electron/lending-indicator.mjs
+++ b/electron/lending-indicator.mjs
@@ -12,13 +12,13 @@ const short = (names, t) => names.length < 3 ? listed(names, t) : t("native.lend
export function indicatorText({ clouds, using, paused, screen = null }, device, t = nativeText.englishText.t) {
const named = device === "computer" ? t("native.lendTray.computer") : device;
if (paused) return { line: t("native.lendTray.pausedLine", { clouds: listed(clouds, t), device: named }), title: t("native.lendTray.paused"), screen: null };
- const why = screenLine(screen, device);
+ const why = screenLine(screen, device, t);
if (using.length) {
const key = using.length > 1 ? "native.lendTray.usingMany" : "native.lendTray.usingOne";
return { line: t(key, { clouds: listed(using, t), device: named }), title: t(key, { clouds: short(using, t), device: named }), screen: why };
}
- const line = t("native.lendTray.canUse", { clouds: listed(clouds, t), device: named });
- return { line: why ? `${line}, but not its apps and screen` : line, title: "", screen: why };
+ const line = t(why ? "native.lendTray.canUseWithoutScreen" : "native.lendTray.canUse", { clouds: listed(clouds, t), device: named });
+ return { line, title: "", screen: why };
}
export function createLendingIndicator({ Tray, Menu, nativeImage, iconPath, onPause, onResume, onActivity, onTerminal, onStartScreen = () => {}, device = deviceWord(), t = nativeText.englishText.t }) {
@@ -27,7 +27,7 @@ export function createLendingIndicator({ Tray, Menu, nativeImage, iconPath, onPa
const draw = view => {
if (!tray || tray.isDestroyed()) return;
const { line, title, screen } = indicatorText(view, device, t);
- const fix = screen ? screenFixLabel(view.screen) : null;
+ const fix = screen ? screenFixLabel(view.screen, t) : null;
tray.setToolTip(`OpenMausBot: ${line}${screen ? `. ${screen}` : ""}`);
// Electron shows a tray title beside the icon on macOS only.
tray.setTitle?.(title);
@@ -37,7 +37,7 @@ export function createLendingIndicator({ Tray, Menu, nativeImage, iconPath, onPa
...fix ? [{ label: fix, click: () => onStartScreen() }] : [],
{ type: "separator" },
view.paused ? { label: t("native.lendTray.resume"), click: () => onResume() } : { label: t("native.lendTray.pause"), click: () => onPause() },
- ...view.paused ? [] : [{ label: `Let Clouds run commands on this ${device}`, type: "checkbox", checked: view.terminal,
+ ...view.paused ? [] : [{ label: t("native.lendTray.terminal", { device: device === "computer" ? t("native.lendTray.computer") : device }), type: "checkbox", checked: view.terminal,
// Electron 43 ticks a checkbox on click by itself: the menu keeps the saved choice until the person confirms one.
click: () => { draw(view); onTerminal(!view.terminal); } }],
{ label: t("native.lendTray.activity"), click: () => onActivity() },
diff --git a/electron/lent-screen-failures.d.mts b/electron/lent-screen-failures.d.mts
index d486648826..a2f683451e 100644
--- a/electron/lent-screen-failures.d.mts
+++ b/electron/lent-screen-failures.d.mts
@@ -1,3 +1,3 @@
export const SCREEN_LOCKED: string;
-export function helperMissing(platform?: NodeJS.Platform): string;
-export function cuaUnavailable(reason: unknown, platform?: NodeJS.Platform): string;
+export function helperMissing(platform?: NodeJS.Platform, t?: (key: string, params?: Record<string, string | number>) => string): string;
+export function cuaUnavailable(reason: unknown, platform?: NodeJS.Platform, t?: (key: string, params?: Record<string, string | number>) => string): string;
diff --git a/electron/lent-screen-failures.mjs b/electron/lent-screen-failures.mjs
index 97fb26b91d..bbcb5fa65f 100644
--- a/electron/lent-screen-failures.mjs
+++ b/electron/lent-screen-failures.mjs
@@ -1,22 +1,23 @@
// Plain sentences for a lent screen that cannot work, with the fix the person can make on this computer. They reach
// the bot through the server and this computer's lending activity, so they name no path.
import capabilitiesModule from "./capabilities.cjs";
+import nativeText from "./native-text.cjs";
const { driverBlocked } = capabilitiesModule;
export const SCREEN_LOCKED =
"This computer's screen is locked, so its apps and screen cannot be seen or used. Unlock it and keep it unlocked while the bot works, then try again.";
-export function helperMissing(platform = process.platform) {
+export function helperMissing(platform = process.platform, t = nativeText.englishText.t) {
return platform === "win32"
- ? "Computer control could not start on this PC: its helper, cua-driver-background.exe or cua-driver.exe, is missing or blocked. Windows Security may have quarantined it: open Windows Security → Virus & threat protection → Protection history, restore or allow it (or reinstall OpenMausBot), then restart OpenMausBot."
+ ? t("native.screen.windowsHelperBlocked")
: "Computer control could not start on this computer: its helper, cua-driver, is missing or blocked. Reinstall OpenMausBot, then restart it.";
}
/** `reason` is the desktop's own cua start-up failure, which never crosses to the server as written. */
-export function cuaUnavailable(reason, platform = process.platform) {
+export function cuaUnavailable(reason, platform = process.platform, t = nativeText.englishText.t) {
const why = String(reason ?? "");
- if (driverBlocked(why)) return helperMissing(platform);
+ if (driverBlocked(why)) return helperMissing(platform, t);
if (/Accessibility|Screen Recording|permission/i.test(why)) {
return "Computer control needs permission on this computer: allow Accessibility and Screen Recording for OpenMausBot in System Settings → Privacy & Security, then restart OpenMausBot.";
}
diff --git a/electron/main.mjs b/electron/main.mjs
index bd12c8de2f..5d5a97ea16 100644
--- a/electron/main.mjs
+++ b/electron/main.mjs
@@ -1459,7 +1459,7 @@ function sharingController() {
environments: () => environmentsState.environments,
enabled: refreshSharedComputersAllowed, t: nativeT,
cloud: lendingTarget.cloud, myCloud: lendingTarget.environment, ownClouds: lendingTarget.places, screen: screenControl.now, askForScreen, power: cloudPower, cloudPower: origin => cloudAccount?.powerOf?.(origin) ?? null, reconnect: reconnectCloud,
- prompt: createAskPrompt({ dialog, window: () => mainWindow, idleSeconds: () => powerMonitor.getSystemIdleState(1) === "unknown" ? null : powerMonitor.getSystemIdleTime() }), startScreen: screenControl.start, confirmTerminal: () => lendingDialogs.lendTerminal(true, () => sharingController().lendTerminal(true)), log: slog,
+ prompt: createAskPrompt({ t: nativeT, dialog, window: () => mainWindow, idleSeconds: () => powerMonitor.getSystemIdleState(1) === "unknown" ? null : powerMonitor.getSystemIdleTime() }), startScreen: screenControl.start, confirmTerminal: () => lendingDialogs.lendTerminal(true, () => sharingController().lendTerminal(true)), log: slog,
linkHeaders: async env => ({ cookie: (await session.defaultSession.cookies.get({ url: env.origin })).map(cookie => `${cookie.name}=${cookie.value}`).join("; ") }),
onChange: summary => { lendingIndicator().update(summary); loginItem.follow(summary.lending.length > 0); },
cuaConnection: () => cuaReady, screenLocked: () => powerMonitor.getSystemIdleState(1) === "locked", idleSeconds: () => powerMonitor.getSystemIdleState(1) === "unknown" ? null : powerMonitor.getSystemIdleTime(),
@@ -1468,7 +1468,7 @@ function sharingController() {
return computerSharing;
}
-const cleanWorkspace = createCleanWorkspace({ dataDir: desktopDataDir, running: () => runningDataDir, swap: dir => switchLocalEnvironmentTo(dir, LOCAL_ID, true), allowed: () => app.isPackaged && !desktopRemoteAccess, changed: () => { computerSharing?.cloudChanged(); void oneHome.kick(); }, log: slog }); const lendingTarget = createLendingTarget({ account: () => (cleanWorkspace.active() ? null : cloudAccount), environments: () => environmentsState.environments, ownHome: () => ownHome?.home() ?? null });
+const cleanWorkspace = createCleanWorkspace({ t: nativeT, dataDir: desktopDataDir, running: () => runningDataDir, swap: dir => switchLocalEnvironmentTo(dir, LOCAL_ID, true), allowed: () => app.isPackaged && !desktopRemoteAccess, changed: () => { computerSharing?.cloudChanged(); void oneHome.kick(); }, log: slog }); const lendingTarget = createLendingTarget({ account: () => (cleanWorkspace.active() ? null : cloudAccount), environments: () => environmentsState.environments, ownHome: () => ownHome?.home() ?? null });
const screenControl = createScreenControl({ connection: () => cuaReady, remote: () => Boolean(desktopRemoteAccess), request: requestComputerUse, log: slog });
let screenAskedAt = -Infinity;
/** Computer control starts again, as Settings' Retry does, which asks macOS for what it never asked; at most every 10 minutes. */
@@ -1702,7 +1702,7 @@ async function switchEnvironment(id) {
if (!(await cloudHomeSignedIn(entry.origin))) { await openCloudSettings(); return; }
}
}
- if (entry && handSaved(entry) && !(await serverOpens(entry, { fetch: (...args) => session.defaultSession.fetch(...args), dialog, forget: (gone) => forgetEnvironment(gone, false, true) }))) return;
+ if (entry && handSaved(entry) && !(await serverOpens(entry, { t: nativeT, fetch: (...args) => session.defaultSession.fetch(...args), dialog, forget: (gone) => forgetEnvironment(gone, false, true) }))) return;
persistEnvironments(withActive(environmentsState, id)); navigateMainWindow(activeOrigin());
}
@@ -2655,7 +2655,7 @@ const cloudLook = createCloudLook({ store: lookFile(() => path.join(app.getPath(
const cloudBuy = installCloudBuy({ ipcMain, guard: localWorkspaceOnly, client: ensureCloudAccount, offersReady: cloudOffersReady, clipboard, look: cloudLook });
const localServerRequest = (route, init = {}) => (serverProc && serverReady ? fetch(`http://127.0.0.1:${SERVER_PORT}${route}`, { ...init, redirect: "error", credentials: "omit", headers: { ...init.headers, [DESKTOP_MUTATION_HEADER]: desktopMutationToken } }) : Promise.reject(new Error("not running")));
const teamProfileSeeds = createTeamProfileSeeds({ teamFetch: (...args) => session.defaultSession.fetch(...args), localRequest: localServerRequest, log: slog });
-const oneHome = installOneHome({ ipcMain, clean: cleanWorkspace, cloudPage: cloudPageAsking, server: () => serverProc, cookieFetch: (...args) => session.defaultSession.fetch(...args), home: () => (myCloud() && cloudAccount ? { origin: myCloud(), grant: () => cloudAccount.pairHome() } : null), power: cloudPower, file: () => path.join(app.getPath("userData"), "cloud-send.json"), localRequest: localServerRequest, space: { disk: () => cloudPlanDisk(ensureCloudAccount().state()), grow: sizeGb => ensureCloudAccount().growDisk(sizeGb) }, reconnect: origin => signInCloudSession({ origin, mine: myCloud(), pair: () => ensureCloudAccount().pairHome(), fetch: (...args) => session.defaultSession.fetch(...args) }), window: () => (desktopRemoteAccess ? null : mainWindow), localOrigin: rendererOrigin, account: () => cloudAccount, journalFile: () => path.join(app.getPath("userData"), "one-home.json"), tempRoot: () => path.join(app.getPath("temp"), "openmaus-one-home"), lend: projects => sharingController().lendProjects(projects), phone: { paired: () => companionEnabledAtRest(), stop: () => stopDesktopCompanion({ remember: false }).then(() => {}), start: () => startDesktopCompanion({ waitForHosted: false, remember: false }).then(() => {}) }, openHome: () => void showHome({ place: "cloud" }), openTeam: team => void showHome({ place: { team: team.id, name: team.name } }), openLocal: () => void showHome(), restart: () => relaunchAfterDesktopRemoteChange(), version: app.getVersion(), log: slog, other: () => ownHome, t: nativeT }); ownHome = installOwnHome({ localRequest: localServerRequest, fetch: (...args) => session.defaultSession.fetch(...args), environments: () => environmentsState.environments, handoff: what => oneHome.handoff(what), cloudJournal: () => oneHome.journal(), journal: jsonFile(path.join(app.getPath("userData"), "own-home.json")), choice: jsonFile(path.join(app.getPath("userData"), "own-home-choice.json")), sendState: jsonFile(path.join(app.getPath("userData"), "own-home-send.json")), lend: (projects, place) => sharingController().lendProjects(projects, place), phone: { paired: () => companionEnabledAtRest(), stop: () => stopDesktopCompanion({ remember: false }).then(() => {}), start: () => startDesktopCompanion({ waitForHosted: false, remember: false }).then(() => {}) }, openHome: place => void workspaceMenuAction(() => switchEnvironment(place.id)), lastInput: oneHome.lastInput, version: app.getVersion(), log: slog, onChange: () => { oneHome.publish(); computerSharing?.cloudChanged(); railChanged(); } }); twoPlaces = installTwoPlacesMain({ ipcMain, guard: localWorkspaceOnly, localRequest: localServerRequest, fetch: (...args) => session.defaultSession.fetch(...args), environments: () => environmentsState.environments, cloud: () => ({ origin: myCloud(), asleep: cloudPower.asleep() }), oneHome, ownHome, dismissed: jsonFile(path.join(app.getPath("userData"), "two-places.json")), account: () => cloudAccount, teamsRemembered: jsonFile(path.join(app.getPath("userData"), "team-places.json")), log: slog, tell: () => { if (mainWindow && !mainWindow.isDestroyed() && senderIsLocal({ sender: mainWindow.webContents })) mainWindow.webContents.send("two-places:changed"); } });
+const oneHome = installOneHome({ ipcMain, clean: cleanWorkspace, cloudPage: cloudPageAsking, server: () => serverProc, cookieFetch: (...args) => session.defaultSession.fetch(...args), home: () => (myCloud() && cloudAccount ? { origin: myCloud(), grant: () => cloudAccount.pairHome() } : null), power: cloudPower, file: () => path.join(app.getPath("userData"), "cloud-send.json"), localRequest: localServerRequest, space: { disk: () => cloudPlanDisk(ensureCloudAccount().state()), grow: sizeGb => ensureCloudAccount().growDisk(sizeGb) }, reconnect: origin => signInCloudSession({ origin, mine: myCloud(), pair: () => ensureCloudAccount().pairHome(), fetch: (...args) => session.defaultSession.fetch(...args) }), window: () => (desktopRemoteAccess ? null : mainWindow), localOrigin: rendererOrigin, account: () => cloudAccount, journalFile: () => path.join(app.getPath("userData"), "one-home.json"), tempRoot: () => path.join(app.getPath("temp"), "openmaus-one-home"), lend: projects => sharingController().lendProjects(projects), phone: { paired: () => companionEnabledAtRest(), stop: () => stopDesktopCompanion({ remember: false }).then(() => {}), start: () => startDesktopCompanion({ waitForHosted: false, remember: false }).then(() => {}) }, openHome: () => void showHome({ place: "cloud" }), openTeam: team => void showHome({ place: { team: team.id, name: team.name } }), openLocal: () => void showHome(), restart: () => relaunchAfterDesktopRemoteChange(), version: app.getVersion(), log: slog, other: () => ownHome, t: nativeT }); ownHome = installOwnHome({ t: nativeT, localRequest: localServerRequest, fetch: (...args) => session.defaultSession.fetch(...args), environments: () => environmentsState.environments, handoff: what => oneHome.handoff(what), cloudJournal: () => oneHome.journal(), journal: jsonFile(path.join(app.getPath("userData"), "own-home.json")), choice: jsonFile(path.join(app.getPath("userData"), "own-home-choice.json")), sendState: jsonFile(path.join(app.getPath("userData"), "own-home-send.json")), lend: (projects, place) => sharingController().lendProjects(projects, place), phone: { paired: () => companionEnabledAtRest(), stop: () => stopDesktopCompanion({ remember: false }).then(() => {}), start: () => startDesktopCompanion({ waitForHosted: false, remember: false }).then(() => {}) }, openHome: place => void workspaceMenuAction(() => switchEnvironment(place.id)), lastInput: oneHome.lastInput, version: app.getVersion(), log: slog, onChange: () => { oneHome.publish(); computerSharing?.cloudChanged(); railChanged(); } }); twoPlaces = installTwoPlacesMain({ t: nativeT, ipcMain, guard: localWorkspaceOnly, localRequest: localServerRequest, fetch: (...args) => session.defaultSession.fetch(...args), environments: () => environmentsState.environments, cloud: () => ({ origin: myCloud(), asleep: cloudPower.asleep() }), oneHome, ownHome, dismissed: jsonFile(path.join(app.getPath("userData"), "two-places.json")), account: () => cloudAccount, teamsRemembered: jsonFile(path.join(app.getPath("userData"), "team-places.json")), log: slog, tell: () => { if (mainWindow && !mainWindow.isDestroyed() && senderIsLocal({ sender: mainWindow.webContents })) mainWindow.webContents.send("two-places:changed"); } });
// Teams from the verified session as places this window shows (home-places.mjs): the one to open next time, and its lines.
const homePlaces = createHomePlaces({ store: jsonFile(path.join(app.getPath("userData"), "home-place.json")), environments: () => environmentsState, persist: persistEnvironments, makeId: randomUUID, homeOrigin: myCloud, log: slog });
const homeWindow = createHomeWindow({ clean: cleanWorkspace, journal: oneHome.journal, frozen: oneHome.marker, account: () => (app.isPackaged && !desktopRemoteAccess ? cloudAccount : null), restored: cloudAccountRestored,
@@ -2686,7 +2686,7 @@ const chromeRail = createChromeRail({ createView: options => new WebContentsView
chromeRail.install(ipcMain);
function railChanged() { chromeRail.refresh(); rail.changed(); }
const accountPages = [() => (mainWindow && !mainWindow.isDestroyed() && senderIsLocal({ sender: mainWindow.webContents }) ? mainWindow.webContents : null), () => ({ send: channel => chromeRail.send(channel) })];
-const accounts = installAccounts({ ipcMain, ownPage: event => chromeRail.owns(event) || cloudPageAsking(event) === "local", placePage: event => cloudPageAsking(event) !== null || ownCloudPage(event) !== null || homeWindow.homePage(event) || (Boolean(ownHome?.home()) && activeEnvironment(environmentsState)?.origin === ownHome.home().origin && workspaceSenderAllowed(event, mainWindow?.webContents, environmentsState, rendererOrigin())), account: () => (app.isPackaged && !desktopRemoteAccess ? cloudAccount : null), client: ensureCloudAccount, holdSheet: open => chromeRail.holdOpen(open), tellSheet: () => chromeRail.send("accounts:open-sheet"), leaving: () => homeWindow.accountLeaving(), leave: createAccountLeave({ saved: () => environmentsState, persist: persistEnvironments, session: () => session.defaultSession, mine: () => myCloud(), leaveWindow: () => (mainWindow && !mainWindow.isDestroyed() && !senderIsLocal({ sender: mainWindow.webContents }) ? navigateMainWindow(rendererOrigin()) : null), settled: () => computerSharing?.goodbyesDone(), log: slog }), show: () => showHome(), tell: () => { for (const page of accountPages) page()?.send("accounts:changed"); } });
+const accounts = installAccounts({ t: nativeT, ipcMain, ownPage: event => chromeRail.owns(event) || cloudPageAsking(event) === "local", placePage: event => cloudPageAsking(event) !== null || ownCloudPage(event) !== null || homeWindow.homePage(event) || (Boolean(ownHome?.home()) && activeEnvironment(environmentsState)?.origin === ownHome.home().origin && workspaceSenderAllowed(event, mainWindow?.webContents, environmentsState, rendererOrigin())), account: () => (app.isPackaged && !desktopRemoteAccess ? cloudAccount : null), client: ensureCloudAccount, holdSheet: open => chromeRail.holdOpen(open), tellSheet: () => chromeRail.send("accounts:open-sheet"), leaving: () => homeWindow.accountLeaving(), leave: createAccountLeave({ saved: () => environmentsState, persist: persistEnvironments, session: () => session.defaultSession, mine: () => myCloud(), leaveWindow: () => (mainWindow && !mainWindow.isDestroyed() && !senderIsLocal({ sender: mainWindow.webContents }) ? navigateMainWindow(rendererOrigin()) : null), settled: () => computerSharing?.goodbyesDone(), log: slog }), show: () => showHome(), tell: () => { for (const page of accountPages) page()?.send("accounts:changed"); } });
const rail = installCloudRail({ t: nativeT, ipcMain, clipboard, openCloud: openOwnCloud, account: () => (app.isPackaged && !desktopRemoteAccess ? cloudAccount : null),
guard: handler => (event, ...args) => (chromeRail.owns(event) ? handler(event, ...args) : workspaceOnly(handler)(event, ...args)),
lists: event => chromeRail.owns(event), trusted: event => chromeRail.owns(event) || senderIsLocal(event), beside: () => chromeRail.shown(),
diff --git a/electron/native-language.node-test.mjs b/electron/native-language.node-test.mjs
index 0232a20423..83d507ff19 100644
--- a/electron/native-language.node-test.mjs
+++ b/electron/native-language.node-test.mjs
@@ -57,11 +57,13 @@ test("a new language redraws main's menu, both trays, the window title and the b
assert.ok(start > 0 && end > start, "main.mjs still has applyNativeLanguage");
vm.runInContext(`${MAIN.slice(start, end)}; this.applyNativeLanguage = applyNativeLanguage;`, context);
+ const said = (tray) => tray.menu.filter((item) => item.label).map((item) => item.label);
+ assert.deepEqual(said(trays[1]), ["My Cloud can use this PC", "Pause", "Let Clouds run commands on this PC", "See activity"]);
+
text.set("pt-br");
context.applyNativeLanguage();
assert.deepEqual(calls, [["menu", "Servidor"], ["title", "OpenMausBot — Hospedado: Office (office.example.test)"], ["badge", "Nenhuma conversa não lida"]]);
- const said = (tray) => tray.menu.filter((item) => item.label).map((item) => item.label);
assert.deepEqual(said(trays[0]), ["Abrir o OpenMaus Bot", "Sair do OpenMaus Bot"]);
- assert.deepEqual(said(trays[1]), ["My Cloud com acesso a este PC", "Pausar", "Let Clouds run commands on this PC", "Ver atividade"]);
+ assert.deepEqual(said(trays[1]), ["My Cloud com acesso a este PC", "Pausar", "Permitir que os Clouds executem comandos neste PC", "Ver atividade"]);
assert.equal(trays[1].tip, "OpenMausBot: My Cloud com acesso a este PC");
});
diff --git a/electron/native-text.cjs b/electron/native-text.cjs
index 6b431ac067..5e152c4c07 100644
--- a/electron/native-text.cjs
+++ b/electron/native-text.cjs
@@ -6,7 +6,8 @@ const LOCALE_FILE = /^[a-z]{2,3}(?:-[a-z0-9]{2,8})*\.json$/;
const SOURCE_HASHES = "source-hashes.json";
const ENGLISH = "en";
const LOCALE_ALIASES = Object.freeze({ pt: "pt-br", "zh-hant": "zh-tw", "zh-hk": "zh-tw", "zh-mo": "zh-tw" });
-const kept = (key) => key.startsWith("native.") || key === "place.local";
+const SHARED_KEYS = new Set(["place.local", "rail.thisComputer", "rail.remove", "cloudHome.tryAgain", "computer.windows.start", "mcp.turnOn", "cloudSetup.myCloud", "computer.badge.local"]);
+const kept = (key) => key.startsWith("native.") || SHARED_KEYS.has(key);
/** Security: a language is only ever a pack file listed here; a code from a page never reaches a path unchecked. */
function localeCodes(dir = LOCALES_DIR, files = fs) {
diff --git a/electron/native-text.node-test.mjs b/electron/native-text.node-test.mjs
index b39441dbbb..1568d814a1 100644
--- a/electron/native-text.node-test.mjs
+++ b/electron/native-text.node-test.mjs
@@ -53,6 +53,14 @@ test("a key a language lacks reads in English, parameters fill in, and only main
assert.equal(text.t("chat.other"), "chat.other", "the renderer's own keys are not held in main");
});
+test("shared native controls reuse the renderer's catalog in the current language", () => {
+ const text = createNativeText({ saved: "en" });
+ const controls = ["rail.thisComputer", "rail.remove", "cloudHome.tryAgain", "computer.windows.start", "mcp.turnOn", "cloudSetup.myCloud", "computer.badge.local"];
+ assert.deepEqual(controls.map(key => text.t(key)), ["This computer", "Remove from list", "Try again", "Start screen control", "Turn on", "My Cloud", "this computer"]);
+ text.set("pt-br");
+ assert.deepEqual(controls.map(key => text.t(key)), ["Este computador", "Remover da lista", "Tentar novamente", "Iniciar o controle de tela", "Ligar", "My Cloud", "este computador"]);
+});
+
test("the saved language wins over the system's, \"\" follows the system again, and set says when the words change", (t) => {
const dir = packs(t, { "en.json": { "native.x": "en" }, "pt-br.json": { "native.x": "pt" }, "de.json": { "native.x": "de" } });
let system = "";
diff --git a/electron/one-home-main.mjs b/electron/one-home-main.mjs
index 207a06523e..0396613905 100644
--- a/electron/one-home-main.mjs
+++ b/electron/one-home-main.mjs
@@ -140,7 +140,7 @@ export function installOneHome({ localRequest: anyServer, clean = null, account,
let teamMove = null;
// One owner session for the whole move, every pass and check and the switch: each new one is one of the Admin's codes.
const moveSession = createMoveSession({ open: (target) => openOwnerSession(target, fetchImpl, { label: MOVE_LABEL, background: false }) });
- const send = installCloudSend({ ...sendDeps, local: (route, init) => localRequest(route, { method: init?.method ?? "GET", signal: AbortSignal.timeout(30_000) }),
+ const send = installCloudSend({ ...sendDeps, t, local: (route, init) => localRequest(route, { method: init?.method ?? "GET", signal: AbortSignal.timeout(30_000) }),
move: () => (home?.view() === null && other()?.view() ? other() : home), teamMove: () => teamMove, moveSession });
teamMove = installTeamMove({ ipcMain: sendDeps.ipcMain, cloudPage: sendDeps.cloudPage, home: sendDeps.home, account: () => account(), fetch: fetchImpl, openTeam,
file: () => join(dirname(journalFile()), "team-move-send.json"), journalFile: () => join(dirname(journalFile()), "team-moves.json"), ...(teamJournal ? { journal: teamJournal } : {}),
diff --git a/electron/one-home.mjs b/electron/one-home.mjs
index fa5d9d94e1..a10db0bbe3 100644
--- a/electron/one-home.mjs
+++ b/electron/one-home.mjs
@@ -243,7 +243,7 @@ export function createOneHome(deps) {
function notCarried(sent, onlyFinal) {
const failed = sent?.whole?.result?.failed;
return (Array.isArray(failed) ? failed : []).filter((entry) => typeof entry?.label === "string" && (!onlyFinal || entry.final === true))
- .slice(0, NAMED_MAX).map((entry) => ({ label: entry.label, error: sentence(entry.error) ?? "It did not move." }));
+ .slice(0, NAMED_MAX).map((entry) => ({ label: entry.label, error: sentence(entry.error) ?? t("native.home.itemDidNotMove") }));
}
/** Lifts this computer's freeze; true once it is lifted. */
diff --git a/electron/own-home-main.d.mts b/electron/own-home-main.d.mts
index f733f3b1e6..aa5786bf83 100644
--- a/electron/own-home-main.d.mts
+++ b/electron/own-home-main.d.mts
@@ -16,7 +16,7 @@ export function serverRequests(place: { origin: string }, fetchImpl: typeof fetc
/** The server's word on this window's sign-in there. */
who(): Promise<{ signedIn: boolean; own: boolean; environmentId: string | null; takesMove: boolean; status: number }>;
};
-export function openServerSession(chosen: OwnHomeChoice, fetchImpl: typeof fetch): Promise<{
+export function openServerSession(chosen: OwnHomeChoice, fetchImpl: typeof fetch, t?: (key: string, params?: Record<string, string | number>) => string): Promise<{
call(method: string, route: string, body?: unknown): Promise<Answer>;
upload(route: string, bytes: Uint8Array, type: string): Promise<Answer>;
fetch(route: string, init?: RequestInit): Promise<Response>;
@@ -29,6 +29,7 @@ export function installOwnHome(deps: {
/** This window's own requests, with its sign-ins. */
fetch: typeof fetch;
environments(): SavedPlace[];
+ t?(key: string, params?: Record<string, string | number>): string;
/** This computer's server's private port, which hands a moving secret to main alone. */
handoff(what: { kind: string; [key: string]: unknown }): Promise<any>;
journal: { read(): unknown; write(value: unknown): void };
diff --git a/electron/own-home-main.mjs b/electron/own-home-main.mjs
index 645c24542c..a432ada8ba 100644
--- a/electron/own-home-main.mjs
+++ b/electron/own-home-main.mjs
@@ -9,6 +9,7 @@
import { createCloudSend } from "./cloud-send.mjs";
import { freezeAnswer } from "./one-home-main.mjs";
import { awayIn, createOneHome, parseJournal } from "./one-home.mjs";
+import nativeText from "./native-text.cjs";
const record = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
const ORIGIN = /^https?:\/\/[^/\s]+$/u;
@@ -62,12 +63,12 @@ export function serverRequests(place, fetchImpl) {
}
/** The move's session at the chosen server: this window's own sign-in, checked to be its owner's, at the server chosen. */
-export async function openServerSession(chosen, fetchImpl) {
+export async function openServerSession(chosen, fetchImpl, t = nativeText.englishText.t) {
const server = serverRequests(chosen, fetchImpl);
const who = await server.who();
- if (!who.signedIn) throw tagged(`This app isn't signed in to ${chosen.name}. Open ${chosen.name} in this app, then try again.`, "signed_out", { status: who.status === 403 ? 403 : 401 });
- if (who.environmentId !== chosen.environmentId) throw tagged(`The server at ${chosen.name}'s address is another one now, so nothing more goes there.`, "other_server");
- if (!who.own) throw tagged(`${chosen.name} has other people on it now, so your bots can't move there.`, "not_own");
+ if (!who.signedIn) throw tagged(t("native.home.signedOut", { name: chosen.name }), "signed_out", { status: who.status === 403 ? 403 : 401 });
+ if (who.environmentId !== chosen.environmentId) throw tagged(t("native.home.serverChanged", { name: chosen.name }), "other_server");
+ if (!who.own) throw tagged(t("native.home.otherPeople", { name: chosen.name }), "not_own");
return {
call: server.call,
upload: async (route, bytes, type) => answer(await server.request("POST", route, { headers: { "content-type": type }, body: bytes })),
@@ -103,7 +104,7 @@ function jsonStore(store) {
* to My Cloud's journal: while it is under way or done, no server of the person's own is chosen.
*/
export function installOwnHome({ localRequest, fetch: fetchImpl, environments, handoff, journal: journalStore, choice: choiceStore, sendState, cloudJournal, lend, phone, openHome, lastInput,
- version, onChange = () => {}, now = Date.now, log = () => {} }) {
+ version, onChange = () => {}, now = Date.now, log = () => {}, t = nativeText.englishText.t }) {
const journal = jsonStore(journalStore), choice = jsonStore(choiceStore);
const chosen = () => parseChoice(choice.read());
const placeOf = (picked = chosen()) => (picked ? environments().find((entry) => handSaved(entry) && entry.origin === picked.origin) ?? null : null);
@@ -114,7 +115,7 @@ export function installOwnHome({ localRequest, fetch: fetchImpl, environments, h
...(body === undefined ? {} : { headers: { "content-type": "application/json" }, body: JSON.stringify(body) }) })),
async json(route) {
const got = await local.call("GET", route);
- if (!got.ok) throw new Error("OpenMausBot on this computer did not answer. Try again in a moment.");
+ if (!got.ok) throw new Error(t("native.home.localNoAnswer"));
return got.body;
},
};
@@ -124,11 +125,12 @@ export function installOwnHome({ localRequest, fetch: fetchImpl, environments, h
origin: () => chosen()?.origin ?? null,
asleep: () => false,
read: (route) => serverRequests(chosen(), fetchImpl).request("GET", route),
- open: () => openServerSession(chosen(), fetchImpl),
+ open: () => openServerSession(chosen(), fetchImpl, t),
},
handoff,
store: jsonStore(sendState),
onChange: () => onChange(),
+ t,
});
/** The chosen server as the move sees a Cloud: always ready, never ended once home is there, since nothing ends it; until
* then, a server forgotten in this app ends the move before anything runs there. */
@@ -147,11 +149,11 @@ export function installOwnHome({ localRequest, fetch: fetchImpl, environments, h
freeze: async (origin) => freezeAnswer(await local.call("POST", "/api/move/freeze", { cloud: origin, place: chosen()?.name })),
async unfreeze(options) {
const got = await local.call("DELETE", "/api/move/freeze", options?.automations === "off" ? { automations: "off" } : undefined);
- if (!got.ok) throw Object.assign(new Error("OpenMausBot on this computer could not go on again."), { status: got.status });
+ if (!got.ok) throw Object.assign(new Error(t("native.home.localResumeFailed")), { status: got.status });
},
frozen: async () => (await local.json("/api/move/freeze"))?.frozen === true,
},
- session: () => openServerSession(chosen(), fetchImpl),
+ session: () => openServerSession(chosen(), fetchImpl, t),
...(lend ? { lend: (projects) => lend(projects, placeOf()) } : {}),
...(phone ? { phone } : {}),
openHome: () => { const place = placeOf(); if (place) openHome?.(place); },
@@ -159,6 +161,7 @@ export function installOwnHome({ localRequest, fetch: fetchImpl, environments, h
...(version ? { version } : {}),
onChange: () => onChange(),
log,
+ t,
});
/** The asks under way, one per server. */
@@ -247,13 +250,13 @@ export function installOwnHome({ localRequest, fetch: fetchImpl, environments, h
/** The person chose this server as their home: asked once more, then the move starts. */
async start(id) {
const place = environments().find((entry) => entry.id === id && handSaved(entry));
- if (!place) throw new Error("That server isn't in this app any more.");
- if (moving() || chosen()) throw new Error("Your bots are already moving.");
- if (cloudMoving()) throw new Error("Your bots are moving to My Cloud.");
+ if (!place) throw new Error(t("native.home.serverGone"));
+ if (moving() || chosen()) throw new Error(t("native.home.alreadyMoving"));
+ if (cloudMoving()) throw new Error(t("native.home.movingToCloud"));
const who = await serverRequests(place, fetchImpl).who().catch(() => null);
- if (!who?.signedIn) throw new Error(`This app isn't signed in to ${place.name}. Open ${place.name} in this app, then try again.`);
- if (!who.own) throw new Error(`${place.name} has other people on it, so your bots stay here. Only a server that's yours alone can be your bots' home.`);
- if (!who.takesMove || !who.environmentId) throw new Error(`Update OpenMausBot on ${place.name} first, then try again.`);
+ if (!who?.signedIn) throw new Error(t("native.home.signedOut", { name: place.name }));
+ if (!who.own) throw new Error(t("native.home.personalServerOnly", { name: place.name }));
+ if (!who.takesMove || !who.environmentId) throw new Error(t("native.home.updateServer", { name: place.name }));
choice.write({ v: 1, id: place.id, origin: place.origin, environmentId: who.environmentId, name: place.name, at: now() });
onChange();
void kick().catch((error) => log(`own home: ${error?.message ?? error}`));
diff --git a/electron/saved-server.d.mts b/electron/saved-server.d.mts
index ab87a3994e..a20a2552c1 100644
--- a/electron/saved-server.d.mts
+++ b/electron/saved-server.d.mts
@@ -2,5 +2,5 @@ export declare const SERVER_LOOK_MS: number;
export declare function serverAnswers(origin: string, fetchImpl: typeof fetch, timeoutMs?: number): Promise<boolean>;
export declare function serverOpens(
entry: { id: string; name: string; origin: string },
- deps: { fetch: typeof fetch; dialog: { showMessageBox(options: object): Promise<{ response: number }> }; forget: (id: string) => unknown; timeoutMs?: number },
+ deps: { fetch: typeof fetch; dialog: { showMessageBox(options: object): Promise<{ response: number }> }; forget: (id: string) => unknown; timeoutMs?: number; t?: (key: string, params?: Record<string, string | number>) => string },
): Promise<boolean>;
diff --git a/electron/saved-server.mjs b/electron/saved-server.mjs
index a267297cec..36adedb779 100644
--- a/electron/saved-server.mjs
+++ b/electron/saved-server.mjs
@@ -1,6 +1,8 @@
// A server connected by hand, before the window goes there: the window goes only to a server that answers; one that
// doesn't (its name no longer resolves, nothing listens) is the person's choice: try again, remove it, or stay.
+import nativeText from "./native-text.cjs";
+
/** How long a server has to answer before it counts as not answering. */
export const SERVER_LOOK_MS = 3_000;
@@ -22,13 +24,13 @@ export async function serverAnswers(origin, fetchImpl, timeoutMs = SERVER_LOOK_M
* @param {{ id: string, name: string, origin: string }} entry
* @param {{ fetch: typeof fetch, dialog: { showMessageBox(options: object): Promise<{ response: number }> }, forget: (id: string) => unknown, timeoutMs?: number }} deps
*/
-export async function serverOpens(entry, { fetch: fetchImpl, dialog, forget, timeoutMs = SERVER_LOOK_MS }) {
+export async function serverOpens(entry, { fetch: fetchImpl, dialog, forget, timeoutMs = SERVER_LOOK_MS, t = nativeText.englishText.t }) {
for (;;) {
if (await serverAnswers(entry.origin, fetchImpl, timeoutMs)) return true;
const { response } = await dialog.showMessageBox({
- type: "warning", buttons: ["Try again", "Remove from list", "Cancel"], defaultId: 0, cancelId: 2,
- message: `${entry.name} isn't answering`,
- detail: `Nothing answers at ${new URL(entry.origin).host}. If that server is gone for good, remove it from your list. Your bots elsewhere aren't affected.`,
+ type: "warning", buttons: [t("cloudHome.tryAgain"), t("rail.remove"), t("native.common.cancel")], defaultId: 0, cancelId: 2,
+ message: t("native.server.notAnswering", { name: entry.name }),
+ detail: t("native.server.notAnsweringDetail", { host: new URL(entry.origin).host }),
});
if (response === 1) { await forget(entry.id); return false; }
if (response !== 0) return false;
diff --git a/electron/screen-status.node-test.mjs b/electron/screen-status.node-test.mjs
index c80b00d767..ed54ca1e62 100644
--- a/electron/screen-status.node-test.mjs
+++ b/electron/screen-status.node-test.mjs
@@ -8,6 +8,7 @@ import { createLendingIndicator, indicatorText } from "./lending-indicator.mjs";
import { screenStatus } from "./screen-status.mjs";
import { askPromptWords, screenFixLabel, screenLine } from "./screen-words.mjs";
import { driverFailure } from "./cua-failure.mjs";
+import nativeText from "./native-text.cjs";
const embedded = (extra = {}) => ({
mode: "embedded", socketPath: "\\\\.\\pipe\\cua-driver-1234", mcpCommand: "C:\\Program Files\\OpenMausBot\\resources\\cua-driver.exe",
@@ -92,6 +93,24 @@ test("the app's own prompt names the bot, its Cloud, what it wants and why, and
assert.equal(askPromptWords({ bot: "Scout", need: "terminal", reason: "terminal-off" }, { cloud: "My Cloud", device: "computer" }).message, "Scout on My Cloud wants to run commands on this computer");
});
+test("screen words follow the app language, including the device and the prompt's actions", () => {
+ const text = nativeText.createNativeText({ saved: "en" });
+ const stopped = { ready: false, reason: "not-running", fix: "start" };
+ const indicator = () => indicatorText({ clouds: ["My Cloud"], using: [], paused: false, screen: stopped }, "computer", text.t);
+ assert.equal(indicator().line, "My Cloud can use this computer, but not its apps and screen");
+ text.set("pt-br");
+ assert.deepEqual(indicator(), {
+ line: "My Cloud com acesso a este computador, mas não aos apps e à tela dele", title: "", screen: "O controle de tela não está rodando neste computador",
+ });
+ assert.equal(screenFixLabel(stopped, text.t), "Iniciar o controle de tela");
+ assert.equal(screenFixLabel({ ready: false, reason: "permissions", fix: "allow" }, text.t), "Permitir o controle de tela…");
+ assert.deepEqual(askPromptWords({ bot: "Scout", need: "terminal", reason: "terminal-off" }, { cloud: "My Cloud", device: "computer", t: text.t }), {
+ message: "Scout em My Cloud quer executar comandos neste computador",
+ detail: "A execução de comandos não está ligada neste computador.",
+ buttons: ["Ligar", "Agora não"],
+ });
+});
+
test("a failed start keeps the reason Windows gave, not only the kind of failure", () => {
const spawn = Object.assign(new Error("EmbeddedDriverError.Spawn"), { tag: "Spawn", inner: { binaryPath: "C:\\x\\cua-driver-background.exe", reason: "Access is denied. (os error 5)" } });
assert.equal(driverFailure(spawn), "Spawn: binaryPath C:\\x\\cua-driver-background.exe; reason Access is denied. (os error 5)");
diff --git a/electron/screen-words.mjs b/electron/screen-words.mjs
index 9222f6985b..a3a5da9c44 100644
--- a/electron/screen-words.mjs
+++ b/electron/screen-words.mjs
@@ -1,50 +1,55 @@
// What the menu-bar or taskbar icon and this app's own prompt say when this computer's apps and screen can't be lent to
// the person's own Clouds, from computer control's state.
+import nativeText from "./native-text.cjs";
+
+const namedDevice = (device, t) => device === "computer" ? t("native.lendTray.computer") : device;
/** Why apps and screen aren't available, as one plain sentence without a full stop; null when they are. */
-export function screenLine(status, device) {
+export function screenLine(status, device, t = nativeText.englishText.t) {
if (!status || status.ready) return null;
+ const params = { device: namedDevice(device, t) };
switch (status.reason) {
- case "starting": return `Screen control is starting on this ${device}`;
- case "permissions": return "macOS hasn't allowed screen control yet";
+ case "starting": return t("native.screen.starting", params);
+ case "permissions": return t("native.screen.permissions");
case "blocked": return device === "PC"
- ? "Screen control is blocked: Windows Security may have stopped it"
- : `Screen control is blocked on this ${device}`;
- case "off": return `Screen control is off on this ${device}`;
- case "unsupported": return status.message ? status.message.replace(/\.$/, "") : `Screen control can't work on this ${device}`;
- default: return `Screen control isn't running on this ${device}`;
+ ? t("native.screen.blockedWindows")
+ : t("native.screen.blocked", params);
+ case "off": return t("native.screen.off", params);
+ case "unsupported": return status.message ? status.message.replace(/\.$/, "") : t("native.screen.unsupported", params);
+ default: return t("native.screen.notRunning", params);
}
}
/** The one action that fixes it, as a menu item or button; null when nothing here can. */
-export function screenFixLabel(status) {
+export function screenFixLabel(status, t = nativeText.englishText.t) {
if (!status || status.ready || !status.fix) return null;
- if (status.fix === "allow") return "Allow screen control…";
- return status.reason === "off" ? "Turn on screen control" : "Start screen control";
+ if (status.fix === "allow") return t("native.screen.allow");
+ return t(status.reason === "off" ? "native.screen.turnOn" : "computer.windows.start");
}
const WANTS = {
- screen: device => `use this ${device}'s apps and screen`,
- folders: device => `use the files on this ${device}`,
- terminal: device => `run commands on this ${device}`,
+ screen: "native.screen.wantScreen",
+ folders: "native.screen.wantFiles",
+ terminal: "native.screen.wantTerminal",
};
/** Why a bot's ask can't be met here now, from the reason its Cloud gives. */
-function askReason(reason, device) {
- if (reason === "paused") return `Using this ${device} is paused.`;
- if (reason === "terminal-off") return `Running commands isn't turned on for this ${device}.`;
- if (reason === "permissions") return "macOS hasn't allowed OpenMausBot to see and use the screen yet. Turn on asks macOS.";
- return `${screenLine({ ready: false, reason }, device)}.`;
+function askReason(reason, device, t) {
+ const params = { device: namedDevice(device, t) };
+ if (reason === "paused") return t("native.screen.paused", params);
+ if (reason === "terminal-off") return t("native.screen.terminalOff", params);
+ if (reason === "permissions") return t("native.screen.allowMac");
+ return `${screenLine({ ready: false, reason }, device, t)}.`;
}
/** The prompt this app shows by itself for one ask: who wants what, their words, why it can't now, and the fix. */
-export function askPromptWords(ask, { cloud, device }) {
- const want = (WANTS[ask.need] ?? WANTS.screen)(device);
+export function askPromptWords(ask, { cloud, device, t = nativeText.englishText.t }) {
+ const want = t(WANTS[ask.need] ?? WANTS.screen, { device: namedDevice(device, t) });
const why = typeof ask.why === "string" && ask.why.trim() ? `“${ask.why.trim()}”\n\n` : "";
return {
- message: `${ask.bot} on ${cloud} wants to ${want}`,
- detail: `${why}${askReason(ask.reason, device)}`,
- buttons: ["Turn on", "Not now"],
+ message: t("native.screen.askTitle", { bot: ask.bot, cloud, want }),
+ detail: `${why}${askReason(ask.reason, device, t)}`,
+ buttons: [t("mcp.turnOn"), t("native.dialog.share.notNow")],
};
}
diff --git a/electron/shared-computer-access.mjs b/electron/shared-computer-access.mjs
index 5433932203..13d9a9a7ad 100644
--- a/electron/shared-computer-access.mjs
+++ b/electron/shared-computer-access.mjs
@@ -229,7 +229,7 @@ export async function sharedCommand(command, cwd, signal, seconds = COMMAND_SECO
}
/** Persistent transport: Cua observation references survive to the next call. Ending sharing closes this, not the app's daemon. */
-export function createSharedCua(connection, { platform = process.platform } = {}) {
+export function createSharedCua(connection, { platform = process.platform, t } = {}) {
const child = spawn(connection.mcpCommand, connection.mcpArgs, {
stdio: ["pipe", "pipe", "ignore"], windowsHide: true,
env: { ...driverEnvironment(), ...connection.mcpEnv },
@@ -238,7 +238,7 @@ export function createSharedCua(connection, { platform = process.platform } = {}
const pending = new Map();
const fail = error => {
closed = true;
- const reason = child.pid === undefined ? new Error(helperMissing()) : error;
+ const reason = child.pid === undefined ? new Error(helperMissing(platform, t)) : error;
for (const item of pending.values()) item.reject(reason);
pending.clear(); child.kill();
};
diff --git a/electron/two-places-main.d.mts b/electron/two-places-main.d.mts
index 9a73ddfa0d..ddabfde2a6 100644
--- a/electron/two-places-main.d.mts
+++ b/electron/two-places-main.d.mts
@@ -7,6 +7,7 @@ export function installTwoPlacesMain(deps: {
localRequest(route: string, init?: RequestInit): Promise<Response>;
fetch: typeof fetch;
environments(): any[];
+ t?(key: string, params?: Record<string, string | number>): string;
/** My Cloud's address while it is ready, and whether it sleeps now. */
cloud(): { origin: string | null; asleep: boolean };
oneHome: { journal(): unknown; keep: { state(): { shown: boolean; on: boolean; moved: boolean }; set(on: boolean): Promise<unknown> } };
diff --git a/electron/two-places-main.mjs b/electron/two-places-main.mjs
index 83fccc366d..1b4fb75feb 100644
--- a/electron/two-places-main.mjs
+++ b/electron/two-places-main.mjs
@@ -8,6 +8,7 @@ import { awayIn, parseJournal } from "./one-home.mjs";
import { handSaved, serverRequests } from "./own-home-main.mjs";
import { teamPlaces } from "./team-places.mjs";
import { createTwoPlaces, installTwoPlaces } from "./two-places.mjs";
+import nativeText from "./native-text.cjs";
/** How often main looks whether the places changed (a server said it is the person's own, My Cloud became ready). */
const WATCH_MS = 60_000;
@@ -41,7 +42,7 @@ async function sent(response, what) {
* now (a sleeping Cloud is never asked). `account()` and `teamsRemembered`: the person's teams, read as places that have
* bots. `tell()`: the suggestion changed, so this computer's page asks again.
*/
-export function installTwoPlacesMain({ ipcMain, guard, localRequest, fetch: fetchImpl, environments, cloud, oneHome, ownHome, dismissed, account = null, teamsRemembered = null, tell, log = () => {} }) {
+export function installTwoPlacesMain({ ipcMain, guard, localRequest, fetch: fetchImpl, environments, cloud, oneHome, ownHome, dismissed, account = null, teamsRemembered = null, tell, log = () => {}, t = nativeText.englishText.t }) {
const put = (payload) => ({ method: "PUT", body: JSON.stringify(payload), signal: AbortSignal.timeout(10_000) });
const teams = account && teamsRemembered ? teamPlaces({ account, fetch: fetchImpl, remembered: teamsRemembered }) : () => [];
const places = () => {
@@ -50,9 +51,9 @@ export function installTwoPlacesMain({ ipcMain, guard, localRequest, fetch: fetc
if (mine.origin && !mine.asleep) {
const request = (route, init = {}) => fetchImpl(`${mine.origin}${route}`, { credentials: "include", cache: "no-store", redirect: "error", signal: AbortSignal.timeout(10_000), ...init,
headers: { accept: "application/json", origin: mine.origin, ...BACKGROUND_HEADERS, ...init.headers } });
- out.push({ key: `cloud:${mine.origin}`, name: "My Cloud", kind: "cloud",
+ out.push({ key: `cloud:${mine.origin}`, name: t("cloudSetup.myCloud"), kind: "cloud",
read: async () => (cloud().asleep ? null : json(await request("/api/cloud-send?move=1"))),
- tell: async (payload) => sent(await request(ROUTE, { ...put(payload), headers: { "content-type": "application/json" } }), "My Cloud"),
+ tell: async (payload) => sent(await request(ROUTE, { ...put(payload), headers: { "content-type": "application/json" } }), t("cloudSetup.myCloud")),
...(keep.on && !keep.moved ? { bring: () => oneHome.keep.set(false) } : {}) });
}
for (const place of environments().filter((entry) => handSaved(entry) && ownHome.owns(entry))) {
@@ -73,9 +74,9 @@ export function installTwoPlacesMain({ ipcMain, guard, localRequest, fetch: fetc
local: async () => (moved() ? null : json(await localRequest("/api/cloud-send?move=1", { signal: AbortSignal.timeout(10_000) }))),
here: {
name: async () => (label ??= (await json(await localRequest("/.well-known/openmausbot/environment", { signal: AbortSignal.timeout(10_000) })))?.label ?? null),
- tell: async (payload) => sent(await localRequest(ROUTE, { ...put(payload), headers: { "content-type": "application/json" } }), "This computer"),
+ tell: async (payload) => sent(await localRequest(ROUTE, { ...put(payload), headers: { "content-type": "application/json" } }), t("rail.thisComputer")),
},
- places, settled, quiet: () => !settled() && !moved(), dismissed, onChange: tell, log });
+ t, places, settled, quiet: () => !settled() && !moved(), dismissed, onChange: tell, log });
installTwoPlaces({ ipcMain, guard, twoPlaces });
let watched = "";
const watch = setInterval(() => {
diff --git a/electron/two-places.d.mts b/electron/two-places.d.mts
index 7a9244735d..11dc5ad054 100644
--- a/electron/two-places.d.mts
+++ b/electron/two-places.d.mts
@@ -13,6 +13,7 @@ export function createTwoPlaces(deps: {
/** What the person's other places call this computer, and telling it where their other bots live. */
here?: { name(): Promise<string | null>; tell(payload: unknown): Promise<unknown> } | null;
places(): TwoPlacesPlace[];
+ t?(key: string, params?: Record<string, string | number>): string;
settled(): boolean;
/** A move is under way: nothing is read or told until it is done. */
quiet?(): boolean;
diff --git a/electron/two-places.mjs b/electron/two-places.mjs
index 31584b420b..73b3f9a36d 100644
--- a/electron/two-places.mjs
+++ b/electron/two-places.mjs
@@ -7,6 +7,8 @@
// Which bots count is what the move itself would carry (each place's own move summary): a place's untouched first bot,
// which every new place has, never makes it two places.
+import nativeText from "./native-text.cjs";
+
const record = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
/** What PUT /api/places/elsewhere takes. */
const MAX_PLACES = 20;
@@ -43,7 +45,7 @@ export function parseDismissed(value) {
* one-time move there; a team has neither, it is only read. `settled()`: no move is under way or done, so this computer's bots are its own. `quiet()`: a move is
* under way, so nothing is read or told until it is done.
*/
-export function createTwoPlaces({ local, here: computer = null, places, settled, quiet = () => false, dismissed, onChange = () => {}, now = Date.now, log = () => {} }) {
+export function createTwoPlaces({ local, here: computer = null, places, settled, quiet = () => false, dismissed, onChange = () => {}, now = Date.now, log = () => {}, t = nativeText.englishText.t }) {
/** What each place had when last read: its bots by name, and when. */
const known = new Map();
/** What each place was last told, so it is told again only once that changes. */
@@ -73,7 +75,7 @@ export function createTwoPlaces({ local, here: computer = null, places, settled,
const name = computer && here?.length ? await computer.name().catch(() => null) : null;
const everyone = [...(name ? [{ key: "here", name, kind: "computer", bots: here }] : []),
...listed.filter((place) => known.get(place.key)?.bots.length).map((place) => ({ key: place.key, name: place.name, kind: place.kind, bots: known.get(place.key).bots }))];
- const receivers = [...(computer && here !== null ? [{ key: "here", name: "this computer", kind: "computer", tell: computer.tell }] : []), ...listed.filter((place) => place.tell)];
+ const receivers = [...(computer && here !== null ? [{ key: "here", name: t("computer.badge.local"), kind: "computer", tell: computer.tell }] : []), ...listed.filter((place) => place.tell)];
for (const receiver of receivers) {
const payload = { v: 1, self: { name: receiver.name, kind: receiver.kind },
places: everyone.filter((place) => place.key !== receiver.key).slice(0, MAX_PLACES).map(({ name: placeName, kind, bots }) => ({ name: placeName, kind, bots: bots.slice(0, 500) })) };
@@ -116,7 +118,7 @@ export function createTwoPlaces({ local, here: computer = null, places, settled,
bots: () => ({ here: here ?? [], places: Object.fromEntries([...known].map(([key, entry]) => [key, entry.bots])) }),
/** Not now, for good: this place is never suggested again. */
dismiss(key) {
- if (typeof key !== "string" || !KEY.test(key)) throw new Error("That isn't a place this app suggested.");
+ if (typeof key !== "string" || !KEY.test(key)) throw new Error(t("native.home.placeNotSuggested"));
const next = hidden();
next.add(key);
dismissed.write({ v: 1, keys: [...next].slice(-200) });
@@ -127,7 +129,7 @@ export function createTwoPlaces({ local, here: computer = null, places, settled,
async accept(key) {
const suggested = state().suggest;
const place = suggested?.key === key ? places().find((entry) => entry.key === key && entry.bring) : null;
- if (!place) throw new Error("Your bots can't be brought together there now.");
+ if (!place) throw new Error(t("native.home.bringUnavailable"));
await place.bring();
known.delete(key);
changed();
diff --git a/server/bot-access.test.ts b/server/bot-access.test.ts
index 37f9603903..6891eaba93 100644
--- a/server/bot-access.test.ts
+++ b/server/bot-access.test.ts
@@ -1,8 +1,12 @@
+import type { IncomingMessage } from "node:http";
+import { PassThrough } from "node:stream";
import { describe, expect, it } from "vitest";
import { accessFromVisibility, atLeast, sharedLevel, visibilityFromAccess } from "../shared/bot-access.ts";
import { accessOf, memberBot, memberLevel, parseBotAccess, VisibleSet } from "./bot-visibility.ts";
-import { levelNeeded, relayedSendRefusal, setupCardRefusal } from "./host/bot-access-gate.ts";
+import { readBody } from "./harness/http.ts";
+import { createBotAccessGate, levelNeeded, relayedSendRefusal, setupCardRefusal } from "./host/bot-access-gate.ts";
+import type { RequestAuth } from "./request-auth.ts";
import { memberBotPatchViolation } from "./request-auth.ts";
import { settledAccess } from "./routes/bot-access.ts";
import type { BotRecord } from "./store.ts";
@@ -108,6 +112,27 @@ describe("what a request needs", () => {
expect(setupCardRefusal({}, bot, level("chat"))).toBeNull();
});
+ it("keeps a view-only refusal's key and bot name on both path and parsed-body checks", async () => {
+ const bot = { id: "pay", threadId: "t-pay", visibility: { people: [BOB] }, access: { everyone: "none" as const, people: { [BOB]: "view" as const } } };
+ const visible = new VisibleSet([bot], [], { kind: "member", email: BOB }, undefined, { of: () => undefined, person: null });
+ const auth: RequestAuth = {
+ kind: "session", via: "bearer", scopes: ["client"],
+ session: { id: "bob", email: BOB, tokenHash: "0".repeat(64), label: "Bob", scopes: ["client"], createdAt: 0, lastSeenAt: 0, expiresAt: 1 },
+ };
+ const gate = createBotAccessGate({
+ botName: () => "Payroll", roomBots: () => undefined, threadOwner: () => ({ bot: "pay" }),
+ routine: () => undefined, run: () => undefined, routineWriter: () => undefined,
+ });
+ const stream = new PassThrough();
+ const req = stream as unknown as IncomingMessage;
+ const refusal = { error: "You can view Payroll, not chat with it.", errorKey: "serverError.bot.viewOnly", errorParams: { bot: "Payroll" } };
+ expect(gate(req, auth, "POST", "/api/bots/pay/messages", visible)).toEqual(refusal);
+ expect(gate(req, auth, "POST", "/api/groups", visible)).toBeNull();
+ const body = readBody(req);
+ stream.end(JSON.stringify({ memberIds: ["pay"] }));
+ await expect(body).rejects.toMatchObject({ message: refusal.error, status: 403, errorKey: refusal.errorKey, errorParams: refusal.errorParams });
+ });
+
it("relays another app's message only for someone who can chat with the bot", () => {
const bot = { name: "Payroll", visibility: { people: [BOB, CARA] }, access: { everyone: "none", people: { [BOB]: "view", [CARA]: "chat" } } };
expect(relayedSendRefusal(bot, BOB, false)).toMatch(/can't chat/);
diff --git a/server/chat-notices.test.ts b/server/chat-notices.test.ts
index 6e9aab10a3..4adf98b946 100644
--- a/server/chat-notices.test.ts
+++ b/server/chat-notices.test.ts
@@ -6,6 +6,7 @@ import { CHAT_NOTICE, failedNoticeTool, noticeTool } from "./chat-notices.ts";
import "./server-line-packs.ts";
import { serverLine } from "./server-lines.ts";
import { heldMemberLine, isHeldMemberLine } from "./room-holds.ts";
+import { stoppedLine } from "./host/person-first.ts";
describe("chat notices", () => {
it("the catalog's chat notices are exactly the ones the server writes", () => {
@@ -39,16 +40,28 @@ describe("chat notices", () => {
it.each([
["server.teammates.resumedQuestion", "Resumed with a question from Scout, reviewing", "Retomou o trabalho com uma pergunta de Scout e está revisando"],
- ["server.teammates.resumedQuestionRestart", "Resumed with a question from Scout after a restart, reviewing", "Após reiniciar, retomou o trabalho com uma pergunta de Scout e está revisando"],
+ ["server.teammates.resumedQuestionRestart", "Resumed with a question from Scout after a restart, reviewing", "Após uma reinicialização, retomou o trabalho com uma pergunta de Scout e está revisando"],
["server.teammates.resumedResults", "Resumed with Scout results, reviewing", "Retomou o trabalho com os resultados de Scout e está revisando"],
- ["server.teammates.resumedResultsRestart", "Resumed with Scout results after a restart, reviewing", "Após reiniciar, retomou o trabalho com os resultados de Scout e está revisando"],
+ ["server.teammates.resumedResultsRestart", "Resumed with Scout results after a restart, reviewing", "Após uma reinicialização, retomou o trabalho com os resultados de Scout e está revisando"],
["server.teammates.backWithResults", "Back with the work it handed on, reviewing", "Voltou com o trabalho que repassou e está revisando"],
- ["server.teammates.backWithResultsRestart", "Back with the work it handed on after a restart, reviewing", "Após reiniciar, voltou com o trabalho que repassou e está revisando"],
+ ["server.teammates.backWithResultsRestart", "Back with the work it handed on after a restart, reviewing", "Após uma reinicialização, voltou com o trabalho que repassou e está revisando"],
] as const)("words %s on the server, preserving English and Portuguese", (key, english, portuguese) => {
expect(serverLine(undefined, key, { who: "Scout" })).toBe(english);
expect(serverLine("pt-br", key, { who: "Scout" })).toBe(portuguese);
});
+ it("words the interrupted step in Portuguese without changing its English duration", () => {
+ expect(stoppedLine(45_000)).toBe("Stopped a step that had run for 45 s, to answer you first");
+ expect(stoppedLine(120_000)).toBe("Stopped a step that had run for 2 min, to answer you first");
+ expect(stoppedLine(45_000, "pt-br")).toBe("Interrompi um passo que já durava 45 s para responder a você primeiro");
+ expect(stoppedLine(120_000, "pt-br")).toBe("Interrompi um passo que já durava 2 min para responder a você primeiro");
+ });
+
+ it("words a routine hold in Portuguese on the server", () => {
+ expect(serverLine("pt-br", "server.routines.held.planCancelled"))
+ .toBe("Suas rotinas estão pausadas porque o plano foi cancelado. Para manter uma delas rodando até o fim do plano, ligue-a novamente em “Rotinas”.");
+ });
+
it("words the held line the sentinel still recognises", () => {
expect(heldMemberLine("Reviewer")).toBe("Reviewer is held (stopped by you) — @mention it or say resume");
expect(isHeldMemberLine(heldMemberLine("Reviewer", "pt-br"))).toBe(true);
diff --git a/server/chat-notices.ts b/server/chat-notices.ts
index fd51b0166a..8185d1364e 100644
--- a/server/chat-notices.ts
+++ b/server/chat-notices.ts
@@ -1,9 +1,11 @@
import { failedTurnTool, type FailedTurnTool } from "../shared/failed-turn.ts";
import { formatServerText, isReferenceParam, type ServerText, type ServerTextParams } from "../shared/server-text.ts";
import { redactParams } from "../shared/redact.ts";
+import { DRIVER_NOTICE } from "./drivers/driver-notices.ts";
/** The client translates by key and falls back to this English, which the row keeps for phones, exports and older clients. */
export const CHAT_NOTICE = {
+ ...DRIVER_NOTICE,
"chat.notice.restartInterrupted": "turn interrupted — OpenMausBot restarted",
"chat.notice.resumingAfterRestart": "Resuming after a restart",
"chat.notice.cutOffByRestart": "{name} was cut off by a restart; resuming",
@@ -129,6 +131,10 @@ export const CHAT_NOTICE = {
"chat.notice.computerNotReadyMacPermission": "OpenMausBot can't use this computer yet — {reason}. Relaunch OpenMausBot after granting the missing macOS permission.",
"chat.notice.computerSystemUnsupported": "bots can't use this computer on this system — choose another place for this bot to work",
"chat.notice.computerAiUnsupported": "this bot's AI can't use this computer — pick another AI for this bot, or choose another place for it to work",
+ "chat.notice.memoryReclaimedBrowser": "Ran out of room, so I closed the browser to keep everything else running.",
+ "chat.notice.memoryReclaimedTask": "Ran out of room, so I stopped this task to keep everything else running.",
+ "chat.notice.memoryReclaimedBrowserDetail": "Ran out of room, so I closed the browser to keep everything else running. ({detail})",
+ "chat.notice.memoryReclaimedTaskDetail": "Ran out of room, so I stopped this task to keep everything else running. ({detail})",
} as const;
export type ChatNoticeKey = keyof typeof CHAT_NOTICE;
@@ -139,7 +145,7 @@ export function chatNotice(key: ChatNoticeKey, params?: ServerTextParams): strin
return formatServerText(CHAT_NOTICE[key], words);
}
-export function noticeLine<Key extends ChatNoticeKey>(key: Key, params?: Record<string, string>) {
+export function noticeLine<Key extends ChatNoticeKey, Params extends ServerTextParams = ServerTextParams>(key: Key, params?: Params) {
const safe = params && redactParams(params);
return { text: chatNotice(key, safe), textCode: key, ...(safe ? { textParams: safe } : {}) };
}
@@ -149,12 +155,12 @@ export function runtimeNoticeTool(event: { message: string; text?: ServerText })
...(event.text ? { nameCode: event.text.key, ...(event.text.params ? { nameParams: redactParams(event.text.params) } : {}) } : {}) };
}
-export function noticeSummary(key: ChatNoticeKey, params?: Record<string, string>) {
+export function noticeSummary<Params extends ServerTextParams = ServerTextParams>(key: ChatNoticeKey, params?: Params) {
const line = noticeLine(key, params);
return { summary: line.text, summaryCode: key, ...(line.textParams ? { summaryParams: line.textParams } : {}) };
}
-export function noticeFailure(key: ChatNoticeKey, params?: Record<string, string>): { message: string; text: ServerText } {
+export function noticeFailure(key: ChatNoticeKey, params?: ServerTextParams): { message: string; text: ServerText } {
const line = noticeLine(key, params);
return { message: line.text, text: { key, ...(line.textParams ? { params: line.textParams } : {}) } };
}
diff --git a/server/drivers/acp/acp.test.ts b/server/drivers/acp/acp.test.ts
index f9ad9f74e6..5264b377c1 100644
--- a/server/drivers/acp/acp.test.ts
+++ b/server/drivers/acp/acp.test.ts
@@ -2227,6 +2227,9 @@ describe("ACP turns (fake CLI)", () => {
// The person reads the AI's name in plain words, never the internal id.
expect(message).toBe("Grok finished without replying.");
expect(message).not.toContain("grokAgent");
+ expect(recorder.events.find((e) => e.type === "runtime.error")).toMatchObject({
+ text: { key: "chat.notice.acpEmpty", params: { provider: "Grok" } },
+ });
});
// omp 18.12's ACP mode sends a provider's refusal as the reply's text and ends the turn with end_turn.
@@ -2265,6 +2268,9 @@ describe("ACP turns (fake CLI)", () => {
expect(error.limit).toBe("engine");
expect(error.limitResetsAt).toBeGreaterThanOrEqual(before + 115_636_000);
expect(error.limitResetsAt).toBeLessThanOrEqual(after + 115_636_000);
+ expect(error.text).toMatchObject({ key: "chat.notice.usageLimitResets", params: {
+ provider: "Grok", resetsAt: error.limitResetsAt, timeZone: expect.any(String),
+ } });
expect(error.message).toMatch(/^This Grok account has reached its usage limit \(Grok says: "\[1310\]\[Weekly\/Monthly Limit Exhausted"\), which resets .+\. Until then, switch this bot to another AI\.$/);
expect(error.message).not.toMatch(/rate_limit_error|retry-after-ms|request_id/);
expect(classifyError({ text: error.message }).reason).toBe("quota");
diff --git a/server/drivers/acp/core.ts b/server/drivers/acp/core.ts
index e34af06423..0bda3833dc 100644
--- a/server/drivers/acp/core.ts
+++ b/server/drivers/acp/core.ts
@@ -610,8 +610,7 @@ export function createAcpDriver(support: AcpSupport): ProviderDriver<AcpConfig>
session.current = null;
active.delete(threadId);
const end = endTurn(current, ok, stopReason, support.displayName);
- if (end.error) emit({ ...base(threadId, current.turnId), type: "runtime.error", ...end.error,
- ...(end.stopReason === "empty_turn" ? noticeFailure("chat.notice.acpEmpty", { provider: support.displayName }) : {}) });
+ if (end.error) emit({ ...base(threadId, current.turnId), type: "runtime.error", ...end.error });
emit({ ...base(threadId, current.turnId), type: "turn.completed", ok: end.ok, stopReason: end.stopReason, cost: null });
if (session.child.exitCode === null && !session.closing && !session.dead) {
armIdle(threadId);
diff --git a/server/drivers/acp/turn-state.test.ts b/server/drivers/acp/turn-state.test.ts
index 4ab8219eb0..12a6d4df66 100644
--- a/server/drivers/acp/turn-state.test.ts
+++ b/server/drivers/acp/turn-state.test.ts
@@ -25,6 +25,27 @@ function turnWith(text: string, state: { stopped?: boolean; replied?: string } =
}
describe("endTurn on a reply that is a provider's error body", () => {
+ it("keeps an empty reply's existing notice key and provider", () => {
+ const { current } = turnWith("");
+ expect(endTurn(current, true, null, "Grok")).toEqual({
+ ok: false, stopReason: "empty_turn", error: {
+ message: "Grok finished without replying.",
+ text: { key: "chat.notice.acpEmpty", params: { provider: "Grok" } },
+ },
+ });
+ });
+
+ it("keeps the semantic reset facts when a provider's error body ends the turn", () => {
+ const { current, replies } = turnWith('429 {"error":{"message":"usage limit"}} retry-after-ms=300000');
+ expect(endTurn(current, true, null, "Grok")).toMatchObject({
+ ok: false, stopReason: "quota", error: {
+ text: { key: "chat.notice.usageLimitResets", params: { provider: "Grok", resetsAt: expect.any(Number), timeZone: expect.any(String) } },
+ limit: "engine", limitResetsAt: expect.any(Number),
+ },
+ });
+ expect(replies).toEqual([]);
+ });
+
it("after the person's Stop, ends the turn as stopped and keeps what was said", () => {
const { current, replies } = turnWith(ERROR_BODY, { stopped: true });
expect(endTurn(current, true, null, "omp")).toEqual({ ok: true, stopReason: "cancelled" });
diff --git a/server/drivers/acp/turn-state.ts b/server/drivers/acp/turn-state.ts
index a49461819e..bccfc15362 100644
--- a/server/drivers/acp/turn-state.ts
+++ b/server/drivers/acp/turn-state.ts
@@ -2,6 +2,7 @@
// sessions) and the turn running in it.
import type { RequestOutcome, SendTurnInput } from "../../contracts.ts";
import type { spawnCli } from "../../procs.ts";
+import { noticeFailure } from "../../chat-notices.ts";
import { errorReplyFailure, type ErrorReplyFailure } from "../engine-errors.ts";
import type { AcpConfig } from "./core.ts";
import type { AcpHost, AcpLink } from "./host.ts";
@@ -90,6 +91,6 @@ export function endTurn(current: AcpTurn, ok: boolean, stopReason: string | null
const { stopReason: failed, ...error } = errorReply;
return { ok: false, stopReason: failed, error };
}
- if (ended && !current.state.producedItem) return { ok: false, stopReason: "empty_turn", error: { message: `${ai} finished without replying.` } };
+ if (ended && !current.state.producedItem) return { ok: false, stopReason: "empty_turn", error: noticeFailure("chat.notice.acpEmpty", { provider: ai }) };
return { ok, stopReason };
}
diff --git a/server/drivers/claude-elicitation.test.ts b/server/drivers/claude-elicitation.test.ts
index 0d89dee539..68a87a0b40 100644
--- a/server/drivers/claude-elicitation.test.ts
+++ b/server/drivers/claude-elicitation.test.ts
@@ -57,14 +57,16 @@ describe("claudeElicitations", () => {
const { elicit, written, events } = harness();
expect(elicit.frame(ask("e4", { requested_schema: { type: "object", properties: { token: { type: "string" } } } }))).toBe(true);
expect(written).toEqual([sent("e4", { action: "decline" })]);
- expect(events).toEqual([{ type: "runtime.notice", message: expect.stringContaining("github asked you to fill in a field") }]);
+ expect(events).toEqual([{ type: "runtime.notice", message: 'github asked you to fill in a field ("Allow access to your repos?"). OpenMausBot can\'t show that form yet, so the request was declined.',
+ text: { key: "chat.notice.elicitationFormDeclinedOneMessage", params: { server: "github", message: "Allow access to your repos?" } } }]);
});
it("declines a form whose required fields are not listed as properties", async () => {
const { elicit, written, events } = harness();
expect(elicit.frame(ask("e4b", { requested_schema: { type: "object", properties: {}, required: ["token"] } }))).toBe(true);
expect(written).toEqual([sent("e4b", { action: "decline" })]);
- expect(events).toEqual([{ type: "runtime.notice", message: expect.stringContaining("github asked you to fill in a field") }]);
+ expect(events).toEqual([{ type: "runtime.notice", message: 'github asked you to fill in a field ("Allow access to your repos?"). OpenMausBot can\'t show that form yet, so the request was declined.',
+ text: { key: "chat.notice.elicitationFormDeclinedOneMessage", params: { server: "github", message: "Allow access to your repos?" } } }]);
});
it("declines a link request and passes on only a web link", async () => {
@@ -73,9 +75,44 @@ describe("claudeElicitations", () => {
elicit.frame(ask("e6", { mode: "url", url: "javascript:alert(1)" }));
elicit.frame(ask("e6b", { mode: "url", url: "http://example.com/auth" }));
expect(written).toEqual([sent("e5", { action: "decline" }), sent("e6", { action: "decline" }), sent("e6b", { action: "decline" })]);
- expect(events[0].message).toContain(": https://example.com/auth.");
+ expect(events[0].message).toBe("github asked you to open a link to continue: https://example.com/auth. OpenMausBot can't open it from here, so the request was declined. Open the link yourself, then ask the bot to try again.");
+ expect(events[0].text).toEqual({ key: "chat.notice.elicitationUrlDeclinedWithUrl", params: { server: "github", url: "https://example.com/auth" } });
expect(events[1].message).not.toContain("javascript:");
expect(events[2].message).not.toContain("http://");
+ expect(events[1].text).toEqual({ key: "chat.notice.elicitationUrlDeclined", params: { server: "github" } });
+ expect(events[2].text).toEqual(events[1].text);
+ });
+
+ it.each([
+ ["github", "", "chat.notice.elicitationContinue", { server: "github" }, "github asks to continue"],
+ ["", "", "chat.notice.elicitationContinueGeneric", undefined, "An MCP server asks to continue"],
+ ["", "External words", "chat.notice.elicitationMessageGeneric", { message: "External words" }, "An MCP server: External words"],
+ ])("codes the app-owned confirmation words for %s / %s", (server, message, key, params, summary) => {
+ const { elicit, events } = harness();
+ elicit.frame(ask("confirmation", { mcp_server_name: server, message }));
+ expect(events[0]).toMatchObject({ summary, summaryCode: key });
+ expect(events[0].summaryParams).toEqual(params);
+ });
+
+ it.each([false, true])("keeps the generic server out of raw params in URL notices (%s)", (withUrl) => {
+ const { elicit, events } = harness();
+ elicit.frame(ask("url", { mcp_server_name: "", mode: "url", url: withUrl ? "https://example.com" : "http://example.com" }));
+ expect(events[0].message).toBe(`An MCP server asked you to open a link to continue${withUrl ? ": https://example.com" : ""}. OpenMausBot can't open it from here, so the request was declined. Open the link yourself, then ask the bot to try again.`);
+ expect(events[0].text).toEqual({ key: `chat.notice.elicitationUrlDeclinedGeneric${withUrl ? "WithUrl" : ""}`, params: withUrl ? { url: "https://example.com" } : {} });
+ });
+
+ it.each([1, 2])("codes named and generic forms with %i fields and preserves external words", (fields) => {
+ for (const server of ["", "External name"]) {
+ for (const message of ["", "External message"]) {
+ const { elicit, events } = harness();
+ elicit.frame(ask("form", { display_name: server, mcp_server_name: "", message,
+ requested_schema: { properties: Object.fromEntries(Array.from({ length: fields }, (_, i) => [`field${i}`, { type: "string" }])) } }));
+ expect(events[0].message).toBe(`${server || "An MCP server"} asked you to fill in ${fields === 1 ? "a field" : `${fields} fields`}${message ? ` ("${message}")` : ""}. OpenMausBot can't show that form yet, so the request was declined.`);
+ expect(events[0].text).toEqual({ key: `chat.notice.elicitationFormDeclined${server ? "" : "Generic"}${fields === 1 ? "One" : "Many"}${message ? "Message" : ""}`, params: {
+ ...(server ? { server } : {}), ...(fields === 1 ? {} : { fields }), ...(message ? { message } : {}),
+ } });
+ }
+ }
});
it("withdraws every open card when the session closes", async () => {
diff --git a/server/drivers/claude-elicitation.ts b/server/drivers/claude-elicitation.ts
index d8da6fe1ad..e7097f95c8 100644
--- a/server/drivers/claude-elicitation.ts
+++ b/server/drivers/claude-elicitation.ts
@@ -4,6 +4,8 @@
// Unanswered, the tool call failed "No response to elicitation prompt within the allowed time". A plain confirmation
// becomes an approval card; a form with fields or a link to open is declined at once with a note in the chat.
import type { RuntimeEvent } from "../../shared/runtime-events.ts";
+import { noticeFailure, noticeSummary } from "../chat-notices.ts";
+import type { DRIVER_NOTICE } from "./driver-notices.ts";
type Body<T> = T extends unknown ? Omit<T, "threadId" | "turnId" | "provider" | "providerInstanceId" | "createdAt" | "eventId"> : never;
type ElicitationEvent = Body<Extract<RuntimeEvent, { type: "request.opened" | "request.resolved" | "runtime.notice" }>>;
@@ -38,7 +40,7 @@ export function claudeElicitations(write: (frame: unknown) => Promise<boolean>,
const id: string = o.request_id;
const r = o.request;
const serverName = text(r.mcp_server_name);
- const server = text(r.display_name) || serverName || "An MCP server";
+ const server = text(r.display_name) || serverName;
const message = text(r.message);
const properties = r.requested_schema?.properties;
const required = r.requested_schema?.required;
@@ -50,21 +52,32 @@ export function claudeElicitations(write: (frame: unknown) => Promise<boolean>,
if (r.mode === "url" || fields > 0) {
void reply(id, { action: "decline" });
const url = text(r.url);
+ const withUrl = /^https:\/\//i.test(url);
+ const key: keyof typeof DRIVER_NOTICE = r.mode === "url"
+ ? `chat.notice.elicitationUrlDeclined${server ? "" : "Generic"}${withUrl ? "WithUrl" : ""}`
+ : `chat.notice.elicitationFormDeclined${server ? "" : "Generic"}${fields === 1 ? "One" : "Many"}${message ? "Message" : ""}`;
emit({
type: "runtime.notice",
- message: r.mode === "url"
- ? `${server} asked you to open a link to continue${/^https:\/\//i.test(url) ? `: ${url}` : ""}. OpenMausBot can't open it from here, so the request was declined. Open the link yourself, then ask the bot to try again.`
- : `${server} asked you to fill in ${fields === 1 ? "a field" : `${fields} fields`}${message ? ` ("${message}")` : ""}. OpenMausBot can't show that form yet, so the request was declined.`,
+ ...noticeFailure(key, {
+ ...(server ? { server } : {}),
+ ...(r.mode === "url" ? withUrl ? { url } : {} : {
+ ...(fields === 1 ? {} : { fields }),
+ ...(message ? { message } : {}),
+ }),
+ }),
});
return true;
}
pending.add(id);
+ const summary = message
+ ? server ? { summary: `${server}: ${message}` } : noticeSummary("chat.notice.elicitationMessageGeneric", { message })
+ : server ? noticeSummary("chat.notice.elicitationContinue", { server }) : noticeSummary("chat.notice.elicitationContinueGeneric");
emit({
type: "request.opened",
requestId: CARD_PREFIX + id,
requestType: "permission",
tool: serverName ? `mcp__${serverName}` : "mcp",
- summary: message ? `${server}: ${message}` : `${server} asks to continue`,
+ ...summary,
// The server asks, not a tool: Auto mode and remembered tool grants never answer it.
requiresExplicitApproval: true,
});
diff --git a/server/drivers/codex-action-notice.ts b/server/drivers/codex-action-notice.ts
index 86ffe41372..674baa0128 100644
--- a/server/drivers/codex-action-notice.ts
+++ b/server/drivers/codex-action-notice.ts
@@ -1,5 +1,6 @@
+import type { ServerText } from "../../shared/server-text.ts";
import { noticeFailure } from "../chat-notices.ts";
-export function codexActionFailure(message: string, mayHaveRun: boolean) {
- return mayHaveRun ? noticeFailure("chat.notice.codexActionMayHaveRun", { message }) : { message };
+export function codexActionFailure(message: string, mayHaveRun: boolean, text?: ServerText) {
+ return mayHaveRun ? noticeFailure("chat.notice.codexActionMayHaveRun", { message }) : { message, ...(text ? { text } : {}) };
}
diff --git a/server/drivers/codex-app-approval.test.ts b/server/drivers/codex-app-approval.test.ts
new file mode 100644
index 0000000000..5a09fdc9be
--- /dev/null
+++ b/server/drivers/codex-app-approval.test.ts
@@ -0,0 +1,25 @@
+import { describe, expect, it } from "vitest";
+
+import { mcpAppApprovalForm } from "./codex-app-approval.ts";
+
+const request = (message?: unknown) => ({
+ mode: "form", message, _meta: { app_name: "Safari" },
+ requestedSchema: { properties: { approval: { enum: ["once"] } }, required: ["approval"] },
+});
+
+describe("MCP app-access summary", () => {
+ it.each([undefined, "", "\n", "x".repeat(161)])("codes only its own fallback for %j", (message) => {
+ expect(mcpAppApprovalForm(request(message))).toEqual({
+ tool: "Safari", summary: "App access requested", summaryCode: "chat.notice.appAccessRequested",
+ allowResult: { action: "accept", content: { approval: "once" } },
+ });
+ });
+
+ it("leaves a provider's message and inferred app name as data", () => {
+ const form = request("Allow ChatGPT to use Safari?");
+ expect(mcpAppApprovalForm({ ...form, _meta: {} })).toEqual({
+ tool: "Safari", summary: "Allow ChatGPT to use Safari?",
+ allowResult: { action: "accept", content: { approval: "once" } },
+ });
+ });
+});
diff --git a/server/drivers/codex-app-approval.ts b/server/drivers/codex-app-approval.ts
index 8fc6ddcd1e..50b194c00c 100644
--- a/server/drivers/codex-app-approval.ts
+++ b/server/drivers/codex-app-approval.ts
@@ -1,6 +1,9 @@
// The MCP app-access approval forms Codex asks for, moved out of codex.ts (file-size ratchet).
-export type McpApprovalForm = {
+import type { ServerToolText } from "../../shared/server-text.ts";
+import { noticeFailure, noticeSummary } from "../chat-notices.ts";
+
+export type McpApprovalForm = ServerToolText & {
tool: string;
summary: string;
allowResult: { action: "accept"; content: Record<string, string> };
@@ -25,6 +28,15 @@ export function boundedLabel(value: unknown): string | null {
return label && label.length <= 160 && !containsControlCharacter(label) ? label : null;
}
+export function mcpElicitationDeclined(value: unknown) {
+ const server = boundedLabel(value);
+ return server ? noticeFailure("chat.notice.codexElicitationDeclined", { server }) : noticeFailure("chat.notice.codexElicitationDeclinedGeneric");
+}
+
+export function mcpAppApprovalText(form: McpApprovalForm | null): ServerToolText {
+ return form?.summaryCode ? { summaryCode: form.summaryCode, ...(form.summaryParams ? { summaryParams: form.summaryParams } : {}) } : {};
+}
+
function ordinaryApprovalValue(value: string): boolean {
const normalized = value.trim().toLowerCase();
if (/session|always|permanent|forever|persistent/.test(normalized)) return false;
@@ -39,7 +51,8 @@ export function mcpAppApprovalForm(params: unknown): McpApprovalForm | null {
const metadata = plainRecord(request._meta);
const target = plainRecord(metadata?.target);
const toolParams = plainRecord(metadata?.tool_params);
- const message = boundedLabel(request.message) ?? "App access requested";
+ const message = boundedLabel(request.message);
+ const summary = message ? { summary: message } : noticeSummary("chat.notice.appAccessRequested");
const appName = [
metadata?.app_name,
metadata?.appName,
@@ -50,7 +63,7 @@ export function mcpAppApprovalForm(params: unknown): McpApprovalForm | null {
toolParams?.app,
metadata?.connector_name,
metadata?.connectorName,
- ].map(boundedLabel).find(Boolean) ?? message.match(/^Allow ChatGPT to use (.+?)\?$/i)?.[1]?.trim();
+ ].map(boundedLabel).find(Boolean) ?? message?.match(/^Allow ChatGPT to use (.+?)\?$/i)?.[1]?.trim();
if (!appName) return null;
const schema = plainRecord(request.requestedSchema);
@@ -82,5 +95,5 @@ export function mcpAppApprovalForm(params: unknown): McpApprovalForm | null {
}
const tool = boundedLabel(appName) ?? boundedLabel(request.serverName) ?? "app_access";
- return { tool, summary: message, allowResult: { action: "accept", content } };
+ return { tool, ...summary, allowResult: { action: "accept", content } };
}
diff --git a/server/drivers/codex-errors.ts b/server/drivers/codex-errors.ts
index 5a02255679..ac5543a504 100644
--- a/server/drivers/codex-errors.ts
+++ b/server/drivers/codex-errors.ts
@@ -2,6 +2,8 @@ import { cloudHomeConfigured } from "../cloud-home.ts";
import { hostTimeZone } from "../turn-clock.ts";
import { USAGE_LIMIT } from "./retry.ts";
import { CODEX_USAGE_LIMIT_REACHED } from "../../shared/codex-usage-limit.ts";
+import type { ServerText } from "../../shared/server-text.ts";
+import { noticeFailure } from "../chat-notices.ts";
/** How a Codex turn reaches OpenAI: OpenMausBot's ChatGPT plan, Codex's own sign-in, or any other provider. */
export type CodexRoute = "plan" | "own" | "other";
@@ -69,10 +71,14 @@ export function codexPlanModelRefused(value: string, route: CodexRoute): boolean
return route === "plan" && PLAN_MODEL_REFUSED.test(value);
}
+export function codexUserFailure(value: string, route: CodexRoute, codexErrorInfo?: unknown): { message: string; text?: ServerText } {
+ return codexPlanModelRefused(value, route)
+ ? noticeFailure("chat.notice.codexModelUnavailable")
+ : { message: codexUserError(value, route, codexErrorInfo) };
+}
+
export function codexUserError(value: string, route: CodexRoute, codexErrorInfo?: unknown): string {
- if (codexPlanModelRefused(value, route)) {
- return "This model isn't available on your ChatGPT plan, so it's now hidden from this account's model list. Pick another model.";
- }
+ if (codexPlanModelRefused(value, route)) return noticeFailure("chat.notice.codexModelUnavailable").message;
if (route === "plan" && value.includes("subscription_sharing_usage_limit_exceeded")) {
return "subscription_sharing_usage_limit_exceeded: Your ChatGPT plan usage limit was reached. Manage usage in ChatGPT Settings, or explicitly choose another provider.";
}
diff --git a/server/drivers/codex.test.ts b/server/drivers/codex.test.ts
index 3f37f0cfb0..225e82ea6f 100644
--- a/server/drivers/codex.test.ts
+++ b/server/drivers/codex.test.ts
@@ -1411,7 +1411,10 @@ process.stdout.write(JSON.stringify({jsonrpc:'2.0',id:m.id,result})+'\\n');});`)
await recorder.until((event) => event.type === "turn.completed" && event.turnId === first.turnId);
const errors = recorder.events.filter((event) => event.type === "runtime.error" && event.turnId === first.turnId);
expect(errors).toHaveLength(1);
- expect((errors[0] as { message: string }).message).toContain("isn't available on your ChatGPT plan");
+ expect(errors[0]).toMatchObject({
+ message: "This model isn't available on your ChatGPT plan, so it's now hidden from this account's model list. Pick another model.",
+ text: { key: "chat.notice.codexModelUnavailable" },
+ });
expect(refuse).toHaveBeenCalledExactlyOnceWith("gpt-6.1-sol");
const dump = join(scratch, "plan-refused.json");
process.env.FAKE_CODEX_DUMP = dump;
@@ -2704,6 +2707,30 @@ process.stdout.write(JSON.stringify({jsonrpc:'2.0',id:m.id,result})+'\\n');});`)
});
});
+ it("carries the app-access fallback code to the approval card", async () => {
+ process.env.FAKE_CODEX_APPROVAL_REQUEST = JSON.stringify({ method: "mcpServer/elicitation/request", params: {
+ mode: "form", _meta: { app_name: "Safari" },
+ requestedSchema: { properties: { approval: { enum: ["once"] } }, required: ["approval"] },
+ } });
+ await create({ mode: "approval" });
+ await instance.adapter.sendTurn({ threadId: "t-app-fallback", text: "use Safari" });
+ const opened = await recorder.until((event) => event.type === "request.opened");
+ expect(opened).toMatchObject({ summary: "App access requested", summaryCode: "chat.notice.appAccessRequested" });
+ await instance.adapter.respondToRequest("t-app-fallback", opened.requestId!, { behavior: "deny" });
+ await recorder.until((event) => event.type === "turn.completed");
+ });
+
+ it("codes a declined generic MCP elicitation without an English server-name param", async () => {
+ process.env.FAKE_CODEX_APPROVAL_REQUEST = JSON.stringify({ method: "mcpServer/elicitation/request", params: { mode: "url" } });
+ await create({ mode: "approval" });
+ await instance.adapter.sendTurn({ threadId: "t-generic-elicitation", text: "go" });
+ await recorder.until((event) => event.type === "turn.completed");
+ expect(recorder.events.find((event) => event.type === "runtime.notice")).toMatchObject({
+ message: "An MCP server asked for input OpenMausBot can't show yet, so the request was declined.",
+ text: { key: "chat.notice.codexElicitationDeclinedGeneric" },
+ });
+ });
+
it("auto-approves a schema-backed app-access form only once in Full access", async () => {
await create({ mode: "mcp-app-approval" });
const dump = join(scratch, "mcp-app-full.json");
@@ -2737,7 +2764,10 @@ process.stdout.write(JSON.stringify({jsonrpc:'2.0',id:m.id,result})+'\\n');});`)
expect(recorder.events.some((event) => event.type === "request.opened")).toBe(false);
expect(JSON.parse(readFileSync(dump, "utf8")).decision).toEqual({ action: "decline" });
- expect(recorder.events.find((event) => event.type === "runtime.notice")?.message).toBe("example asked for input OpenMausBot can't show yet, so the request was declined.");
+ expect(recorder.events.find((event) => event.type === "runtime.notice")).toMatchObject({
+ message: "example asked for input OpenMausBot can't show yet, so the request was declined.",
+ text: { key: "chat.notice.codexElicitationDeclined", params: { server: "example" } },
+ });
});
it("grants Codex additional permissions with their native response shape", async () => {
diff --git a/server/drivers/codex.ts b/server/drivers/codex.ts
index e1fcc6cfa4..7d6ea583c2 100644
--- a/server/drivers/codex.ts
+++ b/server/drivers/codex.ts
@@ -48,8 +48,8 @@ import { volatileContextNote, withContextNote } from "./prompt-split.ts";
import type { ApprovalMode } from "../../shared/approval-mode.ts";
import { CodexDeviceAuthController } from "./codex-device-auth.ts";
import { codexAccountEmail, codexHome } from "./codex-identity.ts";
-import { boundedLabel, containsControlCharacter, mcpAppApprovalForm, plainRecord } from "./codex-app-approval.ts";
-import { archivedNativeCodexThread, CODEX_MISSING_CREDENTIALS, CODEX_SIGN_IN_EXPIRED, codexLimitFacts, codexNotSignedIn, CodexRpcError, codexSignInExpired, codexPlanModelRefused, codexSignInRefused, codexUserError, missingNativeCodexThread, type CodexRoute } from "./codex-errors.ts";
+import { containsControlCharacter, mcpAppApprovalForm, mcpAppApprovalText, mcpElicitationDeclined, plainRecord } from "./codex-app-approval.ts";
+import { archivedNativeCodexThread, CODEX_MISSING_CREDENTIALS, CODEX_SIGN_IN_EXPIRED, codexLimitFacts, codexNotSignedIn, CodexRpcError, codexSignInExpired, codexPlanModelRefused, codexSignInRefused, codexUserError, codexUserFailure, missingNativeCodexThread, type CodexRoute } from "./codex-errors.ts";
import { codexLoginCheck, codexLoginStatus, storedCodexLogin } from "./codex-login.ts";
import { keyRejected, noteKeyAccepted, noteKeyRejected } from "../key-rejections.ts";
import { classifyResumeFailure, mayReplay, rebuiltSessionNotice, recoveryPromptFor } from "../resume-recovery.ts";
@@ -899,7 +899,7 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
if (!isQuestion && !isPermission) {
if (isMcpElicitation) {
send({ jsonrpc: "2.0", id: msg.id, result: { action: "decline" } });
- emit({ ...base(threadId, turnId), type: "runtime.notice", message: `${boundedLabel(params.serverName) ?? "An MCP server"} asked for input OpenMausBot can't show yet, so the request was declined.` });
+ emit({ ...base(threadId, turnId), type: "runtime.notice", ...mcpElicitationDeclined(params.serverName) });
} else {
send({
jsonrpc: "2.0",
@@ -1004,6 +1004,7 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
requestType: isQuestion ? "question" : "permission",
tool,
summary,
+ ...mcpAppApprovalText(mcpAppApproval),
...shellRequest(shell, params.cwd ?? (
!params.threadId || params.threadId === codexThreadId ? commandCwd : undefined
)),
@@ -1053,13 +1054,13 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
(state.authRecovery && !/\b403\b|forbidden/i.test(raw) && /\b401\b|unauthorized/i.test(raw)));
if (retryLoginRace(raw, refused)) return;
if (refused) loginRefused();
- const message = refused ? codexSignInExpired(raw) : codexUserError(raw, route, error.codexErrorInfo);
+ const reported: ReturnType<typeof codexUserFailure> = refused ? { message: codexSignInExpired(raw) } : codexUserFailure(raw, route, error.codexErrorInfo);
const setup = refused || classifyError({ text: raw }).reason === "auth";
- if (message === state.lastError && (state.lastErrorSetup || !setup)) return;
- state.lastError = message;
+ if (reported.message === state.lastError && (state.lastErrorSetup || !setup)) return;
+ state.lastError = reported.message;
state.lastErrorSetup ||= setup;
hideRefusedModel(raw);
- emit({ ...base(threadId, turnId), type: "runtime.error", message, ...(setup ? { setup: true } : {}), ...codexLimitFacts(raw, route, error.codexErrorInfo) });
+ emit({ ...base(threadId, turnId), type: "runtime.error", ...reported, ...(setup ? { setup: true } : {}), ...codexLimitFacts(raw, route, error.codexErrorInfo) });
};
const handleNotification = (msg: any) => {
const p = msg.params ?? {};
@@ -1555,17 +1556,17 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
const raw = e instanceof Error ? e.message : String(e);
const refused = chatgptTurn && loginMark() !== null && codexSignInRefused({ message: raw });
hideRefusedModel(raw);
- const message = refused ? codexSignInExpired(raw) : codexUserError(raw, route);
+ const reported: ReturnType<typeof codexUserFailure> = refused ? { message: codexSignInExpired(raw) } : codexUserFailure(raw, route);
const needsAuth = refused || /(?:\b401\b|unauthorized|missing bearer|authentication required)/i.test(raw);
const verdict = classifyError(failure);
if (!state.settled && !abandoned && !recoveredMissingSession && !stopRequested && !needsAuth && codexTurnId === null && earlyNotifications.length === 0 && verdict.transient && attempt < RETRY_MAX_ATTEMPTS - 1 && state.sawStreamDelta === false) {
- return relaunch(verdict.reason, message, "rpc_error");
+ return relaunch(verdict.reason, reported.message, "rpc_error");
}
if (!state.settled && !abandoned) {
if (refused) loginRefused();
emit({
...base(threadId, turnId), type: "runtime.error",
- ...codexActionFailure(message, earlyNotifications.some((event) => ["commandExecution", "fileChange", "mcpToolCall", "webSearch"].includes(event.params?.item?.type))),
+ ...codexActionFailure(reported.message, earlyNotifications.some((event) => ["commandExecution", "fileChange", "mcpToolCall", "webSearch"].includes(event.params?.item?.type)), reported.text),
...(needsAuth ? { setup: true } : codexLimitFacts(raw, route)),
});
await settle(false, needsAuth ? "auth_required" : verdict.reason === "provider_safety" ? "provider_safety" : "rpc_error");
diff --git a/server/drivers/driver-notices.ts b/server/drivers/driver-notices.ts
new file mode 100644
index 0000000000..0352d6d795
--- /dev/null
+++ b/server/drivers/driver-notices.ts
@@ -0,0 +1,22 @@
+export const DRIVER_NOTICE = {
+ "chat.notice.elicitationUrlDeclined": "{server} asked you to open a link to continue. OpenMausBot can't open it from here, so the request was declined. Open the link yourself, then ask the bot to try again.",
+ "chat.notice.elicitationUrlDeclinedWithUrl": "{server} asked you to open a link to continue: {url}. OpenMausBot can't open it from here, so the request was declined. Open the link yourself, then ask the bot to try again.",
+ "chat.notice.elicitationUrlDeclinedGeneric": "An MCP server asked you to open a link to continue. OpenMausBot can't open it from here, so the request was declined. Open the link yourself, then ask the bot to try again.",
+ "chat.notice.elicitationUrlDeclinedGenericWithUrl": "An MCP server asked you to open a link to continue: {url}. OpenMausBot can't open it from here, so the request was declined. Open the link yourself, then ask the bot to try again.",
+ "chat.notice.elicitationFormDeclinedOne": "{server} asked you to fill in a field. OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedMany": "{server} asked you to fill in {fields} fields. OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedOneMessage": "{server} asked you to fill in a field (\"{message}\"). OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedManyMessage": "{server} asked you to fill in {fields} fields (\"{message}\"). OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedGenericOne": "An MCP server asked you to fill in a field. OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedGenericMany": "An MCP server asked you to fill in {fields} fields. OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedGenericOneMessage": "An MCP server asked you to fill in a field (\"{message}\"). OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedGenericManyMessage": "An MCP server asked you to fill in {fields} fields (\"{message}\"). OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationContinue": "{server} asks to continue",
+ "chat.notice.elicitationContinueGeneric": "An MCP server asks to continue",
+ "chat.notice.elicitationMessageGeneric": "An MCP server: {message}",
+ "chat.notice.appAccessRequested": "App access requested",
+ "chat.notice.codexModelUnavailable": "This model isn't available on your ChatGPT plan, so it's now hidden from this account's model list. Pick another model.",
+ "chat.notice.codexElicitationDeclined": "{server} asked for input OpenMausBot can't show yet, so the request was declined.",
+ "chat.notice.codexElicitationDeclinedGeneric": "An MCP server asked for input OpenMausBot can't show yet, so the request was declined.",
+ "chat.notice.usageLimitResets": "This {provider} account has reached its usage limit{detail}, which resets {resets}. Until then, switch this bot to another AI.",
+} as const;
diff --git a/server/drivers/engine-errors.test.ts b/server/drivers/engine-errors.test.ts
index bbaad2bf44..bcbc9ad8f7 100644
--- a/server/drivers/engine-errors.test.ts
+++ b/server/drivers/engine-errors.test.ts
@@ -114,6 +114,10 @@ describe("errorReplyFailure", () => {
const reply = `${anthropic(429, "rate_limit_error", "[1308][Usage limit reached for 5 hour. Your limit will reset at 2026-10-27 15:22:19][2026]")} retry-after-ms=4171000`;
expect(errorReplyFailure("omp", reply, NOW, "UTC")).toEqual({
message: 'This omp account has reached its usage limit (omp says: "[1308][Usage limit reached for 5 hour"), which resets Oct 27, 7:22 AM (UTC). Until then, switch this bot to another AI.',
+ text: { key: "chat.notice.usageLimitResets", params: {
+ provider: "omp", detail: ' (omp says: "[1308][Usage limit reached for 5 hour")',
+ resetsAt: NOW + 4_171_000, timeZone: "UTC", resets: "Oct 27, 7:22 AM (UTC)",
+ } },
stopReason: "quota",
limit: "engine",
limitResetsAt: NOW + 4_171_000,
@@ -218,6 +222,19 @@ describe("stopCause", () => {
});
describe("engineFailure", () => {
+ it("carries the reset instant and zone for the reader's language, with the same English fallback", () => {
+ const resetsAt = Date.UTC(2026, 9, 27, 7, 22);
+ const failure = engineFailure("Grok", "usage limit", { resetsAt, timeZone: "UTC" })!;
+ expect(failure.message).toBe('This Grok account has reached its usage limit (Grok says: "usage limit"), which resets Oct 27, 7:22 AM (UTC). Until then, switch this bot to another AI.');
+ expect(failure.text).toEqual({ key: "chat.notice.usageLimitResets", params: {
+ provider: "Grok", detail: ' (Grok says: "usage limit")', resetsAt, timeZone: "UTC", resets: "Oct 27, 7:22 AM (UTC)",
+ } });
+ const unknownZone = engineFailure("Grok", "usage limit", { resetsAt, timeZone: "not-a-zone" })!;
+ expect(unknownZone.message).toContain("2026-10-27 07:22 UTC");
+ expect(unknownZone.text?.params).toMatchObject({ resetsAt, timeZone: "UTC" });
+ expect(classifyError({ text: failure.message })).toEqual({ transient: false, reason: "quota" });
+ });
+
it("names a usage limit by its catalog key, its provider's quoted words kept raw", () => {
const failure = engineFailure("Grok", "Internal error: API error (status 429): You have reached your usage limit for this month (session/prompt)", { kind: "usage_limit" });
expect(failure?.text?.key).toBe("chat.notice.usageLimit");
diff --git a/server/drivers/engine-errors.ts b/server/drivers/engine-errors.ts
index 0bbc585cb1..30366337cd 100644
--- a/server/drivers/engine-errors.ts
+++ b/server/drivers/engine-errors.ts
@@ -105,8 +105,13 @@ export function engineFailure(
const detail = (...parts: Array<string | null>) => parts.some(Boolean) ? ` (${parts.filter(Boolean).join("; ")})` : "";
const code = http ? `HTTP ${http}` : null;
if (what === "usage_limit") {
- if (resetsAt) return { message: `This ${provider} account has reached its usage limit${detail(says)}, which resets ${limitResetTime(resetsAt, timeZone)}. Until then, switch this bot to another AI.` };
const params = { provider, detail: detail(says) };
+ if (resetsAt) {
+ let zone = timeZone ?? hostTimeZone();
+ try { new Intl.DateTimeFormat("en-US", { timeZone: zone }); } catch { zone = "UTC"; }
+ const resets = limitResetTime(resetsAt, timeZone);
+ return noticeFailure("chat.notice.usageLimitResets", { ...params, resetsAt, timeZone: zone, resets });
+ }
return { message: chatNotice("chat.notice.usageLimit", params), text: { key: "chat.notice.usageLimit", params } };
}
switch (what) {
@@ -154,6 +159,7 @@ function isErrorBody(body: string): boolean {
export interface ErrorReplyFailure {
message: string;
+ text?: ServerText;
stopReason: "quota" | "auth_required" | "rpc_error";
setup?: true;
limit?: "engine";
@@ -172,10 +178,10 @@ export function errorReplyFailure(provider: string, text: string, now = Date.now
const said = engineFailureKind(body, status);
const kind = said !== "credits" && usageLimitWait(status, waitMs) ? "usage_limit" : said;
const resetsAt = kind === "usage_limit" && waitMs > 0 ? now + waitMs : undefined;
- const message = engineFailureMessage(provider, body, { kind, status, resetsAt, timeZone })!;
- if (kind === "credits") return { message, stopReason: "auth_required", setup: true };
- if (kind !== "usage_limit") return { message, stopReason: "rpc_error" };
- return { message, stopReason: "quota", limit: "engine", ...(resetsAt ? { limitResetsAt: resetsAt } : {}) };
+ const failure = engineFailure(provider, body, { kind, status, resetsAt, timeZone })!;
+ if (kind === "credits") return { ...failure, stopReason: "auth_required", setup: true };
+ if (kind !== "usage_limit") return { ...failure, stopReason: "rpc_error" };
+ return { ...failure, stopReason: "quota", limit: "engine", ...(resetsAt ? { limitResetsAt: resetsAt } : {}) };
}
/** Only an out-of-credits failure or a refused tool schema or tool count in plain words; any other text stays as it is. */
diff --git a/server/drivers/runtime-notice-error.test.ts b/server/drivers/runtime-notice-error.test.ts
index 9f6691d911..a8aa1f9230 100644
--- a/server/drivers/runtime-notice-error.test.ts
+++ b/server/drivers/runtime-notice-error.test.ts
@@ -38,6 +38,12 @@ describe("runtime notice provenance", () => {
expect("text" in failure ? failure.text?.key : undefined).toBe(mayHaveRun ? "chat.notice.codexActionMayHaveRun" : undefined);
});
+ it("keeps a coded Codex failure when no tool action may have run", () => {
+ const text = { key: "chat.notice.codexModelUnavailable" };
+ expect(codexActionFailure("Model unavailable", false, text)).toEqual({ message: "Model unavailable", text });
+ expect(codexActionFailure("Model unavailable", true, text).text?.key).toBe("chat.notice.codexActionMayHaveRun");
+ });
+
it.each([1_000, 89_000, 90_000, 180_000])("keeps the provider error's quiet duration at %i ms", (quietMs) => {
const state = { kind: "provider-error", message: "Provider's own words" } as const;
const words = quietNoticeText("Custom ACP", state, quietMs)!;
diff --git a/server/engine-memory.test.ts b/server/engine-memory.test.ts
index 194eae8861..8ddff974df 100644
--- a/server/engine-memory.test.ts
+++ b/server/engine-memory.test.ts
@@ -492,6 +492,7 @@ describe("an engine's adapter on a Cloud home", () => {
await settle();
expect(seen.map((event) => event.type === "runtime.error" ? event.message : event.type)).toEqual([
`${memoryStopText(false)} (opencodeGo exited null before the prompt result)`, "turn.completed"]);
+ expect(seen[0]).toMatchObject({ text: { key: "chat.notice.memoryReclaimedTaskDetail", params: { detail: "opencodeGo exited null before the prompt result" } } });
expect(h.memory.stopText("b")).toBeNull();
// An engine that ends its turn without an error of its own: the reason comes first.
h.oomKill();
diff --git a/server/engine-memory.ts b/server/engine-memory.ts
index ff49fcbde9..b0aebca03c 100644
--- a/server/engine-memory.ts
+++ b/server/engine-memory.ts
@@ -3,6 +3,7 @@
import { AsyncLocalStorage } from "node:async_hooks";
import type { ChildProcess } from "node:child_process";
import { readdirSync, readFileSync } from "node:fs";
+import { chatNotice, noticeFailure } from "./chat-notices.ts";
import { newEventId, newId, TurnNotStartedError, type ProviderAdapter, type ProviderInstance, type RuntimeEvent, type RuntimeEventListener } from "./contracts.ts";
const MB = 1024 * 1024;
@@ -76,8 +77,11 @@ export function processGroupBytes(list: () => string[] = () => readdirSync("/pro
const tasks = (count: number) => `${count} ${count === 1 ? "task" : "tasks"}`;
const running = (count: number) => `${tasks(count)} ${count === 1 ? "is" : "are"} running on this Cloud`;
+const memoryStopKey = (browser: boolean, detail = false) => detail
+ ? browser ? "chat.notice.memoryReclaimedBrowserDetail" : "chat.notice.memoryReclaimedTaskDetail"
+ : browser ? "chat.notice.memoryReclaimedBrowser" : "chat.notice.memoryReclaimedTask";
/** The one line a turn stopped for memory ends with: what was closed to keep everything else running. */
-export const memoryStopText = (browser: boolean) => `Ran out of room, so I ${browser ? "closed the browser" : "stopped this task"} to keep everything else running.`;
+export const memoryStopText = (browser: boolean) => chatNotice(memoryStopKey(browser));
/** Whether a failed turn's cause is `memoryStopText`'s: such a run is started again once there is room. */
export const memoryStopped = (cause: string) => /^Ran out of room, so I (closed the browser|stopped this task) to keep everything else running\./.test(cause);
export const memoryWaitText = (count: number) => `Waiting for memory: ${running(count)}, and one more could run it out of memory. `
@@ -286,8 +290,12 @@ export class EngineMemory {
/** The sentence for a turn of this thread whose engine was stopped for memory; null when it was not. */
stopText(threadId: string): string | null {
+ return this.stopFailure(threadId)?.message ?? null;
+ }
+
+ stopFailure(threadId: string, detail?: string): ReturnType<typeof noticeFailure> | null {
const stop = this.stops.get(threadId);
- return stop === undefined ? null : memoryStopText(stop.browser);
+ return stop === undefined ? null : noticeFailure(memoryStopKey(stop.browser, detail !== undefined), detail === undefined ? undefined : { detail });
}
/** A stalled turn's cause, saying so when memory ran short while it ran. */
@@ -450,15 +458,15 @@ export function withEngineMemory(instance: ProviderInstance, memory: EngineMemor
queueMicrotask(() => { explained.delete(item.threadId); memory.turnEnded(item.threadId); });
});
const present = (item: RuntimeEvent): RuntimeEvent[] => {
- const stopped = memory.stopText(item.threadId);
+ const stopped = memory.stopFailure(item.threadId, item.type === "runtime.error" ? item.message.slice(0, 200) : undefined);
if (!stopped) return [item];
if (item.type === "runtime.error") {
explained.add(item.threadId);
- return [{ ...item, message: `${stopped} (${item.message.slice(0, 200)})` }];
+ return [{ ...item, ...stopped }];
}
if (item.type === "turn.completed" && !item.ok && !explained.has(item.threadId)) {
explained.add(item.threadId);
- return [event(item.threadId, { turnId: item.turnId, type: "runtime.error", message: stopped }), item];
+ return [event(item.threadId, { turnId: item.turnId, type: "runtime.error", ...stopped }), item];
}
return [item];
};
diff --git a/server/host/access-requests.ts b/server/host/access-requests.ts
index 54fdd8e136..da8e9e0720 100644
--- a/server/host/access-requests.ts
+++ b/server/host/access-requests.ts
@@ -14,6 +14,7 @@ import { personKey } from "../person-key.ts";
import type { RequestAuth } from "../request-auth.ts";
import { PASS, type RouteHandler } from "../routes/table.ts";
import type { BotRecord, Store } from "../store.ts";
+import { userError } from "../user-errors.ts";
import type { Delivery } from "./person-inbox.ts";
const ONE_BOT = /^\/api\/bots\/([\w-]{1,128})\/access-request$/;
@@ -70,7 +71,7 @@ export function createAccessRequests(deps: AccessRequestDeps) {
if (!one) return PASS;
const bot = deps.store().bot(one[1]!);
const email = sessionEmail(auth);
- if (!deps.team || !bot || !email) return json(res, 404, { error: "no such bot" });
+ if (!deps.team || !bot || !email) return json(res, 404, userError("serverError.bot.missing"));
if (deps.levelOf(auth, bot.id) !== "view") return json(res, 409, { error: `You can already chat with ${bot.name}.` });
const asked = openAsks(bot, email);
if (asked.length) return json(res, 200, { asked: asked.map(({ person }) => ({ email: person.email, name: nameOf(person.email) })) });
diff --git a/server/host/ask-cards.test.ts b/server/host/ask-cards.test.ts
index 9e9865dbbb..6ebd5f74a8 100644
--- a/server/host/ask-cards.test.ts
+++ b/server/host/ask-cards.test.ts
@@ -91,6 +91,16 @@ describe("a teammate's NEEDS INPUT question", () => {
expect(w.notified.map((notification) => [notification.kind, notification.threadId])).toEqual([["question", "work"]]);
});
+ it("keeps the localized chip's question identical to its English fallback, without the default answer", () => {
+ const w = world();
+ w.cards.park(w.node(), "CSV or Excel?\nDefault: CSV");
+ expect(w.rows("inbox")[0]?.tool).toMatchObject({
+ name: "Ledger needs your input: CSV or Excel?",
+ nameCode: "chat.notice.teammateNeedsInput",
+ nameParams: { name: "Ledger", question: "CSV or Excel?" },
+ });
+ });
+
it("turns a reply that is only the question into the card itself", () => {
const w = world();
w.say("work", `NEEDS INPUT: ${QUESTION}`);
diff --git a/server/host/ask-cards.ts b/server/host/ask-cards.ts
index 48f0b9fa33..906309c415 100644
--- a/server/host/ask-cards.ts
+++ b/server/host/ask-cards.ts
@@ -155,7 +155,7 @@ export function createAskCards(deps: AskCardsDeps) {
store.appendMessage(liveParent.threadId, {
role: "bot", kind: "activity",
from: { botId: bot.id, name: bot.name, color: bot.color },
- tool: { name: chip, ok: true, nameCode: "chat.notice.teammateNeedsInput", nameParams: { name: bot.name, question: question.slice(0, 180) } },
+ tool: { name: chip, ok: true, nameCode: "chat.notice.teammateNeedsInput", nameParams: { name: bot.name, question: withDefault(question).question.slice(0, 180) } },
...(node.groupId ? { comm: { groupId: node.groupId, threadId: node.threadId, withBotId: bot.id, withName: bot.name, withColor: bot.color } }
: { threadRef: { botId: bot.id, threadId: node.threadId, title } }),
});
diff --git a/server/host/bot-access-gate.ts b/server/host/bot-access-gate.ts
index d452f1c653..a9bb573a07 100644
--- a/server/host/bot-access-gate.ts
+++ b/server/host/bot-access-gate.ts
@@ -11,6 +11,7 @@ import { personKey } from "../person-key.ts";
import type { RequestAuth } from "../request-auth.ts";
import type { RoutineManager } from "../routines.ts";
import type { Store } from "../store.ts";
+import { userError, userErrorFields, type UserError } from "../user-errors.ts";
type Target = { botId?: unknown; groupId?: unknown };
@@ -40,8 +41,8 @@ export function levelNeeded(method: string, path: string): Exclude<BotAccessLeve
return "chat";
}
-export function refusalFor(name: string, needed: BotAccessLevel): string {
- return needed === "edit" ? `Only people who can edit ${name} can change this.` : `You can view ${name}, not chat with it.`;
+export function refusalFor(name: string, needed: BotAccessLevel): UserError | { error: string } {
+ return needed === "edit" ? { error: `Only people who can edit ${name} can change this.` } : userError("serverError.bot.viewOnly", { bot: name });
}
export function createBotAccessGate(deps: BotAccessGateDeps) {
@@ -52,7 +53,7 @@ export function createBotAccessGate(deps: BotAccessGateDeps) {
: typeof target?.botId === "string" ? [target.botId] : [];
/** The first of these bots the member sees but may not do this with. A bot they cannot see is the visibility gate's. */
- function short(visible: VisibleSet, botIds: readonly string[], needed: BotAccessLevel): string | null {
+ function short(visible: VisibleSet, botIds: readonly string[], needed: BotAccessLevel): ReturnType<typeof refusalFor> | null {
for (const id of botIds) {
const level = visible.level(id);
if (level !== "none" && !atLeast(level, needed)) return refusalFor(deps.botName(id) ?? "this bot", needed);
@@ -61,7 +62,7 @@ export function createBotAccessGate(deps: BotAccessGateDeps) {
}
/** Null to let the request through; else why a member may not. Body fields are checked as the route reads them. */
- return function accessRefusal(req: IncomingMessage, auth: RequestAuth, method: string, path: string, visible: VisibleSet): string | null {
+ return function accessRefusal(req: IncomingMessage, auth: RequestAuth, method: string, path: string, visible: VisibleSet): ReturnType<typeof refusalFor> | null {
if (auth.kind !== "session" || !visible.member || !visible.filtersThreads) return null;
const needed = levelNeeded(method, path);
const subject = pathSubject(path);
@@ -80,7 +81,8 @@ export function createBotAccessGate(deps: BotAccessGateDeps) {
const targeted = path === "/api/routines" || routine !== null ? targetBots(record) : [];
const threads = bodyThreadIds(body).flatMap((threadId) => ownerBots(deps.threadOwner(threadId)));
const error = short(visible, [...added, ...targeted, ...threads], bodyNeeds);
- return error ? { status: 403, error } : null;
+ if (error) throw Object.assign(new Error(error.error), { status: 403 }, userErrorFields(error));
+ return null;
});
return null;
};
@@ -94,7 +96,7 @@ export function setupCardRefusal(card: SetupCard | undefined, bot: { id: string;
if (!card || !bot) return null;
const changesBot = card.profileRequest !== undefined || card.modelRequest !== undefined || card.skillRequest !== undefined ||
card.teamSetupRequest !== undefined || card.webhookRequest !== undefined || card.appTriggerRequest !== undefined || card.mcpRequest !== undefined;
- return changesBot && !atLeast(level(bot.id), "edit") ? refusalFor(bot.name, "edit") : null;
+ return changesBot && !atLeast(level(bot.id), "edit") ? refusalFor(bot.name, "edit").error : null;
}
/** A message another app relays for a person (the guarded route's onBehalfOf) needs that person to be able to chat with
diff --git a/server/host/devs-reports.test.ts b/server/host/devs-reports.test.ts
index 0d0eef2503..5672969859 100644
--- a/server/host/devs-reports.test.ts
+++ b/server/host/devs-reports.test.ts
@@ -220,7 +220,7 @@ describe("what the person is told, in their language", () => {
fx.person("scout-main", "@devs o botão travou");
fx.advance(NO_ANSWER_MS);
await fx.settle();
- expect(fx.notices("scout-main")).toEqual(["notice: Enviado à equipe do MausBot (relatório report-1). Milind e Omkar recebem por e-mail e responderão para [email protected]."]);
+ expect(fx.notices("scout-main")).toEqual(["notice: Enviado à equipe do MausBot (relatório report-1). Milind e Omkar recebem por e-mail e vão responder para [email protected]."]);
expect(fx.store.activePath("scout-main").at(-1)?.tool?.nameCode).toBeUndefined();
fx.stop();
});
diff --git a/server/host/person-first.ts b/server/host/person-first.ts
index 8105e01c66..80a72495f2 100644
--- a/server/host/person-first.ts
+++ b/server/host/person-first.ts
@@ -5,6 +5,7 @@
// person's own message does this: rooms, routines, teammates and apps wait their turn. A turn waiting on the person (a
// question, a sign-in) or on a computer is never stopped this way.
import type { RuntimeEvent } from "../contracts.ts";
+import { conversationLanguage, serverLine } from "../server-lines.ts";
export const PERSON_FIRST_MS = 60_000;
/** How soon a turn that was waiting on the person or a computer when its time came is looked at again. */
@@ -48,8 +49,10 @@ export function ranFor(ms: number): string {
return ms < 90_000 ? `${Math.max(1, Math.round(ms / 1000))} s` : `${Math.round(ms / 60_000)} min`;
}
-export function stoppedLine(ms: number): string {
- return `Stopped a step that had run for ${ranFor(ms)}, to answer you first`;
+export function stoppedLine(ms: number, language?: string): string {
+ return ms < 90_000
+ ? serverLine(language, "server.personFirst.stoppedSeconds", { seconds: Math.max(1, Math.round(ms / 1000)) })
+ : serverLine(language, "server.personFirst.stoppedMinutes", { minutes: Math.round(ms / 60_000) });
}
/** What the model is told after the person's words, in the turn that answers them. */
@@ -96,7 +99,7 @@ export function createPersonFirst(deps: PersonFirstDeps) {
const waits = watch.waits.splice(0);
const noted = waits.findLast((wait) => wait.requeue);
for (const wait of waits) wait.requeue?.(wait === noted ? stoppedNote(tool.label, ran) : undefined);
- void Promise.resolve().then(() => deps.stop(threadId, stoppedLine(ran))).catch(() => {});
+ void Promise.resolve().then(() => deps.stop(threadId, stoppedLine(ran, conversationLanguage(threadId)))).catch(() => {});
};
/** Acts once the oldest running tool call has held a waiting message for `firstMs`, else looks again then. */
diff --git a/server/host/routine-holds-host.test.ts b/server/host/routine-holds-host.test.ts
index 0182280158..c2e49ae17c 100644
--- a/server/host/routine-holds-host.test.ts
+++ b/server/host/routine-holds-host.test.ts
@@ -4,7 +4,7 @@ import { join } from "node:path";
import { afterEach, describe, expect, it } from "vitest";
import { RoutineManager } from "../routines.ts";
-import { createRoutineHoldsHost, ROUTINE_HOLD_LINES } from "./routine-holds-host.ts";
+import { createRoutineHoldsHost } from "./routine-holds-host.ts";
const dirs: string[] = [];
afterEach(() => { for (const dir of dirs.splice(0)) rmSync(dir, { recursive: true, force: true }); });
@@ -48,7 +48,7 @@ describe("a Cloud home's routines wait while the owner has left", () => {
w.make();
w.host.engines(true);
expect(w.state()).toMatchObject({ enabled: false, heldFor: "no_engine" });
- expect(w.lines).toEqual([{ threadId: "chief-main", name: `notice: ${ROUTINE_HOLD_LINES.no_engine}` }]);
+ expect(w.lines).toEqual([{ threadId: "chief-main", name: "notice: Your routines are paused: none of your AI accounts is signed in here any more. They turn back on by themselves when you sign in again." }]);
// Read again and again while signed out: nothing more is said.
w.host.engines(true);
w.host.engines(true);
@@ -65,7 +65,7 @@ describe("a Cloud home's routines wait while the owner has left", () => {
w.host.engines(false);
w.host.plan(true);
expect(w.state()).toMatchObject({ enabled: false, heldFor: "plan_cancelled" });
- expect(w.lines.map((line) => line.name)).toEqual([`notice: ${ROUTINE_HOLD_LINES.plan_cancelled}`]);
+ expect(w.lines.map((line) => line.name)).toEqual(["notice: Your routines are paused because the plan was cancelled. To keep one running until the plan ends, turn it back on in Routines."]);
expect(JSON.parse(readFileSync(join(w.dir, "routine-holds.json"), "utf8"))).toEqual({ planCancelled: true });
const again = world(w.dir);
@@ -100,7 +100,7 @@ describe("a Cloud home's routines wait while the owner has left", () => {
w.setApps(false);
await w.host.connections("removed");
expect(w.state()).toMatchObject({ enabled: false, heldFor: "no_connections" });
- expect(w.lines.map((line) => line.name)).toEqual([`notice: ${ROUTINE_HOLD_LINES.no_connections}`]);
+ expect(w.lines.map((line) => line.name)).toEqual(["notice: Your routines are paused: every connected app and MCP server was removed. They turn back on when you connect one, or turn one back on in Routines."]);
await w.host.connections("added");
expect(w.state().enabled).toBe(true);
});
diff --git a/server/host/routine-holds-host.ts b/server/host/routine-holds-host.ts
index 3dc2166ef4..ab5d798514 100644
--- a/server/host/routine-holds-host.ts
+++ b/server/host/routine-holds-host.ts
@@ -9,6 +9,7 @@ import { join } from "node:path";
import type { RoutineHoldCause } from "../../shared/routines.ts";
import { writeFileAtomic } from "../atomic.ts";
import type { RoutineManager } from "../routines.ts";
+import { conversationLanguage, serverLine, type ServerLineKey } from "../server-lines.ts";
import type { Store } from "../store.ts";
/** While every connection is gone, whether one came back elsewhere (an app connected from another device) is read again at
@@ -16,10 +17,10 @@ import type { Store } from "../store.ts";
const RECHECK_MS = 15 * 60_000;
/** The owner's one line when a cause begins and pauses routines. */
-export const ROUTINE_HOLD_LINES: Record<RoutineHoldCause, string> = {
- plan_cancelled: "Your routines are paused because the plan was cancelled. To keep one running until the plan ends, turn it back on in Routines.",
- no_engine: "Your routines are paused: none of your AI accounts is signed in here any more. They turn back on by themselves when you sign in again.",
- no_connections: "Your routines are paused: every connected app and MCP server was removed. They turn back on when you connect one, or turn one back on in Routines.",
+export const ROUTINE_HOLD_KEYS: Record<RoutineHoldCause, ServerLineKey> = {
+ plan_cancelled: "server.routines.held.planCancelled",
+ no_engine: "server.routines.held.noEngine",
+ no_connections: "server.routines.held.noConnections",
};
interface Saved { away?: true; planCancelled?: true; connectionsGone?: true }
@@ -61,17 +62,20 @@ export function createRoutineHoldsHost(deps: RoutineHoldsHostDeps) {
}
/** The owner's Chief: the place's own one, else the first made (a Team Cloud's founder's). */
- function tell(line: string): void {
+ function tell(cause: RoutineHoldCause): void {
const chief = deps.store.bots.filter((bot) => !bot.hidden && bot.chiefOfStaff)
.sort((a, b) => Number(Boolean(b.defaultBot)) - Number(Boolean(a.defaultBot)) || a.createdAt - b.createdAt)[0];
- if (chief) deps.store.appendMessage(chief.threadId, { role: "bot", kind: "activity", tool: { name: `notice: ${line}`, ok: true } });
+ if (chief) {
+ const line = serverLine(conversationLanguage(chief.threadId), ROUTINE_HOLD_KEYS[cause]);
+ deps.store.appendMessage(chief.threadId, { role: "bot", kind: "activity", tool: { name: `notice: ${line}`, ok: true } });
+ }
}
/** Never throws: it runs inside reading the engines, which must not fail for it. */
function review(): void {
if (!routines) return;
try {
- for (const cause of routines.holdFor(causes())) tell(ROUTINE_HOLD_LINES[cause]);
+ for (const cause of routines.holdFor(causes())) tell(cause);
} catch (error) {
deps.log?.(`[routines] could not pause or resume routines (${error instanceof Error ? error.message : "error"})`);
}
diff --git a/server/index.ts b/server/index.ts
index e4ac076eae..ce11317947 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -85,6 +85,7 @@ import { chatNotice, failedNoticeTool, noticeTool, runtimeNoticeTool } from "./c
import type { ServerErrorBody } from "../shared/server-text.ts";
import { emailSignInRoute } from "./routes/email-sign-in.ts";
import { createPersonStop } from "./host/person-stop.ts";
+import { runtimeRequestCardFields } from "./request-card.ts";
import type { DirectSendInput, DirectSendReceipt } from "./direct-send.ts";
import { finishedWithoutSummaryLine, ROOM_SUMMARY_REASK, roomTurnNarrationIds, roomTurnReply } from "./room-reply.ts";
import { pickComputer } from "./computer-selection.ts";
@@ -6658,7 +6659,6 @@ bus.subscribe((event: RuntimeEvent) => {
break;
}
const heldContext = { source: verdict?.source, permission };
- const questions = event.questions?.length ? event.questions : undefined;
const message = pushMessage({
role: "bot",
kind: "options",
@@ -6669,21 +6669,11 @@ bus.subscribe((event: RuntimeEvent) => {
: permission
? "Approval needed"
: "Your bot has a question",
- subtitle: event.summary,
- options: event.choices?.length ? event.choices : permission ? ["Allow", "Deny"] : [],
- requestId: event.requestId,
- requestType: permission ? "permission" : "question",
- tool: permission ? event.tool : undefined,
- questionRequest: questions
- ? { version: 1, questions, ...(event.origin === "output" ? { origin: "output" as const } : {}) }
- : undefined,
- commandAllowlist: command ?? undefined,
- allowKey: toolAllowKey ?? undefined,
- // Never on a guest's turn: an "always" would outlive it.
- allowSession: permission && event.allowSession && !event.requiresExplicitApproval && !guestDriven ? true : undefined,
- held: approvalHeldReason(heldContext) ?? (permission && guestDriven && routineRun ? confinedWhy(event.threadId) : undefined),
- heldCode: approvalHeldNote(heldContext),
- approvalScope: event.approvalScope,
+ ...runtimeRequestCardFields(event, {
+ permission, guestDriven, commandAllowlist: command ?? undefined, allowKey: toolAllowKey ?? undefined,
+ held: approvalHeldReason(heldContext) ?? (permission && guestDriven && routineRun ? confinedWhy(event.threadId) : undefined),
+ heldCode: approvalHeldNote(heldContext),
+ }),
},
});
if (event.requestId) { askMessageByRequest.set(`${event.threadId}:${event.requestId}`, message.id); if (!permission && asker) askCards.askedAgain(event.threadId, event.requestId, asker.id); }
@@ -12864,7 +12854,7 @@ const handleRequest = async (req: IncomingMessage, res: ServerResponse) => {
const viewer = viewerFor(auth), visible = visibleTo(viewer);
const subject = visible.everything ? null : pathSubject(path);
const hidden = subject && !subjectVisible(subject, visible) ? notFoundFor(subject) : hiddenThreadRefusal(req, path, url.searchParams, visible, (botId) => store.bot(botId)?.threadId);
- if (hidden) return json(res, 404, { error: hidden }); const refused = botAccess.accessRefusal(req, auth, method, path, visible); if (refused) return json(res, 403, { error: refused });
+ if (hidden) return json(res, 404, { error: hidden }); const refused = botAccess.accessRefusal(req, auth, method, path, visible); if (refused) return json(res, 403, refused);
// Every bot a member is sent (on a Team Cloud an admin's too) comes narrowed to what they may see (memberBot).
if (viewer.kind === "member" || visible.filtersThreads) onJsonBody(res, (body) => memberBody(body, visible));
beginAdminAudit(req, res, method, path, auth);
diff --git a/server/message-redaction.ts b/server/message-redaction.ts
index a2159de6ec..d71e37a9ef 100644
--- a/server/message-redaction.ts
+++ b/server/message-redaction.ts
@@ -41,6 +41,7 @@ export function redactBotAuthored<T extends Omit<WireMessage, "id" | "at"> & { a
const card = { ...out.card } as OptionCardData & { summary?: string };
card.title = redactSecretsInText(card.title);
if (typeof card.subtitle === "string") card.subtitle = redactSecretsInText(card.subtitle);
+ if (card.summaryParams) card.summaryParams = redactParams(card.summaryParams);
if (typeof card.summary === "string") card.summary = redactSecretsInText(card.summary);
if (typeof card.held === "string") card.held = redactSecretsInText(card.held);
if (typeof card.answeredText === "string") card.answeredText = redactSecretsInText(card.answeredText);
diff --git a/server/request-card.test.ts b/server/request-card.test.ts
new file mode 100644
index 0000000000..1d68c8c965
--- /dev/null
+++ b/server/request-card.test.ts
@@ -0,0 +1,49 @@
+import { describe, expect, it } from "vitest";
+import type { RuntimeEvent } from "../shared/runtime-events.ts";
+import { runtimeRequestCardFields } from "./request-card.ts";
+
+type RequestOpened = Extract<RuntimeEvent, { type: "request.opened" }>;
+const event = (fields: Partial<RequestOpened> = {}): RequestOpened => ({
+ eventId: "event", provider: "fixture", threadId: "thread", createdAt: "2026-11-04T12:00:00Z",
+ type: "request.opened", requestId: "request", requestType: "permission", tool: "Bash", summary: "ls memory",
+ ...fields,
+});
+
+const context = { permission: true, guestDriven: false };
+
+describe("runtime request-card projection", () => {
+ it("keeps the native command, grant and held note without turning the display summary into a command", () => {
+ const command = { command: "ls memory", cwd: "/workspace", providerInstanceId: "fixture" };
+ expect(runtimeRequestCardFields(event({ approvalScope: "local-computer", allowSession: true }), {
+ ...context, commandAllowlist: command, allowKey: "exact-tool", held: "Held note", heldCode: "approval.held.fixture",
+ })).toEqual({
+ subtitle: "ls memory", options: ["Allow", "Deny"],
+ requestId: "request", requestType: "permission", tool: "Bash", questionRequest: undefined,
+ commandAllowlist: command, allowKey: "exact-tool", allowSession: true,
+ held: "Held note", heldCode: "approval.held.fixture", approvalScope: "local-computer",
+ });
+ });
+
+ it.each([
+ { guestDriven: true, requiresExplicitApproval: false },
+ { guestDriven: false, requiresExplicitApproval: true },
+ ])("never offers a session grant for %j", ({ guestDriven, requiresExplicitApproval }) => {
+ expect(runtimeRequestCardFields(event({ allowSession: true, requiresExplicitApproval }), { ...context, guestDriven }).allowSession)
+ .toBeUndefined();
+ });
+
+ it("keeps structured questions and their origin without offering permission grants", () => {
+ const questions = [{ question: "Which color?", options: [{ label: "Blue" }] }];
+ expect(runtimeRequestCardFields(event({ requestType: "question", choices: ["Blue"], questions, origin: "output", allowSession: true }), {
+ permission: false, guestDriven: false,
+ })).toMatchObject({
+ subtitle: "ls memory", options: ["Blue"], requestType: "question",
+ tool: undefined, allowSession: undefined, questionRequest: { version: 1, questions, origin: "output" },
+ });
+ });
+
+ it("keeps old uncoded requests free of summary metadata", () => {
+ expect(runtimeRequestCardFields(event(), context)).not.toHaveProperty("summaryCode");
+ expect(runtimeRequestCardFields(event({ summaryParams: { message: "External words" } }), context)).not.toHaveProperty("summaryParams");
+ });
+});
diff --git a/server/request-card.ts b/server/request-card.ts
new file mode 100644
index 0000000000..4011d49fad
--- /dev/null
+++ b/server/request-card.ts
@@ -0,0 +1,34 @@
+import type { RuntimeEvent } from "../shared/runtime-events.ts";
+import type { OptionCardData } from "../shared/wire.ts";
+
+type RequestOpened = Extract<RuntimeEvent, { type: "request.opened" }>;
+type RequestCardContext = Pick<OptionCardData, "commandAllowlist" | "allowKey" | "held" | "heldCode"> & {
+ permission: boolean;
+ guestDriven: boolean;
+};
+
+export function runtimeRequestCardFields(event: RequestOpened, context: RequestCardContext): Omit<OptionCardData, "title"> {
+ const { permission, guestDriven } = context;
+ const questions = event.questions?.length ? event.questions : undefined;
+ return {
+ subtitle: event.summary,
+ ...(event.summaryCode ? {
+ summaryCode: event.summaryCode,
+ ...(event.summaryParams ? { summaryParams: event.summaryParams } : {}),
+ } : {}),
+ options: event.choices?.length ? event.choices : permission ? ["Allow", "Deny"] : [],
+ requestId: event.requestId,
+ requestType: permission ? "permission" : "question",
+ tool: permission ? event.tool : undefined,
+ questionRequest: questions
+ ? { version: 1, questions, ...(event.origin === "output" ? { origin: "output" as const } : {}) }
+ : undefined,
+ commandAllowlist: context.commandAllowlist,
+ allowKey: context.allowKey,
+ // A guest's turn cannot leave a session grant behind.
+ allowSession: permission && event.allowSession && !event.requiresExplicitApproval && !guestDriven ? true : undefined,
+ held: context.held,
+ heldCode: context.heldCode,
+ approvalScope: event.approvalScope,
+ };
+}
diff --git a/server/routes/bot-access.ts b/server/routes/bot-access.ts
index 71dee71800..85fdf9b352 100644
--- a/server/routes/bot-access.ts
+++ b/server/routes/bot-access.ts
@@ -13,6 +13,7 @@ import type { AdminActionRow } from "../admin-activity.ts";
import type { RequestAuth } from "../request-auth.ts";
import type { BotRecord, GroupRecord, Store } from "../store.ts";
import type { TeamPeople } from "../team-people.ts";
+import { userError } from "../user-errors.ts";
import { PASS, type RouteHandler } from "./table.ts";
const ONE_BOT = /^\/api\/bots\/([\w-]{1,128})\/access$/;
@@ -66,12 +67,12 @@ export function createBotAccessRoutes(deps: BotAccessRouteDeps): RouteHandler {
const { team, people, store } = deps;
if (!team || !people) return json(res, 400, { error: "Only a team's bots are shared." });
const bot = store.bot(one[1]!);
- if (!bot) return json(res, 404, { error: "no such bot" });
- if (deps.levelOf(auth, bot.id) !== "edit") return json(res, 403, { error: refusalFor(bot.name, "edit") });
+ if (!bot) return json(res, 404, userError("serverError.bot.missing"));
+ if (deps.levelOf(auth, bot.id) !== "edit") return json(res, 403, refusalFor(bot.name, "edit"));
const parsed = parseBotAccess(await readBody(req));
if (!parsed.ok) return json(res, 400, { error: parsed.error });
const current = store.bot(bot.id);
- if (!current) return json(res, 404, { error: "no such bot" });
+ if (!current) return json(res, 404, userError("serverError.bot.missing"));
const settled = settledAccess(current, parsed.access, (email) => people.has(email));
if (!settled.ok) return json(res, 400, { error: settled.error });
const before = accessOf(current);
@@ -79,6 +80,6 @@ export function createBotAccessRoutes(deps: BotAccessRouteDeps): RouteHandler {
if (updated && !sameAccess(before, settled.access)) {
deps.record?.(auth, { category: "visibility", action: "access.update", target: { kind: "bot", id: updated.id, name: updated.name }, before: { access: before }, after: { access: settled.access } });
}
- return updated ? json(res, 200, { bot: deps.wireBot(updated) }) : json(res, 404, { error: "no such bot" });
+ return updated ? json(res, 200, { bot: deps.wireBot(updated) }) : json(res, 404, userError("serverError.bot.missing"));
};
}
diff --git a/server/routes/mcp-servers.test.ts b/server/routes/mcp-servers.test.ts
index e1a445fd30..0539dcdd26 100644
--- a/server/routes/mcp-servers.test.ts
+++ b/server/routes/mcp-servers.test.ts
@@ -199,7 +199,7 @@ describe("a bot's MCP servers, as a phone reads them", () => {
const { base } = await serve({ bots: [{ id: "ada" }] });
const response = await fetch(`${base}/api/bots/nobody/mcp-servers`);
expect(response.status).toBe(404);
- expect(await response.json()).toEqual({ error: "no such bot" });
+ expect(await response.json()).toEqual({ error: "no such bot", errorKey: "serverError.bot.missing" });
});
});
diff --git a/server/routes/mcp-servers.ts b/server/routes/mcp-servers.ts
index 7a2d3c3b8a..3e12f23bea 100644
--- a/server/routes/mcp-servers.ts
+++ b/server/routes/mcp-servers.ts
@@ -1,4 +1,4 @@
-import { userErrorFields } from "../user-errors.ts";
+import { userError, userErrorFields } from "../user-errors.ts";
import { hostedWorkspaceConfiguration } from "../enterprise.ts";
import { runsElsewhere, type McpConfig, type McpConfigDeps, type McpConfigResult } from "../host/mcp-config.ts";
import { McpOAuthError, McpSignInError, mcpCallbackOrigin } from "../mcp-oauth.ts";
@@ -59,14 +59,14 @@ export function createMcpServerRoutes(deps: McpServerRouteDeps): RouteHandler {
const budgetOf = /^\/api\/bots\/([\w-]+)\/tool-budget$/.exec(path);
if (method === "GET" && budgetOf) {
- if (!deps.bot(budgetOf[1]!)) return json(res, 404, { error: "no such bot" });
+ if (!deps.bot(budgetOf[1]!)) return json(res, 404, userError("serverError.bot.missing"));
return json(res, 200, { budget: toolBudgetOf(budgetOf[1]!) ?? null });
}
const ofBot = /^\/api\/bots\/([\w-]+)\/mcp-servers$/.exec(path);
if (method === "GET" && ofBot) {
const bot = deps.bot(ofBot[1]!);
- if (!bot) return json(res, 404, { error: "no such bot" });
+ if (!bot) return json(res, 404, userError("serverError.bot.missing"));
return json(res, 200, { servers: botMcpServers(mcpServerResponse().servers, bot) });
}
diff --git a/server/routes/threads-tool-output.test.ts b/server/routes/threads-tool-output.test.ts
index 16a4fb9ced..8b99c767d6 100644
--- a/server/routes/threads-tool-output.test.ts
+++ b/server/routes/threads-tool-output.test.ts
@@ -49,6 +49,8 @@ describe("GET /api/threads/:threadId/messages/:messageId/tool", () => {
expect((await get(`/api/threads/${bot.threadId}/messages/${silent.id}/tool`)).status).toBe(404);
expect((await get(`/api/threads/${bot.threadId}/messages/${text.id}/tool`)).status).toBe(404);
expect((await get(`/api/threads/${bot.threadId}/messages/no-such-message/tool`)).status).toBe(404);
- expect((await get(`/api/threads/no-such-thread/messages/${tool.id}/tool`)).status).toBe(404);
+ expect(await get(`/api/threads/no-such-thread/messages/${tool.id}/tool`)).toEqual({
+ status: 404, body: { error: "no such conversation", errorKey: "serverError.chat.missingConversation" },
+ });
});
});
diff --git a/server/routes/threads.ts b/server/routes/threads.ts
index 7fd58e22b7..d801b43571 100644
--- a/server/routes/threads.ts
+++ b/server/routes/threads.ts
@@ -159,7 +159,7 @@ export function createThreadRoutes(deps: ThreadRouteDeps): RouteHandler {
m = path.match(/^\/api\/threads\/([\w-]+)\/messages\/([\w-]+)\/tool$/);
if (m && method === "GET") {
- if (!store.botByThread(m[1]) && !store.groupByThread(m[1])) return json(res, 404, { error: "no such conversation" });
+ if (!store.botByThread(m[1]) && !store.groupByThread(m[1])) return json(res, 404, userError("serverError.chat.missingConversation"));
const message = readMessage(m[1], m[2]);
if (message?.tool?.output === undefined) return json(res, 404, { error: "no tool output on that message" });
return json(res, 200, { output: message.tool.output });
diff --git a/server/user-errors.ts b/server/user-errors.ts
index 0790c76901..ba6bda3968 100644
--- a/server/user-errors.ts
+++ b/server/user-errors.ts
@@ -191,6 +191,7 @@ export const USER_ERROR = {
"serverError.mcp.addressChanged": "The MCP server address changed. Reload the server and try again.",
"serverError.attachment.alreadyInMessage": "This file is already in a message, so it stays.",
"serverError.engine.signedOut": "{name} is signed out.",
+ "serverError.bot.viewOnly": "You can view {bot}, not chat with it.",
} as const;
export type UserErrorKey = keyof typeof USER_ERROR;
diff --git a/shared/runtime-events.ts b/shared/runtime-events.ts
index cb7e6212df..5cd6c866a1 100644
--- a/shared/runtime-events.ts
+++ b/shared/runtime-events.ts
@@ -1,7 +1,7 @@
/** Canonical runtime-event shapes, as they ride the live wire and the
* inspector log. */
import type { AskQuestion } from "./ask-question.ts";
-import type { ServerText } from "./server-text.ts";
+import type { ServerText, ServerTextParams } from "./server-text.ts";
import type { LiveStep, TurnProgressFields } from "./turn-progress.ts";
export type DriverKind = string;
@@ -130,6 +130,9 @@ export type RuntimeEvent = RuntimeEventBase &
requestType: "permission" | "question";
tool: string;
summary: string;
+ /** Fixed `chat.notice.*` summary words beside their English fallback; absent for provider-authored text. */
+ summaryCode?: string;
+ summaryParams?: ServerTextParams;
/** Complete native shell input and its effective working directory.
* Used for exact-command grants; never reconstructed from a display
* summary, tool title, or argv. Absent when either value is unknown. */
diff --git a/shared/wire.ts b/shared/wire.ts
index 0abde410ba..173243d56d 100644
--- a/shared/wire.ts
+++ b/shared/wire.ts
@@ -16,7 +16,7 @@ import type { RoutineRequestCardData } from "./routine-request.ts"; import type
import type { WebhookRequestCardData } from "./webhook-request.ts"; import type { WaitCardField, WaitLineField } from "./wait-request.ts"; import type { ComputerAskField } from "./computer-ask.ts";
import type { AppEventAttempt, AppTrigger, AppTriggerRequestCardData, AppTriggerService } from "./app-triggers.ts";
import type { ProfileRequestCardData } from "./profile-request.ts";
-import type { ServerTextLine } from "./server-text.ts";
+import type { ServerTextLine, ServerTextParams } from "./server-text.ts";
import type { WireTool } from "./wire-tool.ts";
import type { ModelRequestCardData } from "./model-request.ts";
import type { ConnectorCardData } from "./connector-card.ts"; import type { McpChangeRequest } from "./mcp-request.ts";
@@ -644,6 +644,9 @@ export interface OptionCardData extends WaitCardField, ComputerAskField, AccessR
teamMemoryRequest?: { section: string; entryId: string; kind: string; revision?: string };
title: string;
subtitle: string;
+ /** Fixed `chat.notice.*` words for `subtitle`; the English fallback stays stored in `subtitle`. */
+ summaryCode?: string;
+ summaryParams?: ServerTextParams;
options: string[];
/** Distinguishes a provider question from an approval after its live run ends. */
requestType?: "permission" | "question";
diff --git a/src/components/ApprovalCard.i18n.test.ts b/src/components/ApprovalCard.i18n.test.ts
index f9921ad419..40ef6f937f 100644
--- a/src/components/ApprovalCard.i18n.test.ts
+++ b/src/components/ApprovalCard.i18n.test.ts
@@ -204,6 +204,53 @@ describe("Brazilian Portuguese approval cards", () => {
);
});
+ it.each([
+ ["enable", "Turn on", "Ligar"],
+ ["update", "Change", "Alterar"],
+ ["remove", "Remove", "Remover"],
+ ] as const)("localizes the spoken and visible MCP %s actions while preserving wire options", (action, english, portuguese) => {
+ const { pending } = commandApproval();
+ const card = pending.message.card!;
+ card.title = `${english} linear?`;
+ card.options = [english];
+ card.mcpRequest = { requestId: "mcp-request", botId: "bot-1", threadId: "thread-1", action, name: "linear", targetHash: "0".repeat(64) };
+ expect(spokenApprovalPrompt(pending, "Mochi")).toBe(`Mochi: ${english} linear? Review the details and choose ${english} or Cancel.`);
+ setLocale("pt-br");
+ card.title = `${portuguese} linear?`;
+ expect(spokenApprovalPrompt(pending, "Mochi")).toBe(`Mochi: ${portuguese} linear? Confira os detalhes e escolha ${portuguese} ou Cancelar.`);
+ const markup = renderToStaticMarkup(createElement(StoreProvider, null, createElement(PendingApprovalActions, {
+ pending, threadId: "thread-1", onCancelTurn: () => undefined,
+ })));
+ expect(markup).toContain(`>${portuguese}</button>`);
+ expect(markup).toContain(">Cancelar</button>");
+ expect(card.options).toEqual([english]);
+ });
+
+ it.each([
+ [false, "Apply setup", "Aplicar configuração"],
+ [true, "Delete bot", "Excluir bot"],
+ ] as const)("localizes team setup actions with deletion=%s without translating wire options", (deletion, english, portuguese) => {
+ const { pending } = commandApproval();
+ const card = pending.message.card!;
+ card.title = "Review this change?";
+ card.options = [english, "Cancel"];
+ card.teamSetupRequest = {
+ version: 1, requestId: "team-request", botId: "bot-1", threadId: "thread-1", reason: "Team update", createdAt: 1,
+ requesterRevision: "rev-1", operations: [], newTeams: [],
+ ...(deletion ? { deletion: { botId: "bot-2", name: "Scout", expectedRevision: "rev-2" } } : {}),
+ };
+ expect(spokenApprovalPrompt(pending, "Mochi")).toBe(`Mochi: Review this change? Review the details and choose ${english} or Cancel.`);
+ setLocale("pt-br");
+ card.title = "Revisar esta alteração?";
+ expect(spokenApprovalPrompt(pending, "Mochi")).toBe(`Mochi: Revisar esta alteração? Confira os detalhes e escolha ${portuguese} ou Cancelar.`);
+ const markup = renderToStaticMarkup(createElement(StoreProvider, null, createElement(PendingApprovalActions, {
+ pending, threadId: "thread-1", onCancelTurn: () => undefined,
+ })));
+ expect(markup).toContain(`>${portuguese}</button>`);
+ expect(markup).toContain(">Cancelar</button>");
+ expect(card.options).toEqual([english, "Cancel"]);
+ });
+
it("speaks a skill approval with the pronoun attached to the verb", () => {
setLocale("pt-BR");
diff --git a/src/components/ApprovalCard.tsx b/src/components/ApprovalCard.tsx
index 518558e405..13920ea4ba 100644
--- a/src/components/ApprovalCard.tsx
+++ b/src/components/ApprovalCard.tsx
@@ -6,7 +6,7 @@ import { cn } from "@/lib/cn";
import { activeLocale, t, tFromServer } from "@/lib/i18n";
import type { LocaleKey } from "@/locales";
import { SkillRequestPreview } from "@/components/SkillRequestPreview";
-import { composioActionPhrase, outboundSummary } from "@/lib/approval-summary";
+import { approvalDetailText, composioActionPhrase, outboundSummary } from "@/lib/approval-summary";
import { niceDate, niceTime, scheduleLabel } from "@/lib/schedule-label";
import { cronPresetText, cronText } from "@/lib/cron-text";
import { PROFILE_REQUEST_FIELDS, type ProfileRequestField } from "../../shared/profile-request";
@@ -16,6 +16,7 @@ import { cardAutomation } from "@/lib/automations";
import { useOwnerOrAdmin } from "@/lib/use-owner-or-admin";
import { yourComputerAsk } from "@/lib/your-computer";
import { computerAskWords } from "@/lib/computer-ask";
+import { mcpRequestActionLabel } from "@/lib/mcp-request-label";
import { TriggerCard } from "./TriggerCard";
import { CardHint } from "./CardHint";
@@ -74,6 +75,12 @@ const staleRoutineCard = (card: OptionCardData) => Boolean(card.routineRequest &
/** The card brings its own question and answer words (its title and first option): team setup and MCP server changes. */
export const titledCard = (card: OptionCardData | undefined) => Boolean(card?.teamSetupRequest || card?.mcpRequest);
+export function titledCardAction(card: OptionCardData): string {
+ if (card.mcpRequest) return mcpRequestActionLabel(card.mcpRequest.action);
+ if (card.teamSetupRequest) return t(card.teamSetupRequest.deletion ? "approval.action.deleteBot" : "approval.action.applySetup");
+ return card.options[0] ?? t("approval.action.confirm");
+}
+
export function approvalCardOutcome(card: OptionCardData): string | undefined {
const isProposal = Boolean(card.routineRequest || card.skillRequest || card.profileRequest || card.modelRequest || titledCard(card));
if (card.expired === true || staleRoutineCard(card)) return t(isProposal || !card.tool ? "approval.status.expired" : "approval.status.timedOut");
@@ -484,7 +491,7 @@ export function ApprovalCard({
<CompactApprovalRow
header={header}
summary={outbound?.summary || undefined}
- detail={ask?.detail ?? card.subtitle}
+ detail={ask?.detail ?? approvalDetailText(card)}
showDetailInline={!outbound}
outcome={outcome}
allowed={settled === "allow" && !expired}
@@ -532,7 +539,7 @@ export function ApprovalCard({
}
className="mt-2 max-h-40 overflow-auto whitespace-pre-wrap break-words rounded-lg bg-inset px-3 py-2 font-mono text-[13px] leading-relaxed text-ink"
>
- {card.subtitle}
+ {approvalDetailText(card)}
</pre>
{card.skillRequest && <SkillRequestPreview request={card.skillRequest} />}
diff --git a/src/components/BrowserProfilesManager.test.ts b/src/components/BrowserProfilesManager.test.ts
index 7caf33df86..e6ec1282d2 100644
--- a/src/components/BrowserProfilesManager.test.ts
+++ b/src/components/BrowserProfilesManager.test.ts
@@ -1,6 +1,7 @@
import { createElement } from "react";
import { renderToStaticMarkup } from "react-dom/server";
-import { beforeEach, describe, expect, it, vi } from "vitest";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import { setLocale } from "@/lib/i18n";
import type { Bot, BrowserProfile } from "@/state/store";
const fixture = vi.hoisted(() => ({ profiles: [] as BrowserProfile[], bots: [] as Bot[], myChrome: true, engine: undefined as Record<string, unknown> | undefined }));
@@ -23,6 +24,8 @@ beforeEach(() => {
fixture.engine = undefined;
});
+afterEach(() => setLocale("en"));
+
describe("browser profile manager", () => {
it("renders on the web without an Electron bridge and never exposes internal partition ids", () => {
const html = renderToStaticMarkup(createElement(BrowserProfilesManager));
@@ -98,6 +101,19 @@ describe("browser profile manager", () => {
expect(html).not.toMatch(/<option value="chrome" disabled/);
});
+ it.each(["computer", "Mac", "PC"] as const)("localizes a shared Chrome's %s device without changing its wire value", (device) => {
+ fixture.engine = { myChrome: true, myChromeOn: { name: "Studio", device, online: true } };
+ fixture.profiles = [{ id: "work", name: "Work", browser: "chrome" }];
+ const render = () => renderToStaticMarkup(createElement(BrowserProfilesManager));
+ expect(render()).toContain(`the Chrome on Studio, your ${device}. It works while that ${device} is awake`);
+ setLocale("pt-br");
+ const localized = device === "computer" ? "computador" : device;
+ expect(render()).toContain(`este é o Chrome de Studio, seu ${localized}. Ele funciona enquanto esse ${localized} estiver ativo`);
+ expect(fixture.engine.myChromeOn).toMatchObject({ device });
+ setLocale("en");
+ expect(render()).toContain(`your ${device}`);
+ });
+
it("on My Cloud with nothing lent, it says how to lend Chrome", () => {
fixture.engine = { myChrome: false, myChromeLendable: true };
fixture.profiles = [{ id: "work", name: "Work", browser: "chrome" }];
diff --git a/src/components/BrowserProfilesManager.tsx b/src/components/BrowserProfilesManager.tsx
index 02950bb8ad..56b10b3fc8 100644
--- a/src/components/BrowserProfilesManager.tsx
+++ b/src/components/BrowserProfilesManager.tsx
@@ -4,6 +4,7 @@ import { api, ApiError, useStore, type Bot, type BotAnnouncement, type BrowserPr
import { browserProfileDeletionBlockReason, browserProfilesMutation, newBrowserProfileId } from "@/lib/browser-profiles";
import { isOwnerOrAdmin, readSessionState } from "@/lib/session";
import { t } from "@/lib/i18n";
+import { computerDeviceText } from "@/lib/computer-device";
import { SignedInSites } from "./SignedInSites";
import { Select } from "./Select";
import { browserScope } from "@/lib/team-browser";
@@ -153,7 +154,7 @@ export function BrowserProfilesManager({ bot, onProfileChanged, disabled = false
const usesMyChrome = (profile: BrowserProfile | undefined) => profile?.browser === "chrome" && (myChrome || myChromeLendable);
const chromeNote = <>
<p className="text-[11px] leading-relaxed text-ink-secondary">{t("settings.profiles.myChromeHint")}</p>
- {myChromeOn && <p className="text-[11px] leading-relaxed text-ink-secondary">{t("settings.profiles.myChromeLent", { name: myChromeOn.name, device: myChromeOn.device })}</p>}
+ {myChromeOn && <p className="text-[11px] leading-relaxed text-ink-secondary">{t("settings.profiles.myChromeLent", { name: myChromeOn.name, device: computerDeviceText(myChromeOn.device) })}</p>}
{myChromeOn?.online === false && <p className="text-[11px] leading-relaxed text-ink-secondary">{t("settings.profiles.myChromeLentOffline", { name: myChromeOn.name })}</p>}
</>;
return (
diff --git a/src/components/ComputerAskCard.test.ts b/src/components/ComputerAskCard.test.ts
index 35851cac54..d03ebc925a 100644
--- a/src/components/ComputerAskCard.test.ts
+++ b/src/components/ComputerAskCard.test.ts
@@ -1,12 +1,17 @@
import { createElement } from "react";
import { renderToStaticMarkup } from "react-dom/server";
-import { describe, expect, it } from "vitest";
+import { afterEach, describe, expect, it } from "vitest";
+
+import { computerAskWords } from "@/lib/computer-ask";
+import { setLocale } from "@/lib/i18n";
import { StoreProvider, type Bot, type Message } from "@/state/store";
import type { ComputerAskCard } from "../../shared/computer-ask";
import { ApprovalCard } from "./ApprovalCard";
import { PendingApprovalActions, PendingApprovalPanel, pendingApprovals, spokenApprovalPrompt } from "./PendingApproval";
+afterEach(() => setLocale("en"));
+
const bot = { id: "scout", name: "Scout" } as Bot;
function ask(view: Partial<ComputerAskCard> = {}, answered?: string): Message {
@@ -29,6 +34,32 @@ const panel = (message: Message) => {
};
describe("a bot's ask to turn on what it needs from the person's computer", () => {
+ it.each(["computer", "Mac", "PC"] as const)("localizes the %s device in both the request and reason without changing the wire", (device) => {
+ const message = ask({ device, reason: "paused" });
+ const words = () => computerAskWords(message.card, "Scout")!;
+ expect(words().line).toBe(`Scout wants to use your ${device}'s apps and screen`);
+ expect(words().reason).toBe(`Using your ${device} is paused.`);
+ setLocale("pt-br");
+ const localized = device === "computer" ? "computador" : device;
+ expect(words().line).toBe(`Scout quer usar os apps e a tela do seu ${localized}`);
+ expect(words().reason).toBe(`O uso do seu ${localized} está pausado.`);
+ expect(message.card!.computerAsk!.device).toBe(device);
+ const markup = panel(message);
+ expect(markup).toContain(`Scout quer usar os apps e a tela do seu ${localized}`);
+ expect(markup).toContain(`O uso do seu ${localized} está pausado.`);
+ expect(spokenApprovalPrompt(pendingApprovals([message])[0]!, "Scout")).toBe(`Scout quer usar os apps e a tela do seu ${localized}. O uso do seu ${localized} está pausado.`);
+ setLocale("en");
+ expect(words().line).toBe(`Scout wants to use your ${device}'s apps and screen`);
+ });
+
+ it.each([
+ ["folders", "Scout quer usar os arquivos do seu computador"],
+ ["terminal", "Scout quer executar comandos no seu computador"],
+ ] as const)("uses the localized computer noun for %s", (need, line) => {
+ setLocale("pt-br");
+ expect(computerAskWords(ask({ need, device: "computer" }).card, "Scout")!.line).toBe(line);
+ });
+
it("says who wants what and why, why it can't now, and offers Turn on and Not now", () => {
const markup = panel(ask());
expect(markup).toContain("Scout wants to use your PC&#x27;s apps and screen");
diff --git a/src/components/OptionCard.i18n.test.ts b/src/components/OptionCard.i18n.test.ts
new file mode 100644
index 0000000000..52eb79f919
--- /dev/null
+++ b/src/components/OptionCard.i18n.test.ts
@@ -0,0 +1,91 @@
+// @vitest-environment happy-dom
+import { act, createElement } from "react";
+import { createRoot, type Root } from "react-dom/client";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+import { setLocale } from "@/lib/i18n";
+import type { Message } from "@/state/store";
+import type { McpChangeRequest } from "../../shared/mcp-request";
+
+const fixture = vi.hoisted(() => ({ dispatch: vi.fn() }));
+vi.mock("@/state/store", async (original) => ({
+ ...await original<typeof import("@/state/store")>(),
+ useStore: () => ({ state: { bots: [] }, dispatch: fixture.dispatch }),
+}));
+
+import { OptionCard } from "./OptionCard";
+
+(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
+
+let host: HTMLDivElement;
+let root: Root;
+
+beforeEach(() => {
+ fixture.dispatch.mockReset();
+ host = document.createElement("div");
+ document.body.append(host);
+ root = createRoot(host);
+});
+
+afterEach(() => {
+ act(() => root.unmount());
+ host.remove();
+ setLocale("en");
+});
+
+function message(action: McpChangeRequest["action"], option: string): Message {
+ return {
+ id: "mcp-card", role: "bot", kind: "options", at: 1,
+ card: {
+ title: `${option} linear?`, subtitle: "https://mcp.linear.app/mcp", options: [option, "Cancel"],
+ requestId: "mcp-request", tool: "mcp_server", fixedOptions: true,
+ mcpRequest: { requestId: "mcp-request", botId: "bot-1", threadId: "thread-1", action, name: "linear", targetHash: "0".repeat(64) },
+ },
+ };
+}
+
+const render = (message: Message) => act(() => root.render(createElement(OptionCard, { botId: "bot-1", threadId: "thread-1", message })));
+const buttons = () => [...host.querySelectorAll<HTMLButtonElement>("[data-ask-choice]")];
+
+const actions = [
+ ["enable", "Turn on", "Ligar"],
+ ["update", "Change", "Alterar"],
+ ["remove", "Remove", "Remover"],
+] as const;
+
+describe("MCP option cards", () => {
+ it.each(actions)("localizes MCP %s choices but answers with their original protocol tokens", (action, english, portuguese) => {
+ const card = message(action, english);
+ render(card);
+ expect(buttons().map((button) => button.textContent)).toEqual([english, "Cancel"]);
+ setLocale("pt-br");
+ render(card);
+ expect(buttons().map((button) => button.textContent)).toEqual([portuguese, "Cancelar"]);
+ act(() => buttons()[0]!.click());
+ expect(fixture.dispatch).toHaveBeenLastCalledWith({ type: "answerCard", botId: "bot-1", threadId: "thread-1", messageId: "mcp-card", answer: english, groupId: undefined });
+ act(() => buttons()[1]!.click());
+ expect(fixture.dispatch).toHaveBeenLastCalledWith({ type: "answerCard", botId: "bot-1", threadId: "thread-1", messageId: "mcp-card", answer: "Cancel", groupId: undefined });
+ expect(card.card!.options).toEqual([english, "Cancel"]);
+ });
+
+ it.each(actions)("localizes a settled MCP %s answer without changing the saved answer", (action, english, portuguese) => {
+ const card = message(action, english);
+ card.card!.answered = "answer";
+ card.card!.answeredText = english;
+ render(card);
+ expect(host.textContent).toContain(english);
+ setLocale("pt-br");
+ render(card);
+ expect(host.textContent).toContain(portuguese);
+ expect(card.card!.answeredText).toBe(english);
+ expect(host.querySelector("[data-ask-choice]")).toBeNull();
+ });
+
+ it("leaves bot-authored choices unchanged when there is no MCP request", () => {
+ const card = message("update", "Change");
+ delete card.card!.mcpRequest;
+ setLocale("pt-br");
+ render(card);
+ expect(buttons().map((button) => button.textContent)).toEqual(["Change", "Cancel"]);
+ });
+});
diff --git a/src/components/OptionCard.tsx b/src/components/OptionCard.tsx
index 99629daaff..1310f87ba7 100644
--- a/src/components/OptionCard.tsx
+++ b/src/components/OptionCard.tsx
@@ -3,6 +3,7 @@ import { X } from "lucide-react";
import { useStore, visibleMessages, type Message } from "@/state/store";
import { cn } from "@/lib/cn";
import { t } from "@/lib/i18n";
+import { mcpRequestActionLabel } from "@/lib/mcp-request-label";
import { isPersistentQuestionCard, parseChoices } from "../../shared/ask-question";
import { ASK_QUIET_BUTTON, AskCard, AskChoices, AskReply, AskSettledLine, returnFocusToComposer, settledAnswer } from "./AskCard";
import { ExpandableText } from "./ExpandableText";
@@ -47,6 +48,12 @@ export function OptionCard({
if (!card || shouldHideOnboardingCard(message, transcript) || (card.requestId && card.dismissed && card.answered)) return null;
const options = parseChoices(card.options, MAX_CHOICES) ?? [];
+ const optionLabel = (option: string): string => {
+ if (!card.mcpRequest) return option;
+ if (option === "Cancel") return t("mcp.cancel");
+ return option === options[0] ? mcpRequestActionLabel(card.mcpRequest.action) : option;
+ };
+ const labels = options.map(optionLabel);
const index = transcript.findIndex((entry) => entry.id === message.id);
const quiet = !card.answered && index >= 0 && transcript.slice(index + 1).some((later) => later.role === "user" && later.kind === "text");
@@ -73,7 +80,7 @@ export function OptionCard({
</button>
)}
>
- {closed ? t("question.status.closed") : picked ? settledAnswer(picked, options) : <span>{card.title} · {t("question.status.answered")}</span>}
+ {closed ? t("question.status.closed") : picked ? settledAnswer(optionLabel(picked), labels) : <span>{card.title} · {t("question.status.answered")}</span>}
</AskSettledLine>
);
}
@@ -88,12 +95,12 @@ export function OptionCard({
>
{options.length > 0 && (
<AskChoices
- choices={options.map((label) => ({ label }))}
+ choices={labels.map((label) => ({ label }))}
label={card.title}
- picked={card.answeredText ?? card.answered ? [card.answeredText ?? card.answered!] : []}
+ picked={card.answeredText ?? card.answered ? [optionLabel(card.answeredText ?? card.answered!)] : []}
disabled={Boolean(card.answered)}
quiet={quiet}
- onPick={answer}
+ onPick={(label) => answer(options[labels.indexOf(label)] ?? label)}
/>
)}
{!card.answered && !card.tool && !card.fixedOptions && (
diff --git a/src/components/PendingApproval.tsx b/src/components/PendingApproval.tsx
index 4137bef2da..75db2301a5 100644
--- a/src/components/PendingApproval.tsx
+++ b/src/components/PendingApproval.tsx
@@ -5,9 +5,9 @@ import { cn } from "@/lib/cn";
import { t, tFromServer } from "@/lib/i18n";
import type { LocaleKey } from "@/locales";
import { SkillRequestPreview } from "@/components/SkillRequestPreview";
-import { titledCard, toolLabel } from "./ApprovalCard";
+import { titledCard, titledCardAction, toolLabel } from "./ApprovalCard";
import { ASK_QUIET_ANSWER, ASK_QUIET_BUTTON, ASK_SECONDARY_BUTTON, AskDetail, AskHeader, askPrimary, type Asker } from "./AskCard";
-import { outboundSummary } from "@/lib/approval-summary";
+import { approvalDetailText, outboundSummary } from "@/lib/approval-summary";
import { reviewedSkillSha256 } from "../../shared/skill-request";
import { useOwnerOrAdmin } from "@/lib/use-owner-or-admin";
import { useInboxOrigin } from "./InboxLine";
@@ -55,7 +55,7 @@ export function pendingApprovals(messages: Message[]): Pending[] {
allowKey: m.card!.allowKey,
allowSession: m.card!.allowSession,
commandAllowlist: m.card!.commandAllowlist,
- detail: m.card!.subtitle,
+ detail: approvalDetailText(m.card!),
held: m.card!.held,
heldCode: m.card!.heldCode,
}));
@@ -67,7 +67,12 @@ export function spokenApprovalPrompt(pending: Pending, requester: string): strin
const ask = yourComputerAsk(pending.message.card, requester);
if (ask) return `${requester}: ${ask.line}`;
const card = pending.message.card;
- if (card && titledCard(card)) return `${requester}: ${card.title} Review the details and choose ${card.options[0]} or ${card.options[1] ?? "Cancel"}.`;
+ if (card && titledCard(card)) return t("approval.voice.titled", {
+ requester,
+ title: card.title,
+ allow: titledCardAction(card),
+ cancel: t("approval.action.cancel"),
+ });
const isSkillRequest = isSkillApproval(pending);
const isProfileRequest = isProfileApproval(pending);
if (isSkillRequest) {
@@ -85,7 +90,7 @@ export function spokenApprovalPrompt(pending: Pending, requester: string): strin
const title = pending.message.card?.title.trim() || t("approval.voice.defaultUpdateProfile");
return t("approval.voice.profile", { requester, title });
}
- return t("approval.voice.command", { requester, tool: toolLabel(pending.tool), detail: pending.detail });
+ return t("approval.voice.command", { requester, tool: toolLabel(pending.tool), detail: card ? approvalDetailText(card) : pending.detail });
}
function label(pending: Pending): string {
@@ -127,7 +132,7 @@ function approvalWords(pending: Pending, botName?: string): { line: string; summ
const turnOn = computerAskWords(card, botName ?? t("approval.someone"));
if (turnOn) return { line: turnOn.line, summary: turnOn.why ?? turnOn.reason, ...(turnOn.why ? { note: turnOn.reason } : {}), detail: "" };
const ask = yourComputerAsk(card, botName ?? t("approval.someone"));
- const detail = (pending.commandAllowlist?.command ?? ask?.detail ?? pending.detail).trim();
+ const detail = (pending.commandAllowlist?.command ?? ask?.detail ?? (card ? approvalDetailText(card) : pending.detail)).trim();
if (outbound) return { line: outbound.headline, ...(outbound.summary ? { summary: outbound.summary } : {}), detail };
if (ask) return { line: ask.line, detail };
if (card?.mcpRequest) return { line: card.title, inline: detail, detail };
@@ -346,7 +351,7 @@ export function PendingApprovalActions({
className={allow.className}
style={allow.style}
>
- {titled ? pending.message.card?.options[0] : isSkillRequest
+ {titled && pending.message.card ? titledCardAction(pending.message.card) : isSkillRequest
? pending.message.card?.skillRequest?.action === "update"
? t("approval.action.update")
: t("approval.action.enable")
diff --git a/src/components/RoutineCalendarPage.dialogs.test.ts b/src/components/RoutineCalendarPage.dialogs.test.ts
index 42ca4d47e3..72abb72124 100644
--- a/src/components/RoutineCalendarPage.dialogs.test.ts
+++ b/src/components/RoutineCalendarPage.dialogs.test.ts
@@ -1,6 +1,6 @@
import { Children, createElement, isValidElement, type ReactElement, type ReactNode, type RefObject } from "react";
import { renderToStaticMarkup } from "react-dom/server";
-import { afterAll, beforeEach, describe, expect, it, vi } from "vitest";
+import { afterAll, afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { Bot } from "@/state/store";
import type { Routine, RoutineRun } from "../../shared/routines";
@@ -22,7 +22,7 @@ vi.mock("./DesktopCapabilities", async (importOriginal) => ({
}));
vi.mock("@/lib/analytics", () => ({ track: vi.fn() }));
-const { t } = await import("@/lib/i18n");
+const { setLocale, t } = await import("@/lib/i18n");
const { EventDetails, EventEditor, PausedList } = await import("./RoutineCalendarPage");
const bot = {
@@ -49,6 +49,7 @@ function render(element: () => ReactNode) {
beforeEach(() => { fixture.calls = []; });
afterAll(() => vi.unstubAllGlobals());
+afterEach(() => setLocale("en"));
describe.each([
{
@@ -124,13 +125,17 @@ describe("calendar event details drawer", () => {
});
describe("calendar event editor", () => {
- it("cannot save a room goal whose room is gone until another room is chosen", () => {
+ it.each([
+ ["en", "Room no longer exists. Choose another.", "Save"],
+ ["pt-br", "O grupo não existe mais. Escolha outro.", "Salvar"],
+ ])("cannot save a room goal whose room is gone until another room is chosen in %s", (locale, notice, save) => {
+ setLocale(locale);
const orphaned: Routine = { ...routine, target: "room-goal", groupId: "gone" };
const html = renderToStaticMarkup(createElement(() => EventEditor({
seed: { kind: "routine", at: 1, durationMinutes: 30, botIds: [bot.id], routine: orphaned },
bots: [bot], onClose: vi.fn(), onSavedCall: vi.fn(),
})));
- expect(html).toContain("Room no longer exists");
- expect(html).toMatch(/<button[^>]*\bdisabled=""[^>]*>(?:(?!<\/button>).)*Save<\/button>/s);
+ expect(html).toContain(notice);
+ expect(html).toMatch(new RegExp(`<button[^>]*\\bdisabled=""[^>]*>(?:(?!<\\/button>).)*${save}<\\/button>`, "s"));
});
});
diff --git a/src/components/RoutineCalendarPage.tsx b/src/components/RoutineCalendarPage.tsx
index ec6e5e8db6..96c66e70d4 100644
--- a/src/components/RoutineCalendarPage.tsx
+++ b/src/components/RoutineCalendarPage.tsx
@@ -922,7 +922,7 @@ export function EventEditor({
<div>
<label htmlFor="routine-goal-room" className="mb-2 block text-[13px] font-medium text-ink">{t("routines.editor.goalWhere")}</label>
<Select id="routine-goal-room" value={groupId} onChange={(event) => selectRoom(event.target.value)} className="w-full">
- {groupId && !selectedRoom && <option value={groupId} disabled>Room no longer exists. Choose another.</option>}<option value="">{t("routines.editor.goalOneOnOne")}</option>
+ {groupId && !selectedRoom && <option value={groupId} disabled>{t("routines.editor.roomMissing")}</option>}<option value="">{t("routines.editor.goalOneOnOne")}</option>
{rooms.map((room) => <option key={room.id} value={room.id}>{room.name}</option>)}
</Select>
</div>
diff --git a/src/components/SecretRequestCard.test.ts b/src/components/SecretRequestCard.test.ts
index be208f9601..6adfef9185 100644
--- a/src/components/SecretRequestCard.test.ts
+++ b/src/components/SecretRequestCard.test.ts
@@ -26,6 +26,7 @@ vi.mock("@/lib/analytics", () => ({ track: fixture.track }));
import { SecretRequestCard } from "./SecretRequestCard";
import { setLocale } from "@/lib/i18n";
+import { CREDENTIAL_TARGETS } from "../../shared/credential-request";
afterEach(() => setLocale("en"));
@@ -103,6 +104,39 @@ describe("SecretRequestCard ask card", () => {
});
});
+describe("SecretRequestCard Greenference copy", () => {
+ it("localizes the Greenference title, description and password field without changing the saved card", () => {
+ const message = secretCard({ target: "greenferenceApiKey", ...CREDENTIAL_TARGETS.greenferenceApiKey });
+ const render = () => renderToStaticMarkup(createElement(SecretRequestCard, { botId: "bot-1", threadId: "thread-1", message }));
+ const english = render();
+ expect(english).toContain('aria-label="Greenference API key"');
+ expect(english).toContain("Runs Greenference models with your own key.");
+ expect(english).toContain('placeholder="Paste your Greenference API key"');
+ setLocale("pt-br");
+ const portuguese = render();
+ expect(portuguese).toContain('aria-label="Chave de API do Greenference"');
+ expect(portuguese).toContain("Roda modelos do Greenference com sua própria chave.");
+ expect(portuguese).toContain('placeholder="Cole sua chave de API do Greenference"');
+ expect(portuguese).toContain(CREDENTIAL_TARGETS.greenferenceApiKey.helpUrl);
+ expect(message.secret).toMatchObject({ target: "greenferenceApiKey", ...CREDENTIAL_TARGETS.greenferenceApiKey });
+ setLocale("en");
+ expect(render()).toBe(english);
+ });
+
+ it.each([
+ { stopped: true },
+ { superseded: true },
+ { provided: true, resumed: true },
+ ])("localizes the Greenference label in settled states %j", (state) => {
+ setLocale("pt-br");
+ const html = view({ target: "greenferenceApiKey", ...CREDENTIAL_TARGETS.greenferenceApiKey, ...state });
+ expect(html).toContain('data-ask-card="settled"');
+ expect(html).toContain('aria-label="Chave de API do Greenference"');
+ expect(html).not.toContain('aria-label="Greenference API key"');
+ expect(html).not.toContain("<input");
+ });
+});
+
describe("SecretRequestCard key analytics", () => {
const KEY = "boat_ZZtestSECRET0123456789abcdef";
type Props = { children?: ReactNode; type?: string; onChange?: (event: { target: { value: string } }) => void; onSubmit?: (event: { preventDefault(): void }) => void };
diff --git a/src/components/SecretRequestCard.tsx b/src/components/SecretRequestCard.tsx
index 9742d9ff07..ff7d8dd4f0 100644
--- a/src/components/SecretRequestCard.tsx
+++ b/src/components/SecretRequestCard.tsx
@@ -27,6 +27,10 @@ export function SecretRequestCard({
}) {
const { dispatch } = useStore();
const secret = message.secret!;
+ const greenference = secret.target === "greenferenceApiKey";
+ const label = greenference ? t("keys.greenference.label") : secret.label;
+ const placeholder = greenference ? t("keys.greenference.placeholder") : secret.placeholder;
+ const suppliedDescription = greenference ? t("secretCard.greenference.description") : secret.description;
const remoteClient = window.ogb?.remoteClient?.active === true;
const [value, setValue] = useState("");
const [saving, setSaving] = useState(false);
@@ -42,7 +46,7 @@ export function SecretRequestCard({
const stopped = secret.stopped === true;
const authorName = message.from?.name ?? botName;
const deliveryDescription = custom && authorName ? t(secret.delivery === "file" ? "secretCard.delivery.fileNamed" : "secretCard.delivery.refNamed", { botName: authorName }) : null;
- const customDescription = activeLocale() !== "en" && deliveryDescription ? [secret.reason, deliveryDescription].filter(Boolean).join(" ") : secret.description;
+ const customDescription = activeLocale() !== "en" && deliveryDescription ? [secret.reason, deliveryDescription].filter(Boolean).join(" ") : suppliedDescription;
const description = superseded
? t("chat.secret.superseded")
: provided
@@ -150,8 +154,8 @@ export function SecretRequestCard({
if (superseded) {
return (
- <AskSettledLine icon={<X size={13} />} ariaLabel={secret.label}>
- <span className="text-ink-secondary" title={description}>{secret.label}</span>
+ <AskSettledLine icon={<X size={13} />} ariaLabel={label}>
+ <span className="text-ink-secondary" title={description}>{label}</span>
<span> · {t("chat.secret.supersededShort")}</span>
</AskSettledLine>
);
@@ -159,8 +163,8 @@ export function SecretRequestCard({
if (stopped && !provided) {
return (
- <AskSettledLine icon={<X size={13} />} ariaLabel={secret.label}>
- <span className="text-ink-secondary" title={customDescription}>{secret.label}</span>
+ <AskSettledLine icon={<X size={13} />} ariaLabel={label}>
+ <span className="text-ink-secondary" title={customDescription}>{label}</span>
<span> · {t("chat.secret.stopped")}</span>
</AskSettledLine>
);
@@ -175,7 +179,7 @@ export function SecretRequestCard({
) : undefined;
return (
<AskSettledLine
- ariaLabel={secret.label}
+ ariaLabel={label}
icon={secret.resumed || stopped
? undefined
: declined
@@ -186,7 +190,7 @@ export function SecretRequestCard({
action={retry}
detail={error && <p role="alert" className="ms-[19px] mt-1 text-[12px] text-danger">{error}</p>}
>
- <span className="text-ink-secondary" title={description}>{provided ? t("chat.secret.labelSaved", { label: secret.label }) : secret.label}</span>
+ <span className="text-ink-secondary" title={description}>{provided ? t("chat.secret.labelSaved", { label }) : label}</span>
<span className={declined ? "text-danger" : undefined}> · {footerLabel}</span>
</AskSettledLine>
);
@@ -194,9 +198,9 @@ export function SecretRequestCard({
return (
<AskCard
- ariaLabel={secret.label}
+ ariaLabel={label}
icon={<KeyRound size={15} />}
- title={secret.label}
+ title={label}
explanation={description}
onDismiss={dismiss}
dismissLabel={t("notice.notNow")}
@@ -215,9 +219,9 @@ export function SecretRequestCard({
dir="ltr"
value={value}
onChange={(event) => setValue(event.target.value)}
- placeholder={secret.placeholder}
+ placeholder={placeholder}
disabled={saving || savedLocally}
- aria-label={secret.label}
+ aria-label={label}
className={cn(ASK_FIELD, "min-w-[10rem] flex-1")}
/>
<button type="submit" disabled={saving || (!value.trim() && !savedLocally)} {...askPrimary(color)}>
diff --git a/src/components/browser/ChromeRow.test.ts b/src/components/browser/ChromeRow.test.ts
new file mode 100644
index 0000000000..3f0dfc0afb
--- /dev/null
+++ b/src/components/browser/ChromeRow.test.ts
@@ -0,0 +1,36 @@
+import { createElement, type ComponentProps } from "react";
+import { renderToStaticMarkup } from "react-dom/server";
+import { afterEach, describe, expect, it, vi } from "vitest";
+
+import { setLocale } from "@/lib/i18n";
+import { ChromeRow } from "./ChromeRow";
+
+const props: ComponentProps<typeof ChromeRow> = {
+ botName: "Scout", tabs: [], nav: { url: "about:blank", loading: false, canGoBack: false, canGoForward: false },
+ connected: false, control: null, takeStatus: "", commandsReady: false, profileName: "Work", fullscreen: false, maximized: false, menu: null,
+ onCommand: vi.fn(), onAddress: vi.fn(), onTake: vi.fn(), onHandBack: vi.fn(), onFullscreen: vi.fn(), onMaximize: vi.fn(), onProfiles: vi.fn(),
+};
+
+afterEach(() => setLocale("en"));
+
+describe("browser window controls", () => {
+ it.each([
+ ["en", "Maximize (fill the app window)", "Full screen (whole display)", "Maximize", "Full screen"],
+ ["pt-br", "Maximizar (ocupar a janela do app)", "Usar tela cheia (ocupar o monitor inteiro)", "Maximizar", "Tela cheia"],
+ ])("distinguishes the app window from the whole display in %s", (locale, maximizeHint, fullscreenHint, maximize, fullscreen) => {
+ setLocale(locale);
+ const html = renderToStaticMarkup(createElement(ChromeRow, props));
+ expect(html).toContain(`title="${maximizeHint}" aria-label="${maximize}"`);
+ expect(html).toContain(`title="${fullscreenHint}" aria-label="${fullscreen}"`);
+ });
+
+ it.each([
+ ["en", "Restore size", "Exit full screen"],
+ ["pt-br", "Restaurar tamanho", "Sair da tela cheia"],
+ ])("keeps restore and exit labels in %s", (locale, restore, exit) => {
+ setLocale(locale);
+ const html = renderToStaticMarkup(createElement(ChromeRow, { ...props, maximized: true, fullscreen: true }));
+ expect(html).toContain(`title="${restore}" aria-label="${restore}"`);
+ expect(html).toContain(`title="${exit}" aria-label="${exit}"`);
+ });
+});
diff --git a/src/components/browser/ChromeRow.tsx b/src/components/browser/ChromeRow.tsx
index cbc569e03c..9e9d60c86b 100644
--- a/src/components/browser/ChromeRow.tsx
+++ b/src/components/browser/ChromeRow.tsx
@@ -109,8 +109,8 @@ export const ChromeRow = forwardRef<HTMLInputElement, {
<span className="truncate">{PILL_TEXT[pill](botName)}</span>
{pill === "bot" || pill === "watching" ? <span className="shrink-0 text-ink">· {t("browser.control.take")}</span> : handsBack ? <span className="shrink-0">· {t("browser.control.handBack")}</span> : null}
</button>
- <button className={button} title={props.maximized ? t("browser.panel.restore") : "Maximize (fill the app window)"} aria-label={t(props.maximized ? "browser.panel.restore" : "browser.panel.maximize")} onClick={props.onMaximize}>{props.maximized ? <Shrink size={15} /> : <AppWindow size={15} />}</button>
- <button className={button} title={props.fullscreen ? t("browser.panel.exitFullscreen") : "Full screen (whole display)"} aria-label={t(props.fullscreen ? "browser.panel.exitFullscreen" : "browser.panel.fullscreen")} onClick={props.onFullscreen}>{props.fullscreen ? <Minimize size={15} /> : <Maximize size={15} />}</button>
+ <button className={button} title={t(props.maximized ? "browser.panel.restore" : "browser.panel.maximizeHint")} aria-label={t(props.maximized ? "browser.panel.restore" : "browser.panel.maximize")} onClick={props.onMaximize}>{props.maximized ? <Shrink size={15} /> : <AppWindow size={15} />}</button>
+ <button className={button} title={t(props.fullscreen ? "browser.panel.exitFullscreen" : "browser.panel.fullscreenHint")} aria-label={t(props.fullscreen ? "browser.panel.exitFullscreen" : "browser.panel.fullscreen")} onClick={props.onFullscreen}>{props.fullscreen ? <Minimize size={15} /> : <Maximize size={15} />}</button>
<button className={`${button} rounded-xl bg-inset p-1.5`} title={t("browser.panel.profileTitle", { name: props.profileName })} aria-label={t("browser.panel.profiles")} onClick={props.onProfiles}><UserRound size={15} /></button>
</div>
<form
diff --git a/src/lib/activity-text.test.ts b/src/lib/activity-text.test.ts
index ef02c3da14..3475f6c6b1 100644
--- a/src/lib/activity-text.test.ts
+++ b/src/lib/activity-text.test.ts
@@ -20,7 +20,7 @@ describe("a delegating bot's resumed line", () => {
expect(activityText({}, english)).toBe(english);
setLocale("pt-br");
const portuguese = serverLine("pt-br", "server.teammates.resumedQuestionRestart", { who: "Scout, Ada" });
- expect(activityText({}, portuguese)).toBe("Após reiniciar, retomou o trabalho com uma pergunta de Scout, Ada e está revisando");
+ expect(activityText({}, portuguese)).toBe("Após uma reinicialização, retomou o trabalho com uma pergunta de Scout, Ada e está revisando");
expect(activityText({}, english)).toBe(english);
});
});
@@ -50,7 +50,7 @@ describe("server notices", () => {
it("word a bot's fixed line, and leave its other lines as written", () => {
setLocale("pt-br");
expect(botLineText({ text: "English", textCode: "chat.notice.webhookHome", textParams: { name: "Orders" } }))
- .toBe("Voltei para este computador, então meu webhook “Orders” tem um endereço aqui novamente. Abra Automações, escolha “Copiar endereço” em “Orders” e cole no app que envia para ele.");
+ .toBe("Voltei para este computador, então meu webhook “Orders” tem um endereço aqui novamente. Abra “Automações”, escolha “Copiar endereço” em “Orders” e cole no app que envia para ele.");
expect(botLineText({ text: "Hello" })).toBe("Hello");
});
});
diff --git a/src/lib/approval-request-contract.test.ts b/src/lib/approval-request-contract.test.ts
new file mode 100644
index 0000000000..431a901483
--- /dev/null
+++ b/src/lib/approval-request-contract.test.ts
@@ -0,0 +1,155 @@
+import { randomUUID } from "node:crypto";
+import { fileURLToPath } from "node:url";
+import { createElement } from "react";
+import { renderToStaticMarkup } from "react-dom/server";
+import { afterEach, describe, expect, it, vi } from "vitest";
+import type { RuntimeEvent } from "../../shared/runtime-events";
+import { claudeElicitations } from "../../server/drivers/claude-elicitation";
+import { CodexDriver } from "../../server/drivers/codex";
+import { readMessage } from "../../server/message-db";
+import { runtimeRequestCardFields } from "../../server/request-card";
+import { Store } from "../../server/store";
+import { recordEvents } from "../../server/testing/events";
+import { ApprovalCard } from "@/components/ApprovalCard";
+import { PendingApprovalPanel, pendingApprovals, spokenApprovalPrompt } from "@/components/PendingApproval";
+import type { Message } from "@/state/store";
+import { approvalDetailText } from "./approval-summary";
+import { setLocale } from "./i18n";
+
+vi.mock("../../server/drivers/codex-release", async (importOriginal) => ({
+ ...await importOriginal<typeof import("../../server/drivers/codex-release")>(),
+ readLatestCodexRelease: async () => "0.156.1",
+}));
+
+type RequestOpened = Extract<RuntimeEvent, { type: "request.opened" }>;
+const selection = () => ({ instanceId: "fixture", model: "fixture-model" });
+
+function claudeRequest(server: string, message: string): RequestOpened {
+ const events: RequestOpened[] = [];
+ const elicitation = claudeElicitations(async () => true, (event) => {
+ if (event.type === "request.opened") events.push({
+ eventId: randomUUID(), provider: "claude", threadId: randomUUID(), createdAt: new Date().toISOString(), ...event,
+ });
+ });
+ expect(elicitation.frame({
+ type: "control_request", request_id: "confirmation",
+ request: { subtype: "elicitation", mcp_server_name: server, message, mode: "form", requested_schema: { properties: {} } },
+ })).toBe(true);
+ expect(events).toHaveLength(1);
+ return events[0]!;
+}
+
+function persistedRequest(event: RequestOpened): Message {
+ const store = new Store(selection);
+ const sent = store.appendMessage(event.threadId, {
+ role: "bot", kind: "options",
+ card: { title: "Approval needed", ...runtimeRequestCardFields(event, { permission: true, guestDriven: false }) },
+ });
+ const stored = readMessage(event.threadId, sent.id);
+ expect(stored?.card?.subtitle).toBe(sent.card?.subtitle);
+ expect(stored?.card?.summaryCode).toBe(event.summaryCode);
+ expect(stored?.card?.summaryParams).toEqual(sent.card?.summaryParams);
+ return JSON.parse(JSON.stringify(stored));
+}
+
+function expectDetails(message: Message, detail: string) {
+ expect(approvalDetailText(message.card!)).toBe(detail);
+ const [pending] = pendingApprovals([message]);
+ expect(pending?.detail).toBe(detail);
+ expect(renderToStaticMarkup(createElement(ApprovalCard, { message }))).toContain(detail);
+ expect(renderToStaticMarkup(createElement(PendingApprovalPanel, { pending: pending!, count: 1, index: 0 }))).toContain(detail);
+ expect(spokenApprovalPrompt(pending!, "Scout")).toContain(detail);
+}
+
+afterEach(() => {
+ setLocale("en");
+ vi.unstubAllEnvs();
+});
+
+describe("approval summary from driver event through persisted card to renderer", () => {
+ it.each([
+ ["github", "", "github asks to continue", "github pede para continuar"],
+ ["", "", "An MCP server asks to continue", "Um servidor MCP pede para continuar"],
+ ["", "External words", "An MCP server: External words", "Um servidor MCP: External words"],
+ ["github", "External words", "github: External words", "github: External words"],
+ ])("renders and speaks Claude's %s / %s without rewriting provider text", (server, words, english, portuguese) => {
+ const event = claudeRequest(server!, words!);
+ const message = persistedRequest(event);
+ expect(message.card?.subtitle).toBe(english);
+ expectDetails(message, english!);
+ setLocale("pt-br");
+ expectDetails(message, portuguese!);
+ expect(message.card?.subtitle).toBe(english);
+ });
+
+ it.each([undefined, "Allow ChatGPT to use Safari?"])("renders and speaks Codex's real app-access event for %j", async (message) => {
+ vi.stubEnv("FAKE_CODEX_MODE", "approval");
+ vi.stubEnv("FAKE_CODEX_APPROVAL_REQUEST", JSON.stringify({
+ method: "mcpServer/elicitation/request",
+ params: {
+ mode: "form", message, _meta: { app_name: "Safari" },
+ requestedSchema: { properties: { approval: { enum: ["once"] } }, required: ["approval"] },
+ },
+ }));
+ const instance = await CodexDriver.create({
+ instanceId: "approval-contract", displayName: "Fixture", enabled: true, environment: {},
+ config: { cli: fileURLToPath(new URL("../../server/testing/fake-codex-app-server.ts", import.meta.url)), fullAuto: false },
+ });
+ const recorder = recordEvents(instance.adapter);
+ try {
+ const threadId = randomUUID();
+ await instance.adapter.sendTurn({ threadId, text: "use Safari" });
+ const event = await recorder.until((candidate) => candidate.type === "request.opened");
+ if (event.type !== "request.opened") throw new Error("Expected an approval request");
+ const received = persistedRequest(event);
+ expect(received.card?.summaryCode).toBe(message ? undefined : "chat.notice.appAccessRequested");
+ expectDetails(received, message ?? "App access requested");
+ setLocale("pt-br");
+ expectDetails(received, message ?? "Pedido de acesso ao app");
+ expect(received.card?.subtitle).toBe(message ?? "App access requested");
+ await instance.adapter.respondToRequest(threadId, event.requestId!, { behavior: "deny" });
+ await recorder.until((candidate) => candidate.type === "turn.completed");
+ } finally {
+ recorder.stop();
+ await instance.dispose();
+ }
+ });
+
+ it("rewords an already collected pending approval when the language changes", () => {
+ const message = persistedRequest(claudeRequest("github", ""));
+ const [pending] = pendingApprovals([message]);
+ setLocale("pt-br");
+ expect(spokenApprovalPrompt(pending!, "Scout")).toContain("github pede para continuar");
+ expect(renderToStaticMarkup(createElement(PendingApprovalPanel, { pending: pending!, count: 1, index: 0 })))
+ .toContain("github pede para continuar");
+ });
+
+ it.each([undefined, "chat.notice.unknown", "approval.someone", "chat.notice.elicitationContinue"])("keeps the English fallback for a legacy, unknown, out-of-namespace or incomplete code %j", (summaryCode) => {
+ const message = persistedRequest(claudeRequest("", ""));
+ message.card!.summaryCode = summaryCode;
+ setLocale("pt-br");
+ expectDetails(message, "An MCP server asks to continue");
+ });
+
+ it("scrubs coded card params at the persistence boundary too", () => {
+ const secret = `sk-${"b".repeat(24)}`;
+ const event = claudeRequest("", "External words");
+ event.summary = `An MCP server: ${secret}`;
+ event.summaryParams = { message: secret };
+ const message = persistedRequest(event);
+ expect(JSON.stringify(message)).not.toContain(secret);
+ expect(message.card?.summaryParams?.message).toBe("«redacted 27 chars»");
+ setLocale("pt-br");
+ expectDetails(message, "Um servidor MCP: «redacted 27 chars»");
+ });
+
+ it("keeps secrets out of both the stored fallback and its params", () => {
+ const secret = `sk-${"a".repeat(24)}`;
+ const event = claudeRequest("", secret);
+ const message = persistedRequest(event);
+ expect(JSON.stringify(message)).not.toContain(secret);
+ expect(message.card?.summaryParams?.message).toBe("«redacted 27 chars»");
+ setLocale("pt-br");
+ expectDetails(message, "Um servidor MCP: «redacted 27 chars»");
+ });
+});
diff --git a/src/lib/approval-summary.ts b/src/lib/approval-summary.ts
index 7a56770efa..4ae6f6cb66 100644
--- a/src/lib/approval-summary.ts
+++ b/src/lib/approval-summary.ts
@@ -1,5 +1,10 @@
import { t } from "@/lib/i18n";
import type { OptionCardData } from "@/state/store";
+import { noticeText } from "./activity-text";
+
+export function approvalDetailText(card: Pick<OptionCardData, "subtitle" | "summaryCode" | "summaryParams">): string {
+ return noticeText(card.summaryCode, card.subtitle, card.summaryParams);
+}
export interface OutboundCall {
app: string | null;
diff --git a/src/lib/clock-time.test.ts b/src/lib/clock-time.test.ts
index 11b878b761..640d6bbccd 100644
--- a/src/lib/clock-time.test.ts
+++ b/src/lib/clock-time.test.ts
@@ -1,6 +1,7 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { clockOptions, formatTime, namesLocale } from "./clock-time";
+import { formatTime as legacyFormatTime } from "./format-time";
import { setLocale } from "./i18n";
import { niceTime } from "./schedule-label";
@@ -12,6 +13,23 @@ afterEach(() => {
});
describe("a time of day", () => {
+ it("shares the active clock with the legacy import and follows language changes", () => {
+ expect(legacyFormatTime).toBe(formatTime);
+ vi.stubGlobal("navigator", { language: "en-US" });
+ const english = new Date(at).toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" });
+ expect(formatTime(at)).toBe(english);
+ setLocale("pt-br");
+ expect(formatTime(at)).toBe("09:05");
+ setLocale("en");
+ expect(formatTime(at)).toBe(english);
+ });
+
+ it("localizes invalid dates without changing the English fallback", () => {
+ expect(formatTime(NaN)).toBe("Invalid Date");
+ setLocale("pt-br");
+ expect(formatTime(NaN)).toBe("Data inválida");
+ });
+
it("keeps an English app's clock exactly as before, whatever the browser's region", () => {
for (const region of ["en-US", "en-GB"]) {
vi.stubGlobal("navigator", { language: region });
diff --git a/src/lib/clock-time.ts b/src/lib/clock-time.ts
index a0c9297477..94d488c9b7 100644
--- a/src/lib/clock-time.ts
+++ b/src/lib/clock-time.ts
@@ -1,4 +1,4 @@
-import { activeLocale, intlLocale } from "@/lib/i18n";
+import { activeLocale, intlLocale, t } from "@/lib/i18n";
const twentyFourHour = new Map<string, boolean>();
@@ -19,7 +19,7 @@ let timeFormat: { locale: string; clock: Intl.DateTimeFormat } | undefined;
export function formatTime(at: number) {
const date = new Date(at);
// toLocaleTimeString's output, where Intl.DateTimeFormat.format would throw
- if (Number.isNaN(date.getTime())) return "Invalid Date";
+ if (Number.isNaN(date.getTime())) return t("time.invalid");
const locale = intlLocale();
if (timeFormat?.locale !== locale) timeFormat = { locale, clock: new Intl.DateTimeFormat(locale, clockOptions(locale)) };
return timeFormat.clock.format(date);
diff --git a/src/lib/cloud-send.test.ts b/src/lib/cloud-send.test.ts
index eaa01a382b..f68f5fbc82 100644
--- a/src/lib/cloud-send.test.ts
+++ b/src/lib/cloud-send.test.ts
@@ -55,9 +55,9 @@ describe("the one-time move's line", () => {
text: "Your bots couldn't move to Garage server yet: Sign in to Garage server in the app first.", reason: failing.error,
});
setLocale("pt-br");
- expect(moveLine({ phase: "copy", failing }, "local")?.reason).toBe("Entre em Garage server no app primeiro.");
+ expect(moveLine({ phase: "copy", failing }, "local")?.reason).toBe("Primeiro, faça login em Garage server no app.");
expect(moveLine({ phase: "copy", failing, place }, "local")).toMatchObject({
- text: "Seus bots ainda não conseguiram ir para Garage server: Entre em Garage server no app primeiro.", reason: "Entre em Garage server no app primeiro.",
+ text: "Seus bots ainda não conseguiram ir para Garage server: Primeiro, faça login em Garage server no app.", reason: "Primeiro, faça login em Garage server no app.",
});
});
diff --git a/src/lib/computer-ask.ts b/src/lib/computer-ask.ts
index 2916a18fe2..a05b3c956d 100644
--- a/src/lib/computer-ask.ts
+++ b/src/lib/computer-ask.ts
@@ -1,4 +1,5 @@
import { t } from "./i18n";
+import { computerDeviceText } from "./computer-device";
import type { LocaleKey } from "@/locales";
import {
computerAskHeadline, computerAskReasonLine, needsTheApp, turnsOnFromHere, type ComputerAskCard,
@@ -35,10 +36,11 @@ export function computerAskWords(card: Pick<OptionCardData, "computerAsk"> | und
const reason = computerAskReasonLine(ask, name);
const failed = ask.state === "failed";
const outcome = OUTCOME[ask.state];
+ const device = computerDeviceText(ask.device);
return {
- line: t(headline.key as LocaleKey, { ...headline.params, name }),
+ line: t(headline.key as LocaleKey, { ...headline.params, device, name }),
...(ask.why ? { why: ask.why } : {}),
- reason: `${failed ? `${t("computerAsk.state.failed")} ` : ""}${t(reason.key as LocaleKey, reason.params)}`,
+ reason: `${failed ? `${t("computerAsk.state.failed")} ` : ""}${t(reason.key as LocaleKey, { ...reason.params, device })}`,
...(turnsOnFromHere(ask.reason) ? { turnOn: t(failed ? "computerAsk.action.tryAgain" : "computerAsk.action.turnOn") } : {}),
...(needsTheApp(ask.reason) ? { getApp: t("computerAsk.action.getApp") } : {}),
...(outcome ? { outcome: t(outcome, { name }) } : {}),
diff --git a/src/lib/computer-device.ts b/src/lib/computer-device.ts
new file mode 100644
index 0000000000..22fb94dc27
--- /dev/null
+++ b/src/lib/computer-device.ts
@@ -0,0 +1,6 @@
+import { t } from "./i18n";
+import type { ComputerDevice } from "../../shared/computer-ask";
+
+export function computerDeviceText(device: ComputerDevice): string {
+ return device === "computer" ? t("vm.host.computer") : device;
+}
diff --git a/src/lib/fixed-runtime-lines.test.ts b/src/lib/fixed-runtime-lines.test.ts
index c7cbc470fd..c3edd57b72 100644
--- a/src/lib/fixed-runtime-lines.test.ts
+++ b/src/lib/fixed-runtime-lines.test.ts
@@ -113,8 +113,8 @@ describe("report receipts", () => {
expect(notYetLine({ ok: false, retry: true, why: "server" }, "pt-br")).toContain("o servidor da equipe do MausBot não pôde receber o relatório agora");
expect(refusedLine("too large. \n", "en")).toBe("The MausBot team's server refused this bug report, so nothing was sent: too large.");
expect(refusedLine("too large. \n", "pt-br")).toBe("O servidor da equipe do MausBot recusou este relatório de problema, então nada foi enviado: too large.");
- expect(fullLine(40, "pt-br")).toBe("Não foi enviado: já há 40 relatórios de problemas aguardando envio à equipe do MausBot. Digite @devs novamente depois que eles forem enviados.");
- expect(droppedLine("pt-br")).toBe("Um relatório de problema desta conversa não chegou à equipe do MausBot durante uma semana e foi descartado. Digite @devs novamente para enviar outro.");
+ expect(fullLine(40, "pt-br")).toBe("Não foi enviado: já há 40 relatórios de problemas na fila para a equipe do MausBot. Aguarde o envio e digite @devs novamente.");
+ expect(droppedLine("pt-br")).toBe("Um relatório de problema desta conversa ficou uma semana sem chegar à equipe do MausBot e, por isso, foi descartado. Digite @devs novamente para enviar outro.");
});
});
diff --git a/src/lib/format-time.ts b/src/lib/format-time.ts
index 0b02f8ee65..f0271a249e 100644
--- a/src/lib/format-time.ts
+++ b/src/lib/format-time.ts
@@ -1,7 +1 @@
-const TIME_FORMAT = new Intl.DateTimeFormat(undefined, { hour: "numeric", minute: "2-digit" });
-
-export function formatTime(at: number) {
- const date = new Date(at);
- // toLocaleTimeString's output, where Intl.DateTimeFormat.format would throw
- return Number.isNaN(date.getTime()) ? "Invalid Date" : TIME_FORMAT.format(date);
-}
+export { formatTime } from "./clock-time";
diff --git a/src/lib/keyboard-shortcuts.test.ts b/src/lib/keyboard-shortcuts.test.ts
index b0b1c15b33..1b7544f375 100644
--- a/src/lib/keyboard-shortcuts.test.ts
+++ b/src/lib/keyboard-shortcuts.test.ts
@@ -14,15 +14,20 @@ import { setLocale } from "./i18n";
afterEach(() => setLocale("en"));
describe("keyboard-shortcuts", () => {
- it("keeps uncatalogued shortcuts in English while existing rows still localize", () => {
+ it("localizes the follow-up shortcut without changing its English description", () => {
const items = SHORTCUT_GROUPS.flatMap((group) => group.items);
const followUp = items.find((item) => item.id === "send-follow-up")!;
expect(shortcutDescription(followUp)).toBe(followUp.description);
setLocale("pt-br");
- expect(shortcutDescription(followUp)).toBe(followUp.description);
+ expect(shortcutDescription(followUp)).toBe("Enquanto um bot trabalha: colocar na fila em vez de direcionar, ou o contrário");
expect(shortcutDescription(items.find((item) => item.id === "toggle-sidebar")!)).toBe("Recolher ou expandir a barra lateral");
});
+ it("keeps an uncatalogued shortcut's own description", () => {
+ setLocale("pt-br");
+ expect(shortcutDescription({ id: "future-shortcut", description: "Future action", macKeys: [], winKeys: [] })).toBe("Future action");
+ });
+
it("lists ⌘\\ or Ctrl+\\ for collapsing the sidebar, and matches only that chord", () => {
const item = SHORTCUT_GROUPS.flatMap((group) => group.items).find((entry) => entry.id === "toggle-sidebar")!;
expect(item).toMatchObject({ description: "Collapse or expand the sidebar", macKeys: ["⌘", "\\"], winKeys: ["Ctrl", "\\"] });
diff --git a/src/lib/mcp-request-label.ts b/src/lib/mcp-request-label.ts
new file mode 100644
index 0000000000..2428088140
--- /dev/null
+++ b/src/lib/mcp-request-label.ts
@@ -0,0 +1,12 @@
+import { t } from "./i18n";
+import type { McpChangeRequest } from "../../shared/mcp-request";
+
+const ACTION_KEY = {
+ enable: "mcp.turnOn",
+ update: "mcp.request.change",
+ remove: "mcp.request.remove",
+} as const;
+
+export function mcpRequestActionLabel(action: McpChangeRequest["action"]): string {
+ return t(ACTION_KEY[action]);
+}
diff --git a/src/lib/server-word-contracts.test.ts b/src/lib/server-word-contracts.test.ts
index 1f0130939b..d22cef554e 100644
--- a/src/lib/server-word-contracts.test.ts
+++ b/src/lib/server-word-contracts.test.ts
@@ -4,7 +4,7 @@ import { activityText, noticeText, routineLineText } from "./activity-text";
import { setLocale, t } from "./i18n";
import { serverErrorText } from "./server-error";
import { USER_ERROR, userError, type UserErrorKey } from "../../server/user-errors";
-import { CHAT_NOTICE, noticeLine, noticeTool, type ChatNoticeKey } from "../../server/chat-notices";
+import { CHAT_NOTICE, noticeFailure, noticeLine, noticeSummary, noticeTool, type ChatNoticeKey } from "../../server/chat-notices";
import { ROUTINE_LINE, codedLine, type RoutineLineKey } from "../../server/routine-lines";
const paramsFor = (template: string) => Object.fromEntries([...template.matchAll(/\{(\w+)\}/g)].map(([, name]) => [name!, `Fixture ${name}`]));
@@ -22,15 +22,23 @@ describe("fixed server words across transport and renderer", () => {
expect(serverErrorText({ errorKey: "serverError.unknown" }, body.error)).toBe(body.error);
});
- it.each(Object.entries(CHAT_NOTICE).filter(([key]) => !key.includes(".part.")))("renders line and tool %s using the same coded contract", (key, template) => {
+ it.each(Object.entries(CHAT_NOTICE).filter(([key]) => !key.includes(".part.")))("renders line, tool, failure and summary %s using the same coded contract", (key, template) => {
const params = paramsFor(template);
const line = noticeLine(key as ChatNoticeKey, params);
const tool = noticeTool(key as ChatNoticeKey, params, { ok: true });
+ const failure = noticeFailure(key as ChatNoticeKey, params);
+ const summary = noticeSummary(key as ChatNoticeKey, params);
expect(noticeText(line.textCode, line.text, line.textParams)).toBe(line.text);
expect(activityText(tool, tool.name)).toBe(tool.name);
+ expect(noticeText(failure.text.key, failure.message, failure.text.params)).toBe(failure.message);
+ expect(noticeText(summary.summaryCode, summary.summary, summary.summaryParams)).toBe(summary.summary);
+ expect(failure.message).toBe(line.text);
+ expect(summary.summary).toBe(line.text);
setLocale("pt-br");
expect(noticeText(line.textCode, line.text, line.textParams)).toBe(t(key as LocaleKey, params));
expect(activityText(tool, tool.name)).toBe(t(key as LocaleKey, params));
+ expect(noticeText(failure.text.key, failure.message, failure.text.params)).toBe(t(key as LocaleKey, params));
+ expect(noticeText(summary.summaryCode, summary.summary, summary.summaryParams)).toBe(t(key as LocaleKey, params));
expect(en[key as LocaleKey]).toBe(template);
});
diff --git a/src/locales/de.json b/src/locales/de.json
index 85dadfc51e..bad4b53757 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -2849,5 +2849,10 @@
"server.routines.cron.nthWeekend.third": "Monatlich am dritten {weekday} um {time}",
"server.routines.cron.nthWeekend.fourth": "Monatlich am vierten {weekday} um {time}",
"server.routines.cron.nthWeekend.fifth": "Monatlich am fünften {weekday} um {time}",
- "server.routines.cron.nthWeekend.last": "Monatlich am letzten {weekday} um {time}"
+ "server.routines.cron.nthWeekend.last": "Monatlich am letzten {weekday} um {time}",
+ "server.personFirst.stoppedSeconds": "Ein Schritt, der seit {seconds} s lief, wurde gestoppt, um dir zuerst zu antworten",
+ "server.personFirst.stoppedMinutes": "Ein Schritt, der seit {minutes} min lief, wurde gestoppt, um dir zuerst zu antworten",
+ "server.routines.held.planCancelled": "Deine Routinen sind pausiert, weil der Tarif gekündigt wurde. Damit eine bis zum Ende des Tarifs weiterläuft, schalte sie unter Routines wieder ein.",
+ "server.routines.held.noEngine": "Deine Routinen sind pausiert: Keines deiner KI-Konten ist hier noch angemeldet. Sie schalten sich von selbst wieder ein, wenn du dich erneut anmeldest.",
+ "server.routines.held.noConnections": "Deine Routinen sind pausiert: Alle verbundenen Apps und MCP-Server wurden entfernt. Sie schalten sich wieder ein, wenn du eine App oder einen MCP-Server verbindest oder eine Routine unter Routines wieder einschaltest."
}
diff --git a/src/locales/en.json b/src/locales/en.json
index 9883b22f07..daeb551ba0 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -9107,5 +9107,90 @@
"server.routines.cron.nthWeekend.last": "Monthly on the last {weekday} at {time}",
"attach.imagesLeftOutOne": "A message takes up to {count} images, {megabytes} MB in all. {names} wasn't attached.",
"attach.imagesLeftOutMany": "A message takes up to {count} images, {megabytes} MB in all. {names} weren't attached.",
- "attach.archivesUnsupported": "Archives can't be attached: unzip {names} and attach the files inside."
+ "attach.archivesUnsupported": "Archives can't be attached: unzip {names} and attach the files inside.",
+ "native.accounts.notSignedIn": "That account isn't signed in here any more.",
+ "native.home.ownCopyNotReady": "OpenMausBot on this computer could not go back to its own copy yet.",
+ "native.home.ownCopyNotRunning": "This computer's own copy isn't running.",
+ "native.cloud.connectedAppsStay": "Your connected apps stay on this computer: that server has no connected-apps service of its own. Connect them again there in Apps.",
+ "native.home.notAvailable": "That server can't be your bots' home now.",
+ "native.lend.homeChanged": "This server is not your bots' home any more",
+ "native.lend.terminalSignIn": "Sign in to the Cloud before lending it the terminal.",
+ "native.lend.terminalAllow": "Let them run commands",
+ "native.lend.terminalTitle": "Let your Clouds run commands on this computer?",
+ "native.lend.terminalDetail": "Bots on your own Clouds could run any command on this computer as you, including reading and changing any file you can. You can turn this off from the OpenMausBot icon's menu.",
+ "native.lendTray.canUseWithoutScreen": "{clouds} can use this {device}, but not its apps and screen",
+ "native.lendTray.terminal": "Let Clouds run commands on this {device}",
+ "native.screen.windowsHelperBlocked": "Computer control could not start on this PC: its helper, cua-driver-background.exe or cua-driver.exe, is missing or blocked. Windows Security may have quarantined it: open Windows Security → Virus & threat protection → Protection history, restore or allow it (or reinstall OpenMausBot), then restart OpenMausBot.",
+ "native.home.itemDidNotMove": "It did not move.",
+ "native.home.signedOut": "This app isn't signed in to {name}. Open {name} in this app, then try again.",
+ "native.home.serverChanged": "The server at {name}'s address is another one now, so nothing more goes there.",
+ "native.home.otherPeople": "{name} has other people on it now, so your bots can't move there.",
+ "native.home.localNoAnswer": "OpenMausBot on this computer did not answer. Try again in a moment.",
+ "native.home.localResumeFailed": "OpenMausBot on this computer could not go on again.",
+ "native.home.serverGone": "That server isn't in this app any more.",
+ "native.home.alreadyMoving": "Your bots are already moving.",
+ "native.home.movingToCloud": "Your bots are moving to My Cloud.",
+ "native.home.personalServerOnly": "{name} has other people on it, so your bots stay here. Only a server that's yours alone can be your bots' home.",
+ "native.home.updateServer": "Update OpenMausBot on {name} first, then try again.",
+ "native.server.notAnswering": "{name} isn't answering",
+ "native.server.notAnsweringDetail": "Nothing answers at {host}. If that server is gone for good, remove it from your list. Your bots elsewhere aren't affected.",
+ "native.screen.starting": "Screen control is starting on this {device}",
+ "native.screen.permissions": "macOS hasn't allowed screen control yet",
+ "native.screen.blockedWindows": "Screen control is blocked: Windows Security may have stopped it",
+ "native.screen.blocked": "Screen control is blocked on this {device}",
+ "native.screen.off": "Screen control is off on this {device}",
+ "native.screen.unsupported": "Screen control can't work on this {device}",
+ "native.screen.notRunning": "Screen control isn't running on this {device}",
+ "native.screen.allow": "Allow screen control…",
+ "native.screen.turnOn": "Turn on screen control",
+ "native.screen.wantScreen": "use this {device}'s apps and screen",
+ "native.screen.wantFiles": "use the files on this {device}",
+ "native.screen.wantTerminal": "run commands on this {device}",
+ "native.screen.paused": "Using this {device} is paused.",
+ "native.screen.terminalOff": "Running commands isn't turned on for this {device}.",
+ "native.screen.allowMac": "macOS hasn't allowed OpenMausBot to see and use the screen yet. Turn on asks macOS.",
+ "native.screen.askTitle": "{bot} on {cloud} wants to {want}",
+ "native.home.placeNotSuggested": "That isn't a place this app suggested.",
+ "native.home.bringUnavailable": "Your bots can't be brought together there now.",
+ "chat.notice.memoryReclaimedBrowser": "Ran out of room, so I closed the browser to keep everything else running.",
+ "chat.notice.memoryReclaimedTask": "Ran out of room, so I stopped this task to keep everything else running.",
+ "chat.notice.memoryReclaimedBrowserDetail": "Ran out of room, so I closed the browser to keep everything else running. ({detail})",
+ "chat.notice.memoryReclaimedTaskDetail": "Ran out of room, so I stopped this task to keep everything else running. ({detail})",
+ "server.personFirst.stoppedSeconds": "Stopped a step that had run for {seconds} s, to answer you first",
+ "server.personFirst.stoppedMinutes": "Stopped a step that had run for {minutes} min, to answer you first",
+ "server.routines.held.planCancelled": "Your routines are paused because the plan was cancelled. To keep one running until the plan ends, turn it back on in Routines.",
+ "server.routines.held.noEngine": "Your routines are paused: none of your AI accounts is signed in here any more. They turn back on by themselves when you sign in again.",
+ "server.routines.held.noConnections": "Your routines are paused: every connected app and MCP server was removed. They turn back on when you connect one, or turn one back on in Routines.",
+ "mcp.request.change": "Change",
+ "mcp.request.remove": "Remove",
+ "secretCard.greenference.description": "Runs Greenference models with your own key.",
+ "chat.notice.elicitationUrlDeclined": "{server} asked you to open a link to continue. OpenMausBot can't open it from here, so the request was declined. Open the link yourself, then ask the bot to try again.",
+ "chat.notice.elicitationUrlDeclinedWithUrl": "{server} asked you to open a link to continue: {url}. OpenMausBot can't open it from here, so the request was declined. Open the link yourself, then ask the bot to try again.",
+ "chat.notice.elicitationUrlDeclinedGeneric": "An MCP server asked you to open a link to continue. OpenMausBot can't open it from here, so the request was declined. Open the link yourself, then ask the bot to try again.",
+ "chat.notice.elicitationUrlDeclinedGenericWithUrl": "An MCP server asked you to open a link to continue: {url}. OpenMausBot can't open it from here, so the request was declined. Open the link yourself, then ask the bot to try again.",
+ "chat.notice.elicitationFormDeclinedOne": "{server} asked you to fill in a field. OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedMany": "{server} asked you to fill in {fields} fields. OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedOneMessage": "{server} asked you to fill in a field (\"{message}\"). OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedManyMessage": "{server} asked you to fill in {fields} fields (\"{message}\"). OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedGenericOne": "An MCP server asked you to fill in a field. OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedGenericMany": "An MCP server asked you to fill in {fields} fields. OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedGenericOneMessage": "An MCP server asked you to fill in a field (\"{message}\"). OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationFormDeclinedGenericManyMessage": "An MCP server asked you to fill in {fields} fields (\"{message}\"). OpenMausBot can't show that form yet, so the request was declined.",
+ "chat.notice.elicitationContinue": "{server} asks to continue",
+ "chat.notice.elicitationContinueGeneric": "An MCP server asks to continue",
+ "chat.notice.elicitationMessageGeneric": "An MCP server: {message}",
+ "chat.notice.appAccessRequested": "App access requested",
+ "chat.notice.codexModelUnavailable": "This model isn't available on your ChatGPT plan, so it's now hidden from this account's model list. Pick another model.",
+ "chat.notice.codexElicitationDeclined": "{server} asked for input OpenMausBot can't show yet, so the request was declined.",
+ "chat.notice.codexElicitationDeclinedGeneric": "An MCP server asked for input OpenMausBot can't show yet, so the request was declined.",
+ "chat.notice.usageLimitResets": "This {provider} account has reached its usage limit{detail}, which resets {resets}. Until then, switch this bot to another AI.",
+ "approval.voice.titled": "{requester}: {title} Review the details and choose {allow} or {cancel}.",
+ "approval.action.deleteBot": "Delete bot",
+ "approval.action.applySetup": "Apply setup",
+ "routines.editor.roomMissing": "Room no longer exists. Choose another.",
+ "browser.panel.maximizeHint": "Maximize (fill the app window)",
+ "browser.panel.fullscreenHint": "Full screen (whole display)",
+ "time.invalid": "Invalid Date",
+ "shortcuts.send-follow-up": "While a bot works: queue instead of steering, or the other way round",
+ "serverError.bot.viewOnly": "You can view {bot}, not chat with it."
}
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 409f8723b9..2d478d3c3d 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -27,10 +27,10 @@
"whop.notice": "Entre com o Whop. Não é preciso ter uma chave de API. O Whop pede acesso de administrador às empresas que você gerencia e exige confirmação para ações financeiras importantes ou que excluem dados.",
"hostedMcp.connected": "O serviço {service} está conectado e ativado. O acesso segue a seleção de servidores MCP de cada bot.",
"hostedMcp.access": "Acesso dos bots",
- "hostedMcp.accessHint": "Bots que usam todos os servidores MCP ativados também têm acesso a esta conexão. Abra as configurações de Acesso de um bot para escolher os servidores dele. As alterações valem a partir da próxima tarefa.",
+ "hostedMcp.accessHint": "Bots que usam todos os servidores MCP ativados também têm acesso a esta conexão. Abra “Acesso” nas configurações de um bot para escolher os servidores dele. As alterações valem a partir da próxima tarefa.",
"hostedMcp.botSettings": "Gerenciar o acesso de {name}",
"hostedMcp.setupFailed": "Não foi possível adicionar {service}. Atualize e tente novamente.",
- "hostedMcp.testFailed": "Login concluído, mas não foi possível carregar as ferramentas de {service}: {reason} Conecte novamente para tentar carregar as ferramentas.",
+ "hostedMcp.testFailed": "Login concluído, mas não foi possível carregar as ferramentas de {service}: {reason} Tente conectar novamente.",
"hostedMcp.loadingTools": "Login concluído. Carregando as ferramentas de {service}…",
"agentcard.description": "Faça compras e pague com sua própria conta do Agentcard.",
"agentcard.notice": "Entre com sua conta do Agentcard. Não precisa de chave de API. O Agentcard guarda seus cartões e cuida das aprovações de compras; o OpenMausBot não armazena dados dos cartões. Um bot com acesso ao Agentcard pode usar todas as ferramentas dele, inclusive para comprar e mostrar dados dos cartões. Por isso, escolha quais bots terão acesso em Acesso dos bots.",
@@ -139,19 +139,19 @@
"server.moves.webhookMoved": "Agora que estou em {place}, meu webhook \"{name}\" tem um novo endereço. Abra Automações, escolha Copiar endereço em \"{name}\" e cole no app que envia para ele.",
"server.teammates.sameRequest": "Outro colega fez esse pedido há pouco, então vamos usar aquela resposta, sem gerar uma segunda.",
"server.reports.sent": "Enviado à equipe do MausBot (relatório {report}). Milind e Omkar recebem por e-mail.",
- "server.reports.sentReply": "Enviado à equipe do MausBot (relatório {report}). Milind e Omkar recebem por e-mail e responderão para {contact}.",
- "server.reports.sentLater": "Enviado à equipe do MausBot (relatório {report}) depois de uma tentativa anterior não ter dado certo. Milind e Omkar recebem por e-mail.",
- "server.reports.sentLaterReply": "Enviado à equipe do MausBot (relatório {report}) depois de uma tentativa anterior não ter dado certo. Milind e Omkar recebem por e-mail e responderão para {contact}.",
+ "server.reports.sentReply": "Enviado à equipe do MausBot (relatório {report}). Milind e Omkar recebem por e-mail e vão responder para {contact}.",
+ "server.reports.sentLater": "Enviado à equipe do MausBot (relatório {report}) após uma tentativa sem sucesso. Milind e Omkar recebem por e-mail.",
+ "server.reports.sentLaterReply": "Enviado à equipe do MausBot (relatório {report}) após uma tentativa sem sucesso. Milind e Omkar recebem por e-mail e vão responder para {contact}.",
"server.reports.notYet": "Ainda não foi enviado: {why}. O relatório está salvo. O app vai enviá-lo automaticamente {when}, então você não precisa enviar novamente.",
- "server.reports.why.limited": "a equipe do MausBot aceita poucos relatórios por hora de cada app",
+ "server.reports.why.limited": "a equipe do MausBot aceita apenas alguns relatórios por app a cada hora",
"server.reports.why.offline": "não foi possível conectar ao servidor da equipe do MausBot",
"server.reports.why.busy": "o servidor da equipe do MausBot não pôde receber o relatório agora",
"server.reports.when.minute": "em cerca de {count} minuto",
"server.reports.when.minutes": "em cerca de {count} minutos",
"server.reports.when.soon": "assim que possível",
"server.reports.refused": "O servidor da equipe do MausBot recusou este relatório de problema, então nada foi enviado: {detail}.",
- "server.reports.full": "Não foi enviado: já há {count} relatórios de problemas aguardando envio à equipe do MausBot. Digite @devs novamente depois que eles forem enviados.",
- "server.reports.dropped": "Um relatório de problema desta conversa não chegou à equipe do MausBot durante uma semana e foi descartado. Digite @devs novamente para enviar outro.",
+ "server.reports.full": "Não foi enviado: já há {count} relatórios de problemas na fila para a equipe do MausBot. Aguarde o envio e digite @devs novamente.",
+ "server.reports.dropped": "Um relatório de problema desta conversa ficou uma semana sem chegar à equipe do MausBot e, por isso, foi descartado. Digite @devs novamente para enviar outro.",
"server.reports.fixed": "Corrigido na versão {version}. Quer tentar novamente?",
"server.questions.notAsked": "Pergunta não feita (Fazer direto): {question}",
"server.warmSummary.summarized": "Resumiu esta conversa enquanto ela estava sem atividade; as mensagens mais recentes continuam sem alterações",
@@ -248,7 +248,7 @@
"server.notify.signIn": "{who} precisa que você faça login em {site}",
"server.notify.signInWebsite": "{who} precisa que você faça login em um site",
"server.notify.routineFailed": "A rotina de {who} falhou",
- "server.notify.routineDeferred": "A rotina de {who} está aguardando",
+ "server.notify.routineDeferred": "A rotina de {who} está em espera",
"server.notify.turnFailed": "{who} não conseguiu começar",
"server.notify.incident": "{who} encontrou um problema",
"server.notify.delegationSettled": "{who} retomou o trabalho com os resultados",
@@ -278,11 +278,11 @@
"server.rooms.openedThread": "Abriu a conversa #{title}",
"server.rooms.held": "O bot {bot} está pausado (você o interrompeu) — mencione-o com @ ou diga retomar",
"server.rooms.finishedNoSummary": "{bot} terminou sem um resumo",
- "server.rooms.finishedNoSummaryAsking": "{bot} terminou sem um resumo — pedindo um resultado breve",
+ "server.rooms.finishedNoSummaryAsking": "{bot} terminou sem um resumo — estamos pedindo um resultado breve",
"server.rooms.turnStalled.one": "A sessão de {bot} no grupo ficou {count} minuto sem avançar e foi interrompida",
"server.rooms.turnStalled.many": "A sessão de {bot} no grupo ficou {count} minutos sem avançar e foi interrompida",
"server.rooms.compactedRequested": "Compactamos o contexto de {bot} ({percent}% ocupado): nova sessão com as mensagens recentes do grupo",
- "server.rooms.compactedThreshold": "O contexto de {bot} estava {percent}% ocupado: compactamos para uma nova sessão com as mensagens recentes do grupo",
+ "server.rooms.compactedThreshold": "Compactamos o contexto de {bot}, que estava {percent}% ocupado: nova sessão com as mensagens recentes do grupo",
"server.teammates.sent": "Enviado para {bot}",
"server.teammates.sentInRoom": "Enviado para {bot} · {room}",
"server.teammates.sentDirectly": "Enviado diretamente para {bot}: ele não está em {room}.",
@@ -325,18 +325,18 @@
"server.teammates.teammate": "Colega",
"server.teammates.room": "Grupo",
"server.teammates.resumedQuestion": "Retomou o trabalho com uma pergunta de {who} e está revisando",
- "server.teammates.resumedQuestionRestart": "Após reiniciar, retomou o trabalho com uma pergunta de {who} e está revisando",
+ "server.teammates.resumedQuestionRestart": "Após uma reinicialização, retomou o trabalho com uma pergunta de {who} e está revisando",
"server.teammates.resumedResults": "Retomou o trabalho com os resultados de {who} e está revisando",
- "server.teammates.resumedResultsRestart": "Após reiniciar, retomou o trabalho com os resultados de {who} e está revisando",
+ "server.teammates.resumedResultsRestart": "Após uma reinicialização, retomou o trabalho com os resultados de {who} e está revisando",
"server.teammates.backWithResults": "Voltou com o trabalho que repassou e está revisando",
- "server.teammates.backWithResultsRestart": "Após reiniciar, voltou com o trabalho que repassou e está revisando",
+ "server.teammates.backWithResultsRestart": "Após uma reinicialização, voltou com o trabalho que repassou e está revisando",
"server.teammates.handedWork": "trabalho que repassou",
- "server.teammates.answerPassed": "Resposta repassada ao trabalho que aguardava",
+ "server.teammates.answerPassed": "Resposta entregue à tarefa em espera",
"server.teammates.answeredForPerson": "Respondeu à pergunta de {name} em nome da pessoa",
"server.teammates.personReplied": "{name} respondeu",
"server.teammates.personAssistantAnswered": "O assistente de {name} respondeu",
"server.teammates.told": "Avisou {name}",
- "server.teammates.notPassed": "Não foi repassado a {name}",
+ "server.teammates.notPassed": "Resposta não repassada para {name}",
"server.mcp.reconnect.one": "O servidor MCP {name} não se conectou, então as ferramentas dele não estavam disponíveis desta vez. Ele se conecta novamente na sua próxima mensagem.",
"server.mcp.reconnect.many": "Os servidores MCP {names} não se conectaram, então as ferramentas deles não estavam disponíveis desta vez. Eles se conectam novamente na sua próxima mensagem.",
"server.bots.nameClash": "{person} também é o nome de uma pessoa aqui, então \"@{name}\" envia a mensagem para {person}, não para este bot. Renomeie o bot para diferenciar os dois.",
@@ -357,7 +357,7 @@
"cloudIntro.body": "O MausBot Cloud roda seus bots por você na nuvem, sempre ligado.",
"cloudIntro.routines": "Rotinas rodam na hora certa, dia e noite",
"cloudIntro.phone": "Fale com seus bots pelo celular, mesmo com este computador desligado",
- "cloudIntro.credit": "{credit} de crédito do Claude para começar",
+ "cloudIntro.credit": "Comece com {credit} de crédito do teste para o Claude",
"cloudIntro.included": "Voz e desktops na nuvem da Boat incluídos",
"cloudIntro.price": "Depois, a partir de {price}/mês, mais impostos. Cancele quando quiser.",
"cloudIntro.start": "Começar teste grátis",
@@ -451,7 +451,7 @@
"cloudBuy.plan.cpus": "CPUs: {count}",
"cloudBuy.timeline": "O que acontece e quando",
"cloudBuy.timeline.start": "O teste começa",
- "cloudBuy.timeline.startCredit": "O teste começa, com {credit} de crédito do Claude",
+ "cloudBuy.timeline.startCredit": "O teste começa com {credit} de crédito para o Claude",
"cloudBuy.timeline.reminder": "E-mail de lembrete",
"cloudBuy.secure": "Pagamento seguro no seu navegador",
"cloudBuy.wallets": "Pague com Apple Pay, Google Pay ou cartão",
@@ -479,7 +479,7 @@
"cloudBuy.signIn.donePlain": "Você entrou.",
"cloudBuy.signIn.ssoHint": "Conta de trabalho com login único (SSO)?",
"cloudBuy.signIn.continueBrowser": "Continuar no navegador",
- "cloudBuy.signIn.invalidEmail": "Digite um endereço de e-mail como [email protected].",
+ "cloudBuy.signIn.invalidEmail": "Digite um endereço de e-mail como [email protected].",
"cloudBuy.signIn.rateLimited": "Muitos códigos foram pedidos agora há pouco. Aguarde um minuto e tente novamente.",
"cloudBuy.signIn.failed": "Não foi possível acessar o MausBot Cloud. Verifique sua conexão e tente novamente.",
"cloudBuy.signIn.wrongCode": "Código incorreto. Restam {count} tentativas.",
@@ -504,9 +504,9 @@
"cloudBuy.pay.copied": "Link copiado",
"cloudBuy.pay.lateTitle": "Ainda não identificamos seu pagamento.",
"cloudBuy.pay.lateSub": "Se você pagou, o pagamento aparece aqui em alguns minutos. Se não, abra a página de pagamento novamente ou escolha outro plano.",
- "cloudBuy.pay.failed": "Não foi possível abrir a página de pagamento novamente. Nada foi cobrado. Tente novamente daqui a pouco.",
+ "cloudBuy.pay.failed": "Não foi possível reabrir a página de pagamento. Nada foi cobrado. Tente novamente daqui a pouco.",
"cloudBuy.setup.badgeTrial": "Teste do {plan} iniciado",
- "cloudBuy.setup.badgeCredit": "Teste do {plan} iniciado · {credit} de crédito do Claude adicionado",
+ "cloudBuy.setup.badgeCredit": "Teste do {plan} iniciado · {credit} de crédito para o Claude adicionado",
"cloudBuy.setup.badgePaid": "{plan} iniciado",
"cloudBuy.setup.title": "Configurando seu novo Cloud",
"cloudBuy.setup.sub": "Cerca de 2 minutos. Continue trabalhando se quiser; ele abre quando estiver pronto.",
@@ -551,7 +551,7 @@
"rail.settingUp": "{name}: em configuração",
"rail.waiting": "{name}: aguardando pagamento",
"rail.attention": "{name}: precisa de você",
- "rail.more": "Mostrar todos: {count}",
+ "rail.more": "Mostrar todos os {count}",
"rail.search": "Buscar um Cloud",
"rail.noMatch": "Nenhum resultado.",
"rail.add": "Adicionar um Cloud ou seu próprio servidor",
@@ -596,7 +596,7 @@
"rail.ended": "{name}: encerrado",
"rail.remove": "Remover da lista",
"rail.makeHome": "Definir {name} como base dos meus bots",
- "rail.makeHomeSub": "Transfere os bots, chats, memórias e rotinas deste computador para {name}. Depois, este computador passa a trabalhar para ele.",
+ "rail.makeHomeSub": "Transfere os bots, conversas, memória e rotinas deste computador para {name}. Depois, este computador passa a trabalhar para ele.",
"rail.makeHomeFailed": "A transferência dos seus bots não começou. Tente novamente em instantes.",
"twoPlaces.title": "Reúna seus bots",
"twoPlaces.body": "Seus bots estão em dois lugares e, por isso, não conseguem trabalhar juntos. Quer reuni-los em {place}?",
@@ -604,7 +604,7 @@
"twoPlaces.failed": "Não foi possível começar a mover seus bots. Tente novamente em instantes.",
"twoPlaces.confirmTitle": "Mover os bots deste computador para {place}?",
"twoPlaces.confirm": "Os bots deste computador vão para {place} com suas conversas e automações e passam a trabalhar lá.",
- "twoPlaces.undo": "Para trazê-los de volta mais tarde, ligue “Manter os bots deste computador neste computador” em Configurações → MausBot Cloud (Modo avançado).",
+ "twoPlaces.undo": "Para trazê-los de volta mais tarde, ligue “Manter aqui os bots deste computador” em Configurações → MausBot Cloud (Modo avançado).",
"twoPlaces.move": "Mover bots",
"rail.removeAsk": "Remover “{name}” da lista? Você pode comprar um novo Cloud quando quiser.",
"rail.removeServerAsk": "Remover “{name}” da sua lista? Este app sai da conta nesse servidor; nada nele muda.",
@@ -777,8 +777,8 @@
"teamImport.offeredSkills": "Habilidades oferecidas (não adicionadas a nenhum bot)",
"teamImport.connections": "Conexões a concluir: {count} · chaves e senhas nunca são incluídas",
"teamImport.notes": "Notas iniciais: {count}",
- "teamImport.routinesPaused": "Rotinas: {count} · pausadas",
- "teamImport.presets": "Bots predefinidos: {count} · aparecem em “Novo bot”",
+ "teamImport.routinesPaused": "Rotinas pausadas: {count}",
+ "teamImport.presets": "Bots predefinidos em “Novo bot”: {count}",
"teamImport.library": "Bots predefinidos e habilidades · sem equipe",
"teamImport.librarySafety": "Os bots predefinidos aparecem em “Novo bot”, acima das funções integradas. Nenhum bot, equipe ou rotina é adicionado. Um bot criado a partir de uma dessas predefinições começa com as habilidades desligadas. Escolhas de modelo, computadores, níveis de aprovação e apps conectados nunca são incluídos.",
"teamImport.libraryAdds": "Adiciona bots predefinidos em “Novo bot”.",
@@ -890,7 +890,7 @@
"question.showLess": "Mostrar menos",
"question.origin.badge": "Pergunta escrita pelo agente",
"question.tab.numbered": "Pergunta {index}",
- "question.progress": "{answered} de {count} respondidas",
+ "question.progress": "Respondidas: {answered} de {count}",
"question.multiHint": "Escolha todas as que se aplicam",
"question.other": "Outro",
"question.otherPlaceholder": "Digite sua própria resposta",
@@ -905,7 +905,7 @@
"question.decided.change": "Alterar",
"question.decided.answer": "Responder por conta própria",
"question.answerPlaceholder": "Digite sua resposta",
- "question.details": "Detalhes",
+ "question.details": "Ver detalhes",
"question.hideDetails": "Ocultar detalhes",
"question.aria.card": "Pergunta do seu bot",
"question.aria.tabs": "Perguntas",
@@ -993,14 +993,14 @@
"computerAsk.reason.starting": "O controle de tela ainda está iniciando no seu {device}.",
"computerAsk.reason.permissions": "O macOS ainda não deu permissão para {app} ver e usar a tela.",
"computerAsk.reason.blocked": "O controle de tela está bloqueado no seu {device}.",
- "computerAsk.reason.blockedPc": "O controle de tela está bloqueado no seu PC: a Segurança do Windows pode ter impedido o funcionamento dele.",
+ "computerAsk.reason.blockedPc": "O controle de tela está bloqueado no seu PC: a Segurança do Windows pode ser a causa.",
"computerAsk.reason.off": "O controle de tela está desligado no seu {device}.",
"computerAsk.reason.notRunning": "O controle de tela não está funcionando no seu {device}.",
"computerAsk.reason.unsupported": "Não é possível usar o controle de tela no seu {device} agora.",
"computerAsk.reason.terminalOff": "A opção de executar comandos está desligada no seu {device}.",
"computerAsk.reason.closed": "{app} não está aberto no seu {device}. Abra o app lá para {name} continuar.",
"computerAsk.reason.never": "{app} ainda não está no seu computador. Instale o app e entre no MausBot Cloud por ele para {name} continuar.",
- "computerAsk.reason.update": "{app} no seu {device} precisa de uma atualização primeiro. Atualize o app para {name} continuar.",
+ "computerAsk.reason.update": "Atualize {app} no seu {device} para {name} continuar.",
"computerAsk.action.turnOn": "Ligar",
"computerAsk.action.tryAgain": "Tentar novamente",
"computerAsk.action.notNow": "Agora não",
@@ -1070,7 +1070,7 @@
"cloudAccount.reauthEnded": "Este computador não está mais conectado ao MausBot Cloud, por exemplo porque foi removido na página do Plano. Entre novamente para usar o Cloud aqui. Seu plano não é afetado.",
"cloudAccount.unavailable": "Não é possível acessar o MausBot Cloud agora, então este app não consegue verificar seu plano. Nada mudou no seu plano; o app continua tentando.",
"cloudAccount.signoutLocalOnly": "Você saiu neste computador. O MausBot Cloud não conseguiu confirmar, então remova também este computador na página do Plano.",
- "cloudAccount.storageFailed": "Não foi possível ler nem apagar o login salvo do Cloud. Escolha “Sair do MausBot Cloud” e depois entre novamente.",
+ "cloudAccount.storageFailed": "Não foi possível ler ou apagar o login salvo do Cloud. Escolha “Sair do MausBot Cloud” e depois entre novamente.",
"cloudAccount.restoreRetry": "Não foi possível acessar os dados de login do Cloud salvos neste computador agora. O app tenta novamente sozinho, então você não precisa fazer nada.",
"cloudAccount.restoreRetryKeychain": "Não foi possível acessar os dados de login do Cloud salvos neste computador. Desbloqueie seu chaveiro (Acesso às Chaves) e o app tenta novamente sozinho.",
"cloudAccount.restoreRetryKeyring": "Não foi possível acessar os dados de login do Cloud salvos neste computador. Desbloqueie o chaveiro do sistema e o app tenta novamente sozinho.",
@@ -1089,7 +1089,7 @@
"cloudTrial.endsOn": "Seu teste grátis termina em {date}",
"cloudTrial.active": "Depois, o {plan} custa {price}/mês mais impostos, com cobrança em {date}. O Cloud continua funcionando, então você não precisa fazer nada. Para cancelar, escolha “Gerenciar assinatura” antes dessa data.",
"cloudTrial.activeNoPrice": "Depois, o {plan} é cobrado todo mês, mais impostos, a partir de {date}. O Cloud continua funcionando, então você não precisa fazer nada. Para cancelar, escolha “Gerenciar assinatura” antes dessa data.",
- "cloudTrial.credit": "Inclui {granted} de crédito do Claude. Saldo: {left}.",
+ "cloudTrial.credit": "Inclui {granted} de crédito do teste para o Claude. Saldo: {left}.",
"cloudTrial.preferPlan": "Prefere o {plan} por {price}? Avise pela página do Plano antes de {date} e vamos mudar seu plano.",
"cloudTrial.ending": "A renovação está desligada, então o Cloud para nessa data e os arquivos dele são excluídos em {date}.",
"cloudTrial.endingNoDate": "A renovação está desligada, então o Cloud para nessa data e os arquivos dele são excluídos alguns dias depois.",
@@ -1244,7 +1244,7 @@
"files.locate": "Localizar",
"files.count": "{count} arquivos",
"files.countOne": "1 arquivo",
- "files.countMore": "Mais de {count} arquivos",
+ "files.countMore": "Arquivos: mais de {count}",
"files.share.title": "Compartilhar “{name}” com o Cloud?",
"files.share.body": "{size}. O Cloud guarda uma cópia e a atualiza quando você altera arquivos aqui. Os bots do Cloud podem ler essa cópia.",
"files.share.confirm": "Compartilhar",
@@ -1291,8 +1291,8 @@
"cloudHome.checkout": "Este pagamento não foi concluído.",
"cloudHome.checkoutNamed": "O pagamento de {name} não foi concluído.",
"cloudHome.continue": "Continuar",
- "cloudHome.payment": "O pagamento deste Cloud não foi aprovado.",
- "cloudHome.paymentNamed": "O pagamento de {name} não foi aprovado.",
+ "cloudHome.payment": "O pagamento deste Cloud não foi concluído.",
+ "cloudHome.paymentNamed": "O pagamento de {name} não foi concluído.",
"cloudHome.paymentBody": "Atualize o cartão para continuar usando o Cloud.",
"cloudHome.updateCard": "Atualizar cartão",
"cloudHome.tryAgain": "Tentar novamente",
@@ -1344,7 +1344,7 @@
"cloudSignIn.grok": "Grok",
"cloudSignIn.grokHint": "Use sua assinatura do grok.com com o Grok Build.",
"cloudSignIn.apiKey": "Usar uma chave de API",
- "cloudSignIn.apiKeyHint": "Pague conforme o uso com uma chave da OpenAI, Anthropic, xAI ou OpenRouter, em Configurações → Chaves de API.",
+ "cloudSignIn.apiKeyHint": "Pague conforme o uso com uma chave da OpenAI, da Anthropic, da xAI ou do OpenRouter, em Configurações → Chaves de API.",
"cloudSignIn.missing": "Este provedor de modelos ainda não está disponível no Cloud.",
"cloudSignIn.creditUsedUp": "Seu crédito do teste para o Claude acabou. Escolha sua própria IA abaixo para seus bots continuarem trabalhando.",
"cloudSignIn.creditEnded": "O crédito do teste para o Claude não está mais disponível no Cloud. Escolha sua própria IA abaixo para seus bots continuarem trabalhando.",
@@ -1429,8 +1429,8 @@
"cloudWelcome.bring.sending": "Trazendo para cá os bots, conversas e logins deste computador…",
"cloudWelcome.bring.more": "Mais",
"cloudWelcome.engine.sub": "Seus bots pensam com seu próprio plano do Claude ou do ChatGPT. Faça login uma vez em {name}.",
- "cloudWelcome.engine.credit": "Você tem {amount} de crédito do Claude, então seus bots podem começar agora mesmo. Faça login quando quiser.",
- "cloudWelcome.engine.creditPlain": "Seu teste inclui crédito do Claude, então seus bots podem começar agora mesmo. Faça login quando quiser.",
+ "cloudWelcome.engine.credit": "Você tem {amount} de crédito do teste para o Claude, então seus bots podem começar agora mesmo. Faça login quando quiser.",
+ "cloudWelcome.engine.creditPlain": "Seu teste inclui crédito para o Claude, então seus bots podem começar agora mesmo. Faça login quando quiser.",
"cloudWelcome.engine.useCredit": "Usar meu crédito por enquanto",
"cloudWelcome.engine.connected": "Conectado",
"engineCheck.checking": "Enviando uma mensagem de teste curta para {name}…",
@@ -1573,7 +1573,7 @@
"settings.followUp.title": "Enviar enquanto um bot trabalha",
"settings.followUp.steer": "Direcionar para a sessão em andamento",
"settings.followUp.queue": "Colocar na fila para depois da sessão",
- "settings.followUp.subtitle": "Direcionar adiciona sua mensagem ao que o bot está fazendo agora; colocar na fila faz com que ele a execute quando a sessão terminar. {key} aplica a outra opção a uma única mensagem, e a seta ao lado de Enviar também permite reiniciar a sessão. Vale só para este dispositivo.",
+ "settings.followUp.subtitle": "Direcionar adiciona sua mensagem ao que o bot está fazendo agora; colocar na fila faz com que ele a processe quando a sessão terminar. {key} aplica a outra opção a uma única mensagem, e a seta ao lado de Enviar também permite reiniciar a sessão. Vale só para este dispositivo.",
"settings.userBubbles.title": "Colorir minhas mensagens",
"settings.userBubbles.subtitle": "Em uma conversa individual, suas mensagens ficam com um degradê da cor do bot. Nos grupos, os balões continuam neutros.",
"settings.userBubbles.aria": "Colorir minhas mensagens com a cor do bot",
@@ -1625,14 +1625,14 @@
"settings.roomTurns.title": "Sessões em grupos",
"settings.roomTurns.subtitle": "Encerre a sessão de um bot em um grupo quando ele ficar sem avançar por esse tempo. Cada conversa pode escolher o seu.",
"settings.roomTurns.label": "Parar após este tempo sem avançar",
- "settings.roomTurns.minutes": "minutos",
+ "settings.roomTurns.minutes": "min",
"settings.roomTurns.help": "Vale para todas as sessões de bots em grupos, a menos que a conversa defina o próprio limite. Uma sessão continua enquanto o bot estiver trabalhando. Conversas diretas usam o monitor de inatividade.",
- "settings.roomTurns.error": "Não foi possível salvar o limite de sessão do grupo.",
+ "settings.roomTurns.error": "Não foi possível salvar a duração máxima das sessões em grupos.",
"settings.roomTurns.range": "Digite um número inteiro de 1 a 1.440.",
"settings.mcpCalls.title": "Tempo limite das ferramentas",
"settings.mcpCalls.subtitle": "Quanto tempo um bot pode esperar por uma ferramenta dos seus servidores MCP.",
"settings.mcpCalls.label": "Duração máxima da chamada",
- "settings.mcpCalls.minutes": "minutos",
+ "settings.mcpCalls.minutes": "min",
"settings.mcpCalls.help": "Vale para todas as ferramentas dos seus servidores MCP usadas por um bot. Se uma ferramenta ultrapassar o limite, ela é interrompida, e o bot é avisado de que ela pode não ter terminado.",
"settings.mcpCalls.error": "Não foi possível salvar o tempo limite. Tente novamente.",
"settings.mcpCalls.range": "Digite um número inteiro de 1 a 60.",
@@ -1645,7 +1645,7 @@
"settings.newBotEffort.subtitle": "Define o esforço de raciocínio de cada novo bot desde a primeira mensagem. Um bot pode mudar o próprio nível; provedores de modelos que não oferecem esse nível mantêm o próprio padrão.",
"settings.newBotEffort.default": "Padrão do provedor",
"settings.newBotEffort.aria": "Esforço para novos bots",
- "settings.newBotEffort.error": "Não foi possível salvar o esforço para novos bots.",
+ "settings.newBotEffort.error": "Não foi possível salvar o nível de esforço para novos bots.",
"settings.toolCalls.title": "Chamadas de ferramenta",
"settings.toolCalls.subtitle": "Mostrar na conversa cada ferramenta que um bot executa. Desligado por padrão, pois o mascote já mostra que há trabalho em andamento.",
"settings.toolCalls.show": "Mostrar chamadas de ferramenta",
@@ -1670,7 +1670,7 @@
"settings.diagnostics.openLogs": "Abrir a pasta de logs",
"settings.diagnostics.logsAt": "Os logs estão em {folder}.",
"settings.diagnostics.openFailed": "Não foi possível abrir a pasta de logs. Ela fica em {folder}.",
- "settings.diagnostics.logsHelp": "Os logs ficam neste computador. Exportar diagnóstico salva a parte mais recente deles sem chaves, senhas e logins, pronta para enviar ao suporte.",
+ "settings.diagnostics.logsHelp": "Os logs ficam neste computador. “Exportar diagnóstico” salva a parte mais recente deles sem chaves, senhas e logins, pronta para enviar ao suporte.",
"settings.diagnostics.elsewhere": "Os logs ficam onde o app {app} roda. Para abrir ou exportar os logs deste computador, use as Configurações no app instalado nele. O suporte do MausBot Cloud pode ler os logs do Cloud.",
"settings.savedSteps.title": "Repetir tarefas no computador sem IA",
"settings.savedSteps.subtitle": "Quando você pede a um bot uma tarefa que ele já fez no computador, ele repete os passos salvos em vez de consultar a IA. Desligue para parar de salvar e repetir.",
@@ -1680,7 +1680,7 @@
"settings.analytics.subtitle": "Eventos anônimos do produto e uma contagem diária do que está configurado: quais provedores têm uma chave (nunca a chave) e quantos bots, grupos, rotinas e computadores. Nunca conversas, prompts, conteúdo de arquivos, nomes ou endereços. Seu e-mail só é anexado se você o compartilhou durante a configuração, ou se escolher fazer upgrade, gerenciar ou comparar planos no pop-up do Cloud Pro enquanto estiver conectado ao MausBot Cloud (o e-mail da sua conta do Cloud).",
"settings.analytics.link": "Ver tudo o que é enviado",
"settings.analytics.aria": "Enviar dados de uso",
- "settings.talk.title": "Fale com o MausBot em qualquer app",
+ "settings.talk.title": "Falar com o MausBot em qualquer app",
"settings.talk.subtitle": "Segure {key}, fale e solte. O MausBot responde em uma caixa pequena no rodapé da tela. Clique nela para abrir o chat.",
"settings.talk.aria": "Falar com o MausBot em qualquer app",
"settings.talk.keyAria": "Atalho de fala",
@@ -1910,8 +1910,8 @@
"orgLibrary.adding": "Adicionando…",
"orgLibrary.added": "Adição concluída",
"orgLibrary.addAria": "Adicionar {name}",
- "orgLibrary.details": "Detalhes",
- "orgLibrary.detailsAria": "Detalhes de {name}",
+ "orgLibrary.details": "Ver detalhes",
+ "orgLibrary.detailsAria": "Ver detalhes de {name}",
"orgLibrary.updateApp": "Atualize o app {app} para adicionar isto",
"orgLibrary.notReady": "Baixando…",
"orgLibrary.noRelease": "Nenhuma versão ainda",
@@ -2001,7 +2001,7 @@
"lookedAfter.pickTitle": "Responsável",
"lookedAfter.pickHint": "Esta pessoa recebe as perguntas, os pedidos de aprovação, os avisos de falha e os relatórios de rotina do bot.",
"lookedAfter.change": "Alterar responsável por {bot}",
- "lookedAfter.menu": "Alterar responsável: {name}…",
+ "lookedAfter.menu": "Responsável: {name}…",
"lookedAfter.menuNone": "Definir responsável…",
"lookedAfter.newBot": "Responsável",
"lookedAfter.badge": "Responsável",
@@ -2108,7 +2108,7 @@
"sidebar.archived.restoredMany": "{count} bots restaurados",
"sidebar.resize": "Redimensionar a barra lateral",
"sidebar.toolsLayout.title": "Layout das ferramentas",
- "sidebar.toolsLayout.subtitle": "Mostra Automações e Mapa da equipe como linhas ou como uma única linha de ícones. Quando a barra lateral é uma coluna de avatares, ela sempre mostra ícones.",
+ "sidebar.toolsLayout.subtitle": "Mostra Rotinas, Gatilhos e Mapa da equipe como linhas ou como uma única linha de ícones. Quando a barra lateral é uma coluna de avatares, ela sempre mostra ícones.",
"sidebar.toolsLayout.rows": "Linhas",
"sidebar.toolsLayout.toolbar": "Barra de ferramentas",
"sidebar.toolsLayout.chooseAria": "Escolher o layout das ferramentas",
@@ -2156,8 +2156,8 @@
"sidebar.account.moveAndAutomationsNeedYou": "A mudança para o Cloud e as automações precisam de você",
"sidebar.account.moving": "Mudando para o Cloud…",
"sidebar.account.moveDismiss": "Entendi",
- "sidebar.account.moveRetry": "Tentar mover para My Cloud novamente",
- "sidebar.account.moveRetryName": "Tentar mover para My Cloud novamente",
+ "sidebar.account.moveRetry": "Tentar mover para o My Cloud novamente",
+ "sidebar.account.moveRetryName": "Tentar mover para o My Cloud novamente",
"sidebar.account.movingNamed": "Mudando para {place}…",
"sidebar.account.moveNeedsYouNamed": "A mudança para {place} precisa de você",
"sidebar.account.moveRetryNamed": "Tentar mover para {place} novamente",
@@ -2709,7 +2709,7 @@
"settings.threadCleanup.title": "Limpeza dos registros de eventos",
"settings.threadCleanup.subtitle": "Reduza os registros que se acumulam durante as conversas.",
"settings.threadCleanup.retention.enable": "Excluir os registros de eventos de conversas encerradas após",
- "settings.threadCleanup.retention.unit": "dias",
+ "settings.threadCleanup.retention.unit": "d",
"settings.threadCleanup.retention.help": "Desligado por padrão. Quando ligado, uma limpeza diária exclui os arquivos de log de eventos das conversas encerradas ou arquivadas há mais dias que o limite definido. Só arquivos de log de eventos são removidos, nunca as conversas nem seu conteúdo.",
"settings.threadCleanup.cap.enable": "Limitar cada registro de eventos a",
"settings.threadCleanup.cap.unit": "MiB",
@@ -2746,7 +2746,7 @@
"composer.followUp.queueHint": "Executar depois da sessão atual",
"composer.followUp.restartHint": "Recomeçar a sessão com esta mensagem",
"composer.followUp.buttonTitle": "{title} · {key}: {alternate}",
- "attach.unavailableOld": "Esta referência antiga de arquivo não está mais disponível para download",
+ "attach.unavailableOld": "Esta referência antiga a um arquivo não está mais disponível para download",
"attach.downloadFailed": "Não foi possível baixar esse arquivo. Tente novamente.",
"attach.saveFailed": "Não foi possível salvar esse arquivo",
"attach.previewAria": "Ver prévia de {name}",
@@ -2839,7 +2839,7 @@
"model.busy": "Pare a sessão deste bot antes de trocar o modelo",
"model.threadBusy": "Pare a sessão desta conversa antes de trocar o modelo",
"model.choose": "Escolher o modelo",
- "model.customSwitchOnHost": "Esta conversa usa aprovação personalizada. Altere o modelo no app do computador anfitrião, onde você pode confirmar a saída do modo Personalizado.",
+ "model.customSwitchOnHost": "Esta conversa usa aprovação personalizada. Altere o modelo no app do computador anfitrião, onde você pode confirmar a saída do modo “Personalizado”.",
"model.providerSwitch.title": "Trocar de modelo com permissões “Pedir”?",
"model.providerSwitch.threadBody": "Esta conversa passa para {model} e as permissões dela voltam para “Pedir”. As aprovações de ferramentas existentes são apagadas. O padrão do bot e as outras conversas não mudam. Você pode revisar o acesso do novo provedor depois.",
"model.providerSwitch.botBody": "O modelo do bot passa para {model}, com permissões “Pedir”. As aprovações de ferramentas existentes são apagadas para esta conversa e para o bot. Todas as conversas que usam o modelo do bot também passam para o novo modelo e voltam para “Pedir” nos casos em que o novo provedor exigir. Conversas com modelo próprio continuam como estão. Você pode revisar o acesso do novo provedor depois.",
@@ -2875,7 +2875,7 @@
"model.rail.apiKeys": "Chaves de API",
"model.rail.local": "Local",
"attach.loadImage": "Carregar imagem",
- "attach.oldImage": "Esta referência antiga de imagem não está mais disponível",
+ "attach.oldImage": "Esta referência antiga a uma imagem não está mais disponível",
"attach.legacyFile": "{name} (anexo antigo indisponível)",
"attach.unavailable": "Indisponível",
"task.chip": "Conversa",
@@ -2906,7 +2906,7 @@
"task.bulk.channelLimit": "Todo chat em grupo precisa manter pelo menos uma conversa. Por isso, uma fica fora da seleção.",
"task.bulk.result": "Excluídas: {count}.",
"task.bulk.resultBusy": "Mantidas por estarem em andamento: {count}.",
- "task.bulk.resultMissing": "Já não existiam: {count}.",
+ "task.bulk.resultMissing": "Conversas que já não existiam: {count}.",
"task.bulk.resultError": "Parou antes do fim: {message}",
"task.archivedList": "Arquivadas ({count})",
"task.empty": "Nenhuma conversa ainda",
@@ -3063,7 +3063,7 @@
"permissions.peers.everyone": "Permitir falar com todos os bots",
"permissions.approval.title": "Nível de aprovação",
"permissions.approval.draftHanded": "Padrão para as conversas, rotinas e trabalhos delegados ao novo bot.",
- "permissions.approval.helpHanded": "Padrão para novas conversas, rotinas e trabalhos delegados ao bot. O acesso total também se aplica imediatamente a todas as conversas existentes. Use Atualizar permissões em uma conversa para aplicar o nível atual a ela.",
+ "permissions.approval.helpHanded": "Padrão para novas conversas, rotinas e trabalhos delegados ao bot. O acesso total também se aplica imediatamente a todas as conversas existentes. Use “Atualizar permissões” em uma conversa para aplicar o nível atual a ela.",
"permissions.approval.applyFull": "Aplicar acesso total a todas as conversas",
"permissions.outbound.title": "Enviar em seu nome",
"permissions.outbound.help": "E-mails, mensagens, publicações, convites e pagamentos por apps conectados. Ler e redigir nunca contam. Essas regras de envio também valem com acesso total.",
@@ -3152,7 +3152,7 @@
"onboarding.org.finishHelp": "Faça login na página que abriu. Ela mostra este código:",
"onboarding.org.connected": "Login feito em {organization}",
"onboarding.org.models": "Modelos da empresa: {count}",
- "onboarding.org.manage": "Configurações da organização",
+ "onboarding.org.manage": "Abrir configurações da organização",
"onboarding.import.skills": "Habilidades",
"onboarding.import.skillsFrom": "{count} de {sources}",
"onboarding.import.skillsHint": "Copiadas para cá, para seus bots usarem com qualquer IA.",
@@ -3322,7 +3322,7 @@
"browser.notInstalled": "O navegador ainda não está instalado aqui. Ligue as opções de navegador em Configurações do app → Dispositivos e nas configurações de acesso do bot. Depois, abra Tela do bot → Navegador para instalá-lo. Ou execute `openmausbot browser install` onde o app roda.",
"browser.panel.profileTitle": "Perfil do navegador: {name}",
"browser.panel.profiles": "Perfis do navegador",
- "browser.panel.closeProfiles": "Fechar perfis do navegador",
+ "browser.panel.closeProfiles": "Fechar a janela de perfis do navegador",
"browser.panel.closeTyping": "Fechar digitação",
"browser.panel.typeTextTitle": "Digitar no campo selecionado da página",
"browser.panel.typeTextField": "Texto para a página",
@@ -3419,7 +3419,7 @@
"browser.profiles.busy": "Os perfis são liberados quando a ação atual do navegador terminar.",
"browser.viewport.keysHint": "Depois que você clicar ou digitar na página, ela passa a receber os comandos do teclado; até lá, Tab avança o foco. Aperte Shift+Escape para voltar à barra de endereço do navegador.",
"settings.profiles.title": "Perfis do navegador",
- "settings.profiles.subtitle": "Sessões de login com nome que qualquer bot pode usar. Crie uma na aba Navegador de um bot; faça login uma vez e ela continua salva.",
+ "settings.profiles.subtitle": "Sessões de login com nome que qualquer bot pode usar. Crie uma na aba “Navegador” de um bot; faça login uma vez e ela continua salva.",
"settings.profiles.empty": "Ainda não há perfis. Escolha “+ Adicionar perfil…” abaixo do navegador de um bot.",
"settings.profiles.saveError": "Não foi possível salvar os perfis de navegador.",
"settings.profiles.deleteError": "Não foi possível excluir o perfil do navegador. Tente novamente.",
@@ -3434,7 +3434,7 @@
"settings.profiles.busyOne": "{names} ainda está rodando. Pare esse bot antes de excluir este perfil de navegador.",
"settings.profiles.busyMany": "{names} ainda estão rodando. Pare esses bots antes de excluir este perfil de navegador.",
"settings.profiles.browserSession": "Perfil do navegador",
- "settings.profiles.sharedSubtitle": "Logins de navegador compartilhados entre os bots. Crie um perfil aqui e selecione na aba Navegador de um bot.",
+ "settings.profiles.sharedSubtitle": "Logins de navegador compartilhados entre os bots. Crie um perfil aqui e selecione na aba “Navegador” de um bot.",
"settings.profiles.sharedEmpty": "Nenhum perfil compartilhado ainda. Cada bot continua com o próprio navegador.",
"settings.profiles.own": "Navegador próprio",
"settings.profiles.temporary": "Temporário (não salvar logins)",
@@ -3454,7 +3454,7 @@
"settings.profiles.browserLabel": "Navegador",
"settings.profiles.builtIn": "Integrado",
"settings.profiles.myChrome": "Meu Chrome",
- "settings.profiles.myChromeHint": "Bots neste perfil agem dentro do seu Chrome de verdade, conectado como você, com seus cookies e suas abas abertas. Use para sites que recusam o navegador integrado, como o login do Google. Para conectar, abra chrome://inspect/#remote-debugging no Chrome e ligue a depuração remota; o Chrome pede para você permitir a conexão. Entre e saia dos sites no próprio Chrome.",
+ "settings.profiles.myChromeHint": "Bots neste perfil agem dentro do seu Chrome de verdade, com sua conta de usuário, seus cookies e suas abas abertas. Use para sites que recusam o navegador integrado, como o login do Google. Para conectar, abra chrome://inspect/#remote-debugging no Chrome e ligue a depuração remota; o Chrome pede para você permitir a conexão. Entre e saia dos sites no próprio Chrome.",
"settings.profiles.myChromeUnavailable": "A opção “Meu Chrome” funciona no app para computador, onde os bots rodam no seu próprio computador. Em outros lugares, como o Cloud, seu Chrome não está disponível. Por isso, todos os perfis usam o navegador integrado.",
"settings.profiles.myChromeLent": "No Cloud, este é o Chrome de {name}, seu {device}. Ele funciona enquanto esse {device} estiver ativo com o app {app} aberto, nas conversas que você mesmo iniciou.",
"settings.profiles.myChromeLentOffline": "{name} está offline no momento.",
@@ -3470,7 +3470,7 @@
"logins.totp": "Chave de configuração do 2FA (opcional)",
"logins.totpKeep": "Nova chave de configuração do 2FA (deixe em branco para manter a chave salva)",
"logins.totpHint": "A chave ou o endereço otpauth:// que um site mostra quando você configura um app autenticador. Com isso, o código de uso único também é preenchido.",
- "logins.private": "Criptografado no computador onde o app {app} roda e nunca mais exibido. Os bots nunca o veem: o app {app} digita na página de login para eles.",
+ "logins.private": "A senha fica criptografada no computador onde o app {app} roda e nunca mais é exibida. Os bots nunca a veem: o app {app} a digita na página de login para eles.",
"logins.cancel": "Cancelar",
"logins.saveError": "Não foi possível salvar o login.",
"settings.logins.title": "Logins",
@@ -3567,7 +3567,7 @@
"lmStudio.desc": "O Bionic é o app atual do LM Studio. Inicie o servidor de API local dele e adicione-o aqui. Os modelos de chat baixados são detectados a partir desse servidor.",
"lmStudio.port": "Porta",
"lmStudio.token": "Token de API (opcional)",
- "lmStudio.tokenHint": "Deixe em branco, a menos que Require authentication esteja ativado no LM Studio.",
+ "lmStudio.tokenHint": "Deixe em branco, a menos que a opção “Require authentication” esteja ativada no LM Studio.",
"lmStudio.add": "Adicionar LM Studio",
"lmStudio.adding": "Adicionando…",
"lmStudio.added": "Este servidor já foi adicionado.",
@@ -3598,7 +3598,7 @@
"keys.mistral.desc": "Para modelos oferecidos diretamente pela Mistral AI.",
"keys.mistral.link": "Console da Mistral",
"keys.cerebras.label": "Chave de API da Cerebras",
- "keys.cerebras.desc": "Modelos abertos (GPT OSS, Qwen) em chips da Cerebras, muitas vezes mais rápidos que serviços de nuvem com GPU. Adiciona a Cerebras às suas opções de IA.",
+ "keys.cerebras.desc": "Modelos abertos (GPT OSS, Qwen) rodam em chips da Cerebras, muitas vezes mais rápido do que em serviços de nuvem com GPU. Adiciona a Cerebras às suas opções de IA.",
"keys.cerebras.link": "Cerebras Cloud",
"keys.groq.label": "Chave de API da Groq",
"keys.groq.desc": "Para modelos servidos pela Groq. Adiciona a Groq às suas opções de IA, com o endpoint da API já definido.",
@@ -3752,7 +3752,7 @@
"usage.colNewTokens": "Tokens novos",
"usage.colCost": "Custo",
"usage.allBots": "Todos os bots",
- "usage.cachedNote": "A contagem de tokens novos não inclui {cached} tokens de entrada lidos novamente do cache do provedor. Isso porque cada sessão reenvia a conversa inteira com o prompt de sistema e os esquemas das ferramentas. Incluindo essas releituras, o total que passou pelo modelo foi de {total}. Passe o mouse sobre um número para ver o detalhamento.",
+ "usage.cachedNote": "A contagem de tokens novos não inclui os tokens de entrada lidos novamente do cache do provedor ({cached}). Isso porque cada sessão reenvia a conversa inteira com o prompt de sistema e os esquemas das ferramentas. Incluindo essas releituras, o total que passou pelo modelo foi de {total}. Passe o mouse sobre um número para ver o detalhamento.",
"usage.costLine": "Custo: {caption}.",
"usage.history.period": "Período",
"usage.history.thisMonth": "Este mês",
@@ -3890,7 +3890,7 @@
"people.portal.empty": "Ninguém entrou aqui ainda.",
"people.portal.note": "Esta lista só mostra quem entrou aqui. Ela não pode dar nem tirar acesso.",
"activity.title": "Atividade",
- "activity.subtitle": "Quem alterou configurações, a lista de pessoas, acessos e bots nesta instalação e quem respondeu aos cartões de aprovação. Os registros ficam neste servidor por {days} dias. Nada é enviado ao Admin da sua organização.",
+ "activity.subtitle": "Quem alterou configurações, a lista de pessoas, acessos e bots nesta instalação e quem respondeu aos cartões de aprovação. Os registros ficam neste servidor (prazo em dias: {days}). Nada é enviado ao Admin da sua organização.",
"activity.who": "Quem",
"activity.whoPlaceholder": "Nome ou e-mail",
"activity.what": "O quê",
@@ -3922,7 +3922,7 @@
"activity.decision.review-would-approve": "O revisor aprovaria",
"activity.decision.review-would-deny": "O revisor recusaria",
"activity.approvalLine": "{decision}: {tool}",
- "activity.approvalIn": "em {bot}",
+ "activity.approvalIn": "no bot {bot}",
"activity.action.config.update": "Alterou as configurações",
"activity.action.people.update": "Alterou quem pode entrar",
"activity.action.budget.update": "Alterou o limite de gastos ou os preços",
@@ -4284,7 +4284,7 @@
"remote.phones.title": "Apps do celular",
"remote.phones.empty": "Ainda não há permissão para usar os apps de nenhum celular. Abra o MausBot no celular e permita o uso deles em Configurações.",
"remote.phones.online": "Conectado",
- "remote.phones.offline": "Desconectado · última conexão {when}",
+ "remote.phones.offline": "Desconectado · visto por último {when}",
"remote.phones.remove": "Remover {name}",
"remote.phones.platform.ios": "iPhone",
"remote.phones.platform.android": "Android",
@@ -4372,7 +4372,7 @@
"phone.code.trouble": "Com dificuldade?",
"phone.code.manual": "Código manual",
"phone.code.address": "Endereço de pareamento",
- "phone.code.publicNetwork": "A rede {network} deste computador está definida como Pública no Windows, então o firewall pode bloquear seu celular. Se o celular não conseguir se conectar, abra Configurações do Windows → Rede e Internet → {network} e defina o tipo de perfil de rede como Privada.",
+ "phone.code.publicNetwork": "A rede {network} deste computador está definida como pública no Windows, então o firewall pode bloquear seu celular. Se o celular não conseguir se conectar, abra Configurações do Windows → Rede e Internet → {network} e selecione Rede privada em Tipo de perfil de rede.",
"phone.error.directUnavailable": "O pareamento direto por Wi-Fi não está disponível neste computador agora. Conecte-o a uma rede Wi-Fi e tente novamente.",
"phone.error.protectedUnavailable": "A rota de pareamento HTTPS ficou indisponível. Verifique o acesso seguro e crie um código novo.",
"phone.error.remoteUpdate": "Não foi possível atualizar o acesso remoto. Abra “Avançado e solução de problemas” e tente novamente.",
@@ -4453,10 +4453,10 @@
"vm.dest.browser": "Navegador",
"vm.dest.off": "Desligado",
"vm.confirm.deleteBotVm": "Excluir o desktop privado de {name}? A pasta permanente e os logins de sites são mantidos. Os apps instalados no desktop e os arquivos fora da pasta permanente são excluídos.",
- "vm.confirm.deleteCloud": "Excluir {subject} para sempre? Os arquivos e logins de navegador serão apagados. Não dá para desfazer.",
+ "vm.confirm.deleteCloud": "Excluir {subject} para sempre? Os arquivos e logins do navegador serão apagados. Não dá para desfazer.",
"vm.confirm.orphanCloud": "este desktop na nuvem abandonado",
"vm.confirm.ownedCloud": "o desktop na nuvem de {name}",
- "vm.confirm.removeVps": "Remover {subject} para sempre? Os arquivos e logins de navegador serão apagados. Não dá para desfazer.",
+ "vm.confirm.removeVps": "Remover {subject} para sempre? Os arquivos e logins do navegador serão apagados. Não dá para desfazer.",
"vm.confirm.orphanVps": "desktop {id} sem bot associado no seu VPS",
"vm.confirm.ownedVps": "desktop de {name} no seu VPS",
"vm.vps.title": "Computadores em VPS próprio",
@@ -4645,7 +4645,7 @@
"room.turnLimit.default": "Padrão ({minutes} min)",
"room.turnLimit.minutes": "{minutes} min",
"room.turnLimit.custom": "Personalizado…",
- "room.turnLimit.help": "Quanto tempo um bot pode ficar sem avançar nesta conversa antes de a sessão parar. “Padrão” usa o limite de sessão dos grupos definido em Configurações. Uma nova escolha vale a partir da próxima sessão.",
+ "room.turnLimit.help": "Quanto tempo um bot pode ficar sem avançar nesta conversa antes de a sessão parar. “Padrão” usa o limite de sessão dos grupos definido em “Configurações”. Uma nova escolha vale a partir da próxima sessão.",
"room.folder.title": "Pasta de trabalho",
"room.folder.detail": "Onde cada bot deste grupo executa as ferramentas de shell e de arquivo.",
"room.folder.own": "A pasta de cada bot",
@@ -5047,7 +5047,7 @@
"automations.app.checks": "verifica a cada 15 minutos",
"automations.app.waiting": "esperando o primeiro",
"automations.app.waitingEmail": "esperando o primeiro e-mail",
- "automations.app.limit": "Limite diário de eventos de apps {place}: {count}.",
+ "automations.app.limit": "Até {count} eventos de apps por dia {place}.",
"automations.app.placeDesktop": "neste computador",
"automations.app.placeCloud": "no Cloud",
"automations.reason.reconnect": "É preciso reconectar {app}.",
@@ -5395,7 +5395,7 @@
"connectors.section.yours": "Suas conexões",
"connectors.section.results": "Resultados da busca",
"connectors.section.available": "Apps disponíveis",
- "connectors.marketplace.partialCount": "mostrando {shown} de {total} apps (o serviço de conexão retornou um catálogo parcial)",
+ "connectors.marketplace.partialCount": "apps exibidos: {shown} de {total} (o serviço de conexão retornou um catálogo parcial)",
"connectors.marketplace.partialStalled": "o serviço de conexão devolveu um catálogo parcial",
"connectors.marketplace.partialReason": "o serviço de conexão parou de carregar as páginas antes do fim: {reason}",
"connectors.selfHostOnly": "Só com hospedagem própria",
@@ -5501,7 +5501,7 @@
"mcp.paste.label": "Link do servidor ou comando de configuração",
"mcp.paste.foundOne": "Tudo pronto para adicionar {name} ({where}).",
"mcp.paste.foundMany": "Tudo pronto para adicionar {count} servidores: {names}.",
- "mcp.paste.notRecognized": "Isso não parece um link de servidor nem um comando de configuração. Confira se você copiou tudo ou preencha os campos em Editar detalhes.",
+ "mcp.paste.notRecognized": "Isso não parece um link de servidor nem um comando de configuração. Confira se você copiou tudo ou preencha os campos em “Editar detalhes”.",
"mcp.paste.badJson": "Esse bloco de configurações está incompleto ou inválido. Copie tudo novamente e cole aqui.",
"mcp.paste.incomplete": "O comando está sem o nome ou o endereço do servidor. Copie tudo novamente e cole aqui.",
"mcp.paste.badPair": "Um cabeçalho ou uma configuração do comando não está no formato Nome: valor ou NOME=valor. Corrija e cole novamente.",
@@ -5523,14 +5523,14 @@
"mcp.check.connectedOne": "Conectado: 1 ferramenta",
"mcp.check.connectedMany": "Conectado: {count} ferramentas",
"mcp.check.overLimit": "Algumas IAs aceitam no máximo {limit} ferramentas de uma vez. Nelas, as ferramentas deste servidor ficam disponíveis pela busca de ferramentas.",
- "mcp.check.crowdsLimit": "Isso ocupa {count} das {limit} ferramentas que algumas IAs aceitam de uma vez. Nelas, as ferramentas de outros servidores MCP podem ficar disponíveis pela busca de ferramentas.",
+ "mcp.check.crowdsLimit": "São {count} das {limit} ferramentas que algumas IAs aceitam de uma vez. Nelas, as ferramentas de outros servidores MCP podem ficar disponíveis pela busca de ferramentas.",
"mcp.check.failed": "Não foi possível conectar. {reason}",
"mcp.check.failedOff": "Não foi possível conectar, então ele continua desligado. {reason}",
"mcp.check.savedOff": "Salvo, mas desligado: o teste não passou. {reason} Seus bots podem usá-lo assim que ele estiver ligado.",
"mcp.check.testingOff": "Desligado até passar no teste. Testando agora.",
"mcp.check.tryAgain": "Tentar novamente",
"mcp.check.keysRefused": "O servidor não aceitou as chaves ({reason}). Confira os valores de {names}.",
- "mcp.check.keysNeeded": "O servidor não permitiu o acesso ({reason}). Ele provavelmente precisa de uma chave: adicione-a em Corrigir as chaves.",
+ "mcp.check.keysNeeded": "O servidor não permitiu o acesso ({reason}). Ele provavelmente precisa de uma chave: adicione-a em “Corrigir as chaves”.",
"mcp.check.fixKeys": "Corrigir as chaves",
"mcp.fixKeys.title": "Corrigir as chaves de {name}",
"mcp.fixKeys.hint": "Cole cada valor novamente. Os valores salvos nunca são exibidos. Deixe um campo em branco para manter o que já está salvo.",
@@ -5636,7 +5636,7 @@
"remote.serverPairing.scope.client": "Somente chat e aprovações",
"remote.serverPairing.create": "Criar código de pareamento",
"teamPhone.title": "Abrir no seu celular",
- "teamPhone.subtitle": "Leia este código com o app {app} no celular. Seu celular abre {team} com sua conta e as conversas que você vê aqui.",
+ "teamPhone.subtitle": "Leia este código com o app {app} no celular. Seu celular abre {team} com sua conta de usuário e as conversas que você vê aqui.",
"teamPhone.stays": "Seu celular continua conectado enquanto a equipe {team} estiver aberta neste app.",
"teamPhone.remove": "Remover",
"remote.serverPairing.creating": "Criando…",
@@ -5827,7 +5827,7 @@
"companyBackup.create": "Fazer backup desta instalação",
"companyBackup.restore": "Restaurar este backup",
"companyBackup.delete": "Excluir backup na nuvem",
- "companyBackup.refresh": "Atualizar backups na nuvem",
+ "companyBackup.refresh": "Atualizar lista de backups na nuvem",
"companyBackup.cancel": "Cancelar",
"companyBackup.cancelTransfer": "Cancelar transferência",
"companyBackup.loading": "Carregando seus backups na nuvem…",
@@ -5935,7 +5935,7 @@
"team.instructionsLastSaved": "Último salvamento: {time}.",
"canvasComputers.title": "Desktops",
"canvasComputers.refresh": "Atualizar desktops",
- "canvasComputers.close": "Fechar desktops",
+ "canvasComputers.close": "Fechar o painel de desktops",
"canvasComputers.hint": "Arraste um desktop para uma equipe ou escolha a equipe abaixo. Bots no modo Auto vão usá-lo.",
"canvasComputers.connectBoatHint": "Conecte sua conta Boat antes de criar um desktop na nuvem.",
"canvasComputers.connectBoat": "Conectar Boat",
@@ -5961,7 +5961,7 @@
"canvasComputers.openTitle": "Pausa o controle dos bots enquanto você usa o desktop",
"canvasComputers.openDesktop": "Abrir desktop",
"canvasComputers.returnToBots": "Devolver o controle aos bots",
- "canvasComputers.inUseTitle": "Outra pessoa pausou o controle dos bots neste desktop",
+ "canvasComputers.inUseTitle": "O controle dos bots neste desktop foi pausado em outra visualização",
"canvasComputers.inUse": "Em uso",
"canvasComputers.openSecure": "Abrir desktop seguro",
"canvasComputers.moreSettings": "Mais configurações de desktop…",
@@ -6028,7 +6028,7 @@
"place.view.ccNoHours.lineUnknown": "As horas de desktop na nuvem deste mês acabaram.",
"place.view.ccAtOnce.short": "Em uso",
"place.view.ccAtOnce.lineOne": "Seu plano {plan} inclui 1 desktop na nuvem, e {holders} está com ele.",
- "place.view.ccAtOnce.lineMany": "Seu plano {plan} inclui {max} desktops na nuvem, e {holders} estão com eles.",
+ "place.view.ccAtOnce.lineMany": "Seu plano {plan} inclui {max} desktops na nuvem, todos em uso por {holders}.",
"place.view.ccAtOnce.lineUnknown": "Todos os desktops na nuvem incluídos no seu plano estão em uso.",
"place.view.ccUnavailable.short": "Indisponível agora",
"place.view.ccUnavailable.line": "Não é possível iniciar os desktops na nuvem agora. Não é culpa sua.",
@@ -6077,7 +6077,7 @@
"place.action.addBoatKey": "Conectar Boat",
"place.action.turnOnBrowser": "Ligar o navegador",
"place.action.openTeamMap": "Abrir o Mapa da equipe",
- "place.action.openVmSettings": "Configurações do desktop privado",
+ "place.action.openVmSettings": "Abrir configurações do desktop privado",
"place.action.clearPin": "Desafixar o local desta conversa",
"place.action.usePlace": "Usar {place}",
"place.action.changeRoutine": "Alterar onde ela roda",
@@ -6545,8 +6545,8 @@
"data.card.reduction.group": "agrupadas",
"data.card.reduction.bins": "em faixas",
"data.card.reduction.topN": "principais categorias",
- "data.card.reduction.timeBucket": "por tempo",
- "data.card.reduction.m4": "reduzidas",
+ "data.card.reduction.timeBucket": "por intervalo de tempo",
+ "data.card.reduction.m4": "com amostragem reduzida",
"data.card.reduction.sample": "por amostragem",
"data.card.reduction.none": "como estão",
"data.card.exported": "Salvo em {path}",
@@ -7081,7 +7081,7 @@
"homeScreen.offline": "Não foi possível acessar o Cloud agora.",
"homeScreen.offlineBack": "Ele volta sozinho assim que responder.",
"homeScreen.signIn": "Entre para abrir o Cloud",
- "homeScreen.signInEnded": "Este computador não está mais conectado ao MausBot Cloud. Seus bots e conversas estão seguros no Cloud.",
+ "homeScreen.signInEnded": "Seu login no MausBot Cloud não está mais ativo neste computador. Seus bots e conversas estão seguros no Cloud.",
"homeScreen.signInOther": "Este computador está conectado ao MausBot Cloud com outra conta. Entre com a conta a que o Cloud pertence.",
"homeScreen.signInButton": "Entrar",
"homeScreen.plan": "O Cloud não está rodando",
@@ -7370,8 +7370,8 @@
"botAccess.overview.searchBots": "Buscar bots",
"botAccess.overview.searchPeople": "Buscar pessoas",
"botAccess.overview.noBotMatch": "Nenhum bot corresponde à busca",
- "botAccess.overview.botCount.one": "Um bot",
- "botAccess.overview.botCount.other": "{count} bots ao todo",
+ "botAccess.overview.botCount.one": "1 bot",
+ "botAccess.overview.botCount.other": "{count} bots",
"botAccess.overview.noBotsForPerson": "{name} ainda não tem bots.",
"botAccess.overview.allPeople": "Ver todas as pessoas",
"botAccess.overview.toastRemoved": "{bot}: você removeu {name}",
@@ -7489,7 +7489,7 @@
"brief.row.signedOut": "Sem login em {engine}",
"brief.row.signInAgain": "Faça login novamente em Configurações → Provedores de modelos.",
"brief.row.usageLimit": "Uma IA atingiu o limite de uso",
- "brief.row.trialCredit": "O crédito do teste não cobre isto",
+ "brief.row.trialCredit": "O crédito do teste para o Claude não cobre isto",
"brief.row.trialCreditNote": "Entre com sua própria conta de IA ou adicione uma chave.",
"brief.row.reconnect": "É preciso reconectar {app}",
"brief.row.place": "Um bot não conseguiu acessar o computador dele",
@@ -7499,7 +7499,7 @@
"brief.row.clash": "Conflito de horário entre {first} e {second}",
"brief.row.clashNote": "{first} e {second}",
"brief.row.cantRead": "Não foi possível ler os dados do {app}",
- "brief.row.reconnectIn": "Reconecte {app} em Apps conectados.",
+ "brief.row.reconnectIn": "Reconecte {app} em “Apps conectados”.",
"brief.row.tryAgainSoon": "Vou tentar novamente em breve.",
"brief.row.unfenced": "Não organizei os e-mails nem preparei as reuniões",
"brief.row.unfencedNote": "Para isso, a IA de {name} precisa ser um modelo Claude. Seu dia, os lembretes e os conflitos de horário continuam aparecendo aqui.",
@@ -7515,7 +7515,7 @@
"update.error.slowRestart": "A reinicialização está demorando mais que o esperado. Saia e abra o OpenMausBot novamente para concluir a atualização.",
"update.error.unavailable": "Atualizador indisponível",
"update.error.restartFirst": "Saia e abra o OpenMausBot de novo antes de tentar a atualização novamente.",
- "common.emailPlaceholder": "[email protected]",
+ "common.emailPlaceholder": "[email protected]",
"chat.notice.restartInterrupted": "Sessão interrompida: o OpenMausBot reiniciou.",
"chat.notice.resumingAfterRestart": "Retomando após uma reinicialização",
"chat.notice.cutOffByRestart": "Uma reinicialização interrompeu {name}. Retomando.",
@@ -7533,7 +7533,7 @@
"chat.notice.part.usageLimit": "limite de uso",
"chat.notice.part.chooseModel": "escolha outro modelo para este bot",
"chat.notice.part.switchAccount": "use outra IA ou outra conta do Claude para este bot",
- "chat.notice.webhookHome": "Voltei para este computador, então meu webhook “{name}” tem um endereço aqui novamente. Abra Automações, escolha “Copiar endereço” em “{name}” e cole no app que envia para ele.",
+ "chat.notice.webhookHome": "Voltei para este computador, então meu webhook “{name}” tem um endereço aqui novamente. Abra “Automações”, escolha “Copiar endereço” em “{name}” e cole no app que envia para ele.",
"chat.digestChipNoFilesOne": "Fez 1 chamada de ferramenta",
"chat.digestChipOneTool": "Fez 1 chamada de ferramenta · {files} arquivos alterados",
"chat.digestChipOneFile": "Fez {tools} chamadas de ferramenta · 1 arquivo alterado",
@@ -8318,7 +8318,7 @@
"pair.browser.notYou": "Não é o seu e-mail? Feche esta aba.",
"pair.continue": "Continuar",
"readyBots.bot.assistant.title": "Assistente geral",
- "readyBots.bot.assistant.description": "Responde perguntas, escreve rascunhos e cuida do que você passar para ele.",
+ "readyBots.bot.assistant.description": "Responde a perguntas, escreve rascunhos e cuida do que você passar para ele.",
"readyBots.bot.assistant.try": "Planeje minha semana a partir desta lista de tarefas",
"readyBots.bot.inbox.title": "Triagem de e-mails",
"readyBots.bot.inbox.description": "Lê sua caixa de entrada, sinaliza o que precisa da sua atenção e escreve respostas para você aprovar.",
@@ -8339,7 +8339,7 @@
"readyBots.bot.writer.description": "Escreve e edita posts, e-mails e documentos no seu estilo, de uma anotação solta até a versão final.",
"readyBots.bot.writer.try": "Transforme estas anotações em um post para o LinkedIn",
"readyBots.bot.analyst.title": "Analista de dados",
- "readyBots.bot.analyst.description": "Responde perguntas sobre planilhas e CSVs com números, tabelas e gráficos que você pode conferir.",
+ "readyBots.bot.analyst.description": "Responde a perguntas sobre planilhas e CSVs com números, tabelas e gráficos que você pode conferir.",
"readyBots.bot.analyst.try": "Quais são os 10 maiores clientes por receita neste CSV?",
"readyBots.bot.meeting-notes.title": "Atas de reunião",
"readyBots.bot.meeting-notes.description": "Transforma transcrições e anotações soltas em decisões, responsáveis e próximos passos.",
@@ -8531,7 +8531,7 @@
"serverError.chat.savingCredential": "Uma credencial está sendo salva com segurança nesta conversa. Tente novamente quando o processo terminar.",
"serverError.team.personalMove": "Os bots, as conversas e os logins de um computador só podem ir para o Cloud. Nada pessoal entra em {team}.",
"serverError.team.memberLogin": "Em {team}, só um admin pode salvar um login. Todos os bots de {team} passam a usar esse login.",
- "serverError.team.signInFirst": "Entre em {team} no app primeiro.",
+ "serverError.team.signInFirst": "Primeiro, faça login em {team} no app.",
"serverError.chat.ownerOrAdmin": "Só o dono ou um admin pode fazer isso.",
"serverError.routine.checks": "Escolha o que verificar: agenda, e-mail e execuções.",
"serverError.routine.checksRepeat": "As verificações precisam de uma rotina de bot que se repita.",
@@ -8541,7 +8541,7 @@
"serverError.department.confirmExtra": "Confirme o acesso às outras equipes (acknowledgePeerScope).",
"serverError.team.sessionEnded": "Sua sessão terminou. Entre novamente antes de criar um código de pareamento.",
"serverError.team.noSuchPhone": "Esse celular não foi encontrado.",
- "serverError.page.roomOrClosed": "Páginas de um grupo ou de uma conversa fechada não podem ser publicadas aqui.",
+ "serverError.page.roomOrClosed": "Páginas de um grupo ou de uma conversa encerrada não podem ser publicadas aqui.",
"serverError.page.notHere": "Essa página não está nesta conversa.",
"serverError.page.fromMcp": "Esse app veio de um servidor MCP. Só uma página feita por um bot pode ser publicada.",
"serverError.page.versionGone": "Essa versão da página não está mais guardada.",
@@ -8763,7 +8763,7 @@
"chat.notice.phone.write.PHONE_DELETE_REMINDER": "Excluir lembrete em {phone}",
"chat.notice.phone.write.PHONE_CREATE_CONTACT": "Criar contato em {phone}",
"chat.notice.phone.write.PHONE_UPDATE_CONTACT": "Atualizar contato em {phone}",
- "chat.notice.phone.write.PHONE_SET_ACCESSORY": "Configurar acessório em {phone}",
+ "chat.notice.phone.write.PHONE_SET_ACCESSORY": "Controlar acessório em {phone}",
"chat.notice.phone.write.PHONE_RUN_SCENE": "Executar cena em {phone}",
"chat.notice.phone.write.PHONE_SEND_MESSAGE": "Enviar mensagem em {phone}",
"chat.notice.phone.write.PHONE_SEND_WHATSAPP": "Enviar mensagem pelo WhatsApp em {phone}",
@@ -8801,7 +8801,7 @@
"serverError.department.generalChief": "A equipe Geral já tem um chefe de gabinete. Antes de excluir esta equipe, mova o chefe dela ou mude a função dele",
"chat.notice.acpRestarted": "{provider} foi reiniciado porque uma sessão que compartilha seu processo ignorou “Parar”",
"chat.notice.acpStopFailed": "{provider} ignorou “Parar” e não foi possível encerrar seu processo",
- "chat.notice.toolCount": "{provider} recusou esta sessão porque este modelo aceita no máximo {limit} ferramentas e este bot oferece mais, mesmo com as listas reduzidas. Nada foi executado. Desligue alguns apps ou servidores MCP deste bot, ou mude para outro modelo.",
+ "chat.notice.toolCount": "{provider} recusou esta sessão porque o limite de ferramentas deste modelo é {limit} e este bot oferece mais, mesmo com as listas reduzidas. Nada foi executado. Desligue alguns apps ou servidores MCP deste bot, ou mude para outro modelo.",
"chat.notice.toolCountUnknown": "{provider} recusou esta sessão porque este modelo aceita um número limitado de ferramentas e este bot oferece mais, mesmo com as listas reduzidas. Nada foi executado. Desligue alguns apps ou servidores MCP deste bot, ou mude para outro modelo.",
"chat.notice.goalRetry": "A sessão de {name} não terminou como esperado ({why}) — tentando mais uma vez.",
"chat.notice.part.providerFailed": "o provedor falhou",
@@ -8929,7 +8929,7 @@
"native.files.gitProtected": "Arquivos dentro de .git nunca são alterados pelo Cloud.",
"native.files.changeDamaged": "A alteração foi danificada durante a transferência e será baixada novamente.",
"native.places.chooseColor": "Escolha uma das cores.",
- "native.places.noColor": "Este local não tem uma cor para mudar.",
+ "native.places.noColor": "Não há cor para alterar neste local.",
"native.talk.listening": "Ouvindo…",
"native.talk.sending": "Enviando para o MausBot…",
"native.talk.thinking": "O MausBot está pensando…",
@@ -8995,7 +8995,7 @@
"secretCard.delivery.refNamed": "{botName} recebe uma referência de uso único para as próprias ferramentas do OpenMausBot e nunca vê o conteúdo.",
"serverError.secret.missing": "Esse pedido de credencial não existe",
"serverError.secret.settingsCard": "Este cartão salva uma chave em Configurações",
- "serverError.secret.savingFromPhone": "Esta credencial está sendo salva por um celular",
+ "serverError.secret.savingFromPhone": "Esta credencial está sendo salva pelo celular",
"serverError.secret.declined": "Este pedido foi recusado",
"serverError.secret.replaced": "Este pedido foi substituído por um mais recente",
"serverError.secret.taskStopped": "Este pedido foi interrompido junto com a tarefa",
@@ -9048,7 +9048,7 @@
"serverError.secret.localService": "Um serviço local não pode inserir uma credencial. Insira pelo OpenMausBot.",
"serverError.secret.cloudOwnerOnly": "Só o proprietário deste Cloud pode inserir esta credencial.",
"serverError.secret.conversationOwnerOnly": "Só a pessoa dona desta conversa pode inserir esta credencial.",
- "serverError.secret.credentialSavingFromPhone": "Esta credencial está sendo salva por um celular",
+ "serverError.secret.credentialSavingFromPhone": "Esta credencial está sendo salva pelo celular",
"serverError.secret.credentialDismissed": "Este pedido de credencial foi dispensado",
"serverError.secret.credentialSuperseded": "Este pedido de credencial foi substituído por um mais recente",
"serverError.secret.notSavedYet": "Ainda falta salvar: {label}",
@@ -9107,5 +9107,90 @@
"server.routines.cron.nthWeekend.last": "Todo mês no último {weekday} às {time}",
"attach.imagesLeftOutOne": "Uma mensagem aceita até {count} imagens, com {megabytes} MB no total. O arquivo {names} não foi anexado.",
"attach.imagesLeftOutMany": "Uma mensagem aceita até {count} imagens, com {megabytes} MB no total. Os arquivos {names} não foram anexados.",
- "attach.archivesUnsupported": "Arquivos compactados não podem ser anexados: descompacte {names} e anexe os arquivos de dentro."
+ "attach.archivesUnsupported": "Arquivos compactados não podem ser anexados: descompacte {names} e anexe os arquivos de dentro.",
+ "native.accounts.notSignedIn": "Essa conta não está mais conectada aqui.",
+ "native.home.ownCopyNotReady": "O OpenMausBot neste computador ainda não conseguiu voltar à própria cópia.",
+ "native.home.ownCopyNotRunning": "A cópia deste computador não está rodando.",
+ "native.cloud.connectedAppsStay": "Seus apps conectados ficam neste computador: esse servidor não tem um serviço próprio de apps conectados. Conecte-os novamente lá, em “Apps”.",
+ "native.home.notAvailable": "Esse servidor não pode ser o local principal dos seus bots agora.",
+ "native.lend.homeChanged": "Este servidor não é mais o local principal dos seus bots",
+ "native.lend.terminalSignIn": "Entre no Cloud antes de permitir que ele use o terminal.",
+ "native.lend.terminalAllow": "Permitir que executem comandos",
+ "native.lend.terminalTitle": "Permitir que seus Clouds executem comandos neste computador?",
+ "native.lend.terminalDetail": "Os bots nos seus próprios Clouds poderão executar qualquer comando neste computador com as suas permissões, inclusive ler e alterar qualquer arquivo que você puder acessar. Você pode desligar essa opção no menu do ícone do OpenMausBot.",
+ "native.lendTray.canUseWithoutScreen": "{clouds} com acesso a este {device}, mas não aos apps e à tela dele",
+ "native.lendTray.terminal": "Permitir que os Clouds executem comandos neste {device}",
+ "native.screen.windowsHelperBlocked": "Não foi possível iniciar o controle do computador neste PC: o programa auxiliar, cua-driver-background.exe ou cua-driver.exe, está ausente ou bloqueado. A Segurança do Windows pode tê-lo colocado em quarentena: abra Segurança do Windows → Proteção contra vírus e ameaças → Histórico de proteção, restaure ou permita o programa (ou reinstale o OpenMausBot) e reinicie o OpenMausBot.",
+ "native.home.itemDidNotMove": "A transferência não aconteceu.",
+ "native.home.signedOut": "Este app não está conectado a {name}. Abra {name} neste app e tente novamente.",
+ "native.home.serverChanged": "O servidor no endereço de {name} agora é outro, então nada mais será enviado para lá.",
+ "native.home.otherPeople": "Agora há outras pessoas em {name}, então seus bots não podem ser transferidos para lá.",
+ "native.home.localNoAnswer": "O OpenMausBot neste computador não respondeu. Tente novamente em instantes.",
+ "native.home.localResumeFailed": "O OpenMausBot neste computador não conseguiu retomar o funcionamento.",
+ "native.home.serverGone": "Esse servidor não está mais neste app.",
+ "native.home.alreadyMoving": "Seus bots já estão sendo transferidos.",
+ "native.home.movingToCloud": "Seus bots estão sendo transferidos para o Cloud.",
+ "native.home.personalServerOnly": "Há outras pessoas em {name}, então seus bots ficam aqui. Só um servidor exclusivo seu pode ser o local principal dos seus bots.",
+ "native.home.updateServer": "Primeiro, atualize o OpenMausBot em {name} e tente novamente.",
+ "native.server.notAnswering": "{name} não está respondendo",
+ "native.server.notAnsweringDetail": "Nada responde em {host}. Se esse servidor não vai mais funcionar, remova-o da lista. Isso não afeta seus bots em outros lugares.",
+ "native.screen.starting": "O controle de tela está iniciando neste {device}",
+ "native.screen.permissions": "O macOS ainda não permitiu o controle de tela",
+ "native.screen.blockedWindows": "O controle de tela está bloqueado: a Segurança do Windows pode tê-lo interrompido",
+ "native.screen.blocked": "O controle de tela está bloqueado neste {device}",
+ "native.screen.off": "O controle de tela está desligado neste {device}",
+ "native.screen.unsupported": "O controle de tela não pode funcionar neste {device}",
+ "native.screen.notRunning": "O controle de tela não está rodando neste {device}",
+ "native.screen.allow": "Permitir o controle de tela…",
+ "native.screen.turnOn": "Ligar o controle de tela",
+ "native.screen.wantScreen": "usar os apps e a tela deste {device}",
+ "native.screen.wantFiles": "usar os arquivos deste {device}",
+ "native.screen.wantTerminal": "executar comandos neste {device}",
+ "native.screen.paused": "O uso deste {device} está pausado.",
+ "native.screen.terminalOff": "A execução de comandos não está ligada neste {device}.",
+ "native.screen.allowMac": "O macOS ainda não permitiu que o OpenMausBot veja e use a tela. O botão “Ligar” pede essa permissão ao macOS.",
+ "native.screen.askTitle": "{bot} em {cloud} quer {want}",
+ "native.home.placeNotSuggested": "Esse lugar não foi sugerido por este app.",
+ "native.home.bringUnavailable": "Não é possível reunir seus bots lá agora.",
+ "chat.notice.memoryReclaimedBrowser": "Faltou memória, então fechei o navegador para manter o restante funcionando.",
+ "chat.notice.memoryReclaimedTask": "Faltou memória, então interrompi esta tarefa para manter o restante funcionando.",
+ "chat.notice.memoryReclaimedBrowserDetail": "Faltou memória, então fechei o navegador para manter o restante funcionando. ({detail})",
+ "chat.notice.memoryReclaimedTaskDetail": "Faltou memória, então interrompi esta tarefa para manter o restante funcionando. ({detail})",
+ "server.personFirst.stoppedSeconds": "Interrompi um passo que já durava {seconds} s para responder a você primeiro",
+ "server.personFirst.stoppedMinutes": "Interrompi um passo que já durava {minutes} min para responder a você primeiro",
+ "server.routines.held.planCancelled": "Suas rotinas estão pausadas porque o plano foi cancelado. Para manter uma delas rodando até o fim do plano, ligue-a novamente em “Rotinas”.",
+ "server.routines.held.noEngine": "Suas rotinas estão pausadas: nenhuma das suas contas de IA continua conectada aqui. O app liga as rotinas automaticamente quando você entrar novamente.",
+ "server.routines.held.noConnections": "Suas rotinas estão pausadas: todos os apps conectados e servidores MCP foram removidos. O app liga as rotinas quando você conectar um deles. Você também pode ligar uma rotina novamente em “Rotinas”.",
+ "mcp.request.change": "Alterar",
+ "mcp.request.remove": "Remover",
+ "secretCard.greenference.description": "Roda modelos do Greenference com sua própria chave.",
+ "chat.notice.elicitationUrlDeclined": "{server} pediu que você abrisse um link para continuar. O OpenMausBot não pode abri-lo por aqui, então o pedido foi recusado. Abra o link e peça ao bot para tentar novamente.",
+ "chat.notice.elicitationUrlDeclinedWithUrl": "{server} pediu que você abrisse um link para continuar: {url}. O OpenMausBot não pode abri-lo por aqui, então o pedido foi recusado. Abra o link e peça ao bot para tentar novamente.",
+ "chat.notice.elicitationUrlDeclinedGeneric": "Um servidor MCP pediu que você abrisse um link para continuar. O OpenMausBot não pode abri-lo por aqui, então o pedido foi recusado. Abra o link e peça ao bot para tentar novamente.",
+ "chat.notice.elicitationUrlDeclinedGenericWithUrl": "Um servidor MCP pediu que você abrisse um link para continuar: {url}. O OpenMausBot não pode abri-lo por aqui, então o pedido foi recusado. Abra o link e peça ao bot para tentar novamente.",
+ "chat.notice.elicitationFormDeclinedOne": "{server} pediu que você preenchesse um campo. O OpenMausBot ainda não pode mostrar esse formulário, então o pedido foi recusado.",
+ "chat.notice.elicitationFormDeclinedMany": "{server} pediu que você preenchesse {fields} campos. O OpenMausBot ainda não pode mostrar esse formulário, então o pedido foi recusado.",
+ "chat.notice.elicitationFormDeclinedOneMessage": "{server} pediu que você preenchesse um campo (“{message}”). O OpenMausBot ainda não pode mostrar esse formulário, então o pedido foi recusado.",
+ "chat.notice.elicitationFormDeclinedManyMessage": "{server} pediu que você preenchesse {fields} campos (“{message}”). O OpenMausBot ainda não pode mostrar esse formulário, então o pedido foi recusado.",
+ "chat.notice.elicitationFormDeclinedGenericOne": "Um servidor MCP pediu que você preenchesse um campo. O OpenMausBot ainda não pode mostrar esse formulário, então o pedido foi recusado.",
+ "chat.notice.elicitationFormDeclinedGenericMany": "Um servidor MCP pediu que você preenchesse {fields} campos. O OpenMausBot ainda não pode mostrar esse formulário, então o pedido foi recusado.",
+ "chat.notice.elicitationFormDeclinedGenericOneMessage": "Um servidor MCP pediu que você preenchesse um campo (“{message}”). O OpenMausBot ainda não pode mostrar esse formulário, então o pedido foi recusado.",
+ "chat.notice.elicitationFormDeclinedGenericManyMessage": "Um servidor MCP pediu que você preenchesse {fields} campos (“{message}”). O OpenMausBot ainda não pode mostrar esse formulário, então o pedido foi recusado.",
+ "chat.notice.elicitationContinue": "{server} pede para continuar",
+ "chat.notice.elicitationContinueGeneric": "Um servidor MCP pede para continuar",
+ "chat.notice.elicitationMessageGeneric": "Um servidor MCP: {message}",
+ "chat.notice.appAccessRequested": "Pedido de acesso ao app",
+ "chat.notice.codexModelUnavailable": "Este modelo não está disponível no seu plano do ChatGPT, por isso agora está oculto na lista de modelos desta conta. Escolha outro modelo.",
+ "chat.notice.codexElicitationDeclined": "{server} pediu informações que o OpenMausBot ainda não pode mostrar, então o pedido foi recusado.",
+ "chat.notice.codexElicitationDeclinedGeneric": "Um servidor MCP pediu informações que o OpenMausBot ainda não pode mostrar, então o pedido foi recusado.",
+ "chat.notice.usageLimitResets": "Esta conta de {provider} atingiu o limite de uso{detail}, que será renovado em {resets}. Até lá, troque a IA deste bot.",
+ "approval.voice.titled": "{requester}: {title} Confira os detalhes e escolha {allow} ou {cancel}.",
+ "approval.action.deleteBot": "Excluir bot",
+ "approval.action.applySetup": "Aplicar configuração",
+ "routines.editor.roomMissing": "O grupo não existe mais. Escolha outro.",
+ "browser.panel.maximizeHint": "Maximizar (ocupar a janela do app)",
+ "browser.panel.fullscreenHint": "Usar tela cheia (ocupar o monitor inteiro)",
+ "time.invalid": "Data inválida",
+ "shortcuts.send-follow-up": "Enquanto um bot trabalha: colocar na fila em vez de direcionar, ou o contrário",
+ "serverError.bot.viewOnly": "Você pode ver {bot}, mas não conversar com ele."
}
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index 539e40fa8b..bef9163613 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -29830,7 +29830,92 @@
"server.routines.cron.nthWeekend.last": "046ffe9386c0b114850e60f39089b81d443c4a6490b183b550db7d5192cc7d29",
"attach.imagesLeftOutOne": "402e21d809621935f18273f84e146eaf628bcf4876ff041bb53452570a338070",
"attach.imagesLeftOutMany": "e71ffd37f0f2b5342652c635957c44a9b13c0db6ef30129618960a524875bf8f",
- "attach.archivesUnsupported": "b12cc0cb95d16bba1e3ebc915466c1bf00632807ee80572d8ed16b39cc27c71c"
+ "attach.archivesUnsupported": "b12cc0cb95d16bba1e3ebc915466c1bf00632807ee80572d8ed16b39cc27c71c",
+ "native.accounts.notSignedIn": "cdac3e63ae6821a3e9d53cc342447cf0ac209672a5eaaec1f62c40bb103c6a47",
+ "native.home.ownCopyNotReady": "ce74be60b4fec9f004309f847527956c28a564fda61283f4558109cf0afcbce3",
+ "native.home.ownCopyNotRunning": "5fd02c26e265964371db2ef1579da50d97ab84471c5f8ea5b72d5fdfcdb6ce5c",
+ "native.cloud.connectedAppsStay": "c3a421ad14dca5dfd60cbabc57adef08f915dbafd17b810f32183caae51c25ab",
+ "native.home.notAvailable": "dbf36457a2a02da6ea492a07cd490dd7223d15072e2b666f7d38d6a4e30b5054",
+ "native.lend.homeChanged": "788e95df72449e37ff8c5c6e06d5786a757620790e78141bca9406f78d2325bf",
+ "native.lend.terminalSignIn": "17ea644d66575d61d12e03d1ac9395f96b3d7b606103635a03906a18fec0b42a",
+ "native.lend.terminalAllow": "da0896de3bb1b126f9f56d3f901cee9a1907cdc8b38044517a640d0e447fdc96",
+ "native.lend.terminalTitle": "73eca16c5a5888020900752e251f7d58e1d1ddd831ea27662bc672e770737995",
+ "native.lend.terminalDetail": "d907fa930ce5940a03a99a7ba7f786a88b38a4962e9c8a213b8b02d97aeac6d6",
+ "native.lendTray.canUseWithoutScreen": "1da33fdcd00f7c329f4e55e5a3f41a2fa4f2313f3b21a6131384a2f24e5e862d",
+ "native.lendTray.terminal": "79dfcde11aa21cda7b6d882e1102d48228d2919fcea30f56d40dfe7787ac076f",
+ "native.screen.windowsHelperBlocked": "b42807e40f747d397dff52acf08af2de6a816611cdddebab270f2b1a5a0a366f",
+ "native.home.itemDidNotMove": "dfb183427d634cab0060966050622aee2c8f62ab9da0e661ee8b9ce6d03d7067",
+ "native.home.signedOut": "44c87db1c19caa119016ab6f3d623285a573509e5b39a6c26034ad9c2041634a",
+ "native.home.serverChanged": "72733799911a716cdccc8d7127e17c3c8b91147b1c1bcea863fcf35fec51fcfa",
+ "native.home.otherPeople": "4d3b62257b5ae83a11551c99b232dbb278ab6ffd96b376efa136f8fcfc6f8b8a",
+ "native.home.localNoAnswer": "dea68ccf76863e8732bde5885183324930151fc6a795954e11ba20130ff6aad3",
+ "native.home.localResumeFailed": "349d5ecc7d3c9df4a9df88a9ae3dba157fb7e158b91fcd8f152a3074ef2c5029",
+ "native.home.serverGone": "1e8c25fcb4bfed4d2b44b11697a39841054047b5586410943e41b28f9286a834",
+ "native.home.alreadyMoving": "71b45620785f4db5b071dfc2ebd017598e1a28f0f2484d951d169a5834998f3d",
+ "native.home.movingToCloud": "a7aa3b4ec6d1fbc253d7f3ed82860dff9e481c4ceb9619de217674e1d7e4e022",
+ "native.home.personalServerOnly": "4c6c9b1fe5dcc99fe450cfc65089d8e5ae34d422c6b15536d0aa692408bb3cc6",
+ "native.home.updateServer": "36062cebaf92a043f561c2f756874a0e63ccf462712992d723c3b7d248251a52",
+ "native.server.notAnswering": "8d8b56e162578887f7a8e1cfd6e0fc1a24b0eca7b1d34cc925e4e7bc0b52fc6b",
+ "native.server.notAnsweringDetail": "332245a88d6b2ac75d6988706b51c29e634313f96011268f7f0cb8026416bfeb",
+ "native.screen.starting": "e15788d970ef850099ebb1d3e68d2e81610a735d17407089d9c481b37d6d26ff",
+ "native.screen.permissions": "72ee0d045e5a0c44e2291568b274ab94a6d69fc5b664161a489f995c94c2cce1",
+ "native.screen.blockedWindows": "d5d586fbfc220135c8cd5b9a9c07860d2d74b58587275c419c8c4612aab7d165",
+ "native.screen.blocked": "6bc5c36b22a4fc3f108220fc34f42ccd270757d2b043016a62ba8c2fb0e883f7",
+ "native.screen.off": "c90eb324bcef207ae745a569e28481f520fba072105389b73081122879e9bacd",
+ "native.screen.unsupported": "43a78ba489f1fe966bb6501220026e954c9a00ccd301d98777bdb351b896e792",
+ "native.screen.notRunning": "3750c8c1f1298923edf2296a43b1637c01d72ba398d3f62a3bdedda32eaf06b1",
+ "native.screen.allow": "62698f58c1a8077625033cd65d8c030199f37d094cc14dbbe1824929649e47a8",
+ "native.screen.turnOn": "8e7b8b9fc9d82643ab7d8b90b96a293ecd5c0352470132d01315e3db80b6992f",
+ "native.screen.wantScreen": "ca9f91d165698fcf35342636ae5fa2189d43ac6f62669035ad87bf5433e03a0d",
+ "native.screen.wantFiles": "f81f51e5a089caa6b244574c7f05ce2cf4aa7116d358fd244d5efc24883fccb2",
+ "native.screen.wantTerminal": "e945f80a7b4c46b9179915727cd3eeea52ccdd7ba8fd62e7e5dead0b8bb654bc",
+ "native.screen.paused": "d2f932c826a179cc5e978bf7429024fcb39fc10d6e90a26103475eb06eee205c",
+ "native.screen.terminalOff": "99a399ce976fbbe372165bdcf8470ca434ffe3d7c86544e5f10ce43f336d383e",
+ "native.screen.allowMac": "9b72fa98bd6e536ec1d66157044810e282c5b898cbf2f676f61f2cff0b139b45",
+ "native.screen.askTitle": "6830d23dba2178d3ba7d22bf8e45d3ff45a2f82c1618e1406770c08ff96b23ca",
+ "native.home.placeNotSuggested": "c6b5ac49635251e865e6aa57d3ad4232eeaf9383286ece1fe55543960c4df89f",
+ "native.home.bringUnavailable": "bbab66afe2aedccbb47f32f9af1d3cc8a70d505e088ec37ddd1f41e9fe72b68f",
+ "chat.notice.memoryReclaimedBrowser": "e3b5f1e517b404e5b6e35306170b64b05147a49e2acb8dbea96b99d434af2c74",
+ "chat.notice.memoryReclaimedTask": "dba7fcaec67b6efec3b4a221c8e1b2db7d3036d17c3aced17417ff186e774354",
+ "chat.notice.memoryReclaimedBrowserDetail": "29c781b36ba9bc63c701f8ac7c9488b0b116430c3e400ceaa51694c41e3d9050",
+ "chat.notice.memoryReclaimedTaskDetail": "8692d2880c5425cd005f7002561ae2d7850e41209d0dcf40b1e098a9ea1725f8",
+ "server.personFirst.stoppedSeconds": "9ccef9cb0269e710e1fb314a11834a4033b48d66cb54ca6b38e8c7a2fdcb9a8a",
+ "server.personFirst.stoppedMinutes": "b36afce574a81b8dfc9a4141f280973c6ca5fa7ef4ae008045494b31622ce387",
+ "server.routines.held.planCancelled": "8a6b13354ba469ae192bc6f6e65a0e40689ade9798eafb23136f6dfdb8a2db48",
+ "server.routines.held.noEngine": "2db3b80079ddeb275b1b57b54fce86001d7f79f94a6181b224c61c37ffd64b37",
+ "server.routines.held.noConnections": "a97608eb372ec5e679457b450e92a7adde7b08b9bda5f53713107ac10ff24a64",
+ "mcp.request.change": "c0bf75bd78bf9572596720d596bd5a20a5b9145cde0fe50dec1e783cb184d69b",
+ "mcp.request.remove": "c3812fc4acb861d5182fc2b8155f327f736fbe5e5eb86a7bd7afcb6dc5497282",
+ "secretCard.greenference.description": "0095927f896090eaf4661cf0f05c9926b7f7be79df5ab7ec6b0931cd51d1cd90",
+ "chat.notice.elicitationUrlDeclined": "de471fbab55c2052b0038fd026f854d5c27f805f812c4649cbdaff125faeed0a",
+ "chat.notice.elicitationUrlDeclinedWithUrl": "9fb0d636b01404f72db71a699a1653eae7fbe51e290b0c6ae68968ff865d8675",
+ "chat.notice.elicitationUrlDeclinedGeneric": "81c0c4aa7ed5c90215444895f30d459b948bf9509d8d87599875d3e51ffcda02",
+ "chat.notice.elicitationUrlDeclinedGenericWithUrl": "83a9b068809518b94ecf828cde86f03320892229aeae38b91f8609ed08cc6e70",
+ "chat.notice.elicitationFormDeclinedOne": "876a8a3f25dede978b10a0772f8a7d267a9ed285a7d94c037a9a5f916c558998",
+ "chat.notice.elicitationFormDeclinedMany": "3629ff3e9da6242c2f4f46da26f4703b63450c5dceb7ef6881f9785ea307b7df",
+ "chat.notice.elicitationFormDeclinedOneMessage": "13391cc706fbbcb167d21a2dcbae9c8bbc81a9c73996950ccd33f5b84b3219dd",
+ "chat.notice.elicitationFormDeclinedManyMessage": "3c43a8b1bf5dadf8d9061e5e13affdc6c334f281cfb2f1b0477a20997ab3192b",
+ "chat.notice.elicitationFormDeclinedGenericOne": "220d72e9e4265352cb45aa63ab1fdefb72eee2c52b5e15d68a53ec0ebc25f1a5",
+ "chat.notice.elicitationFormDeclinedGenericMany": "419eabfba7e92e64073996f4500b758058f73fe89f8d741bc4fc13587a998d9d",
+ "chat.notice.elicitationFormDeclinedGenericOneMessage": "75adbcc3d508faa233a48b68b72bc41280bb83b64dd0de16dc544a4e417486d2",
+ "chat.notice.elicitationFormDeclinedGenericManyMessage": "fc76c3df281ba3fea5fb5dd69a39ea45baa5b5c18041549b950c7fbd16a46c6b",
+ "chat.notice.elicitationContinue": "4e467003695230be5b69a03757e60fb96a12e0095a68e6a7cace54f85d4b5349",
+ "chat.notice.elicitationContinueGeneric": "e0da2c8d0965685a07b86072e6cf1a3e31f18305644f0f0d3977257a3800a570",
+ "chat.notice.elicitationMessageGeneric": "7f454a2193c4c4a089f373515fcd88ececc6af181fa52f43ddbb9df3083bf8fe",
+ "chat.notice.appAccessRequested": "57b7929529a3066c724e3885b9efcbbe8b0c6d1e107c5e21cbfa995db5c02b34",
+ "chat.notice.codexModelUnavailable": "aaf623049313da595663f7ada030ad49336c8ede7742a3fd24f515c2e83c5260",
+ "chat.notice.codexElicitationDeclined": "112c8efa6463fef099419d490ea429fef7993e7af51140e1e81c83d5861171aa",
+ "chat.notice.codexElicitationDeclinedGeneric": "c9b298df306054726485c0b166b6c60f979e737f8376721ee95ae1be8466f2a1",
+ "chat.notice.usageLimitResets": "b1d67b3a69dfb66da3273acbf7c36c82e580f7fba698ca8fd4d3b7a3bcea91c9",
+ "approval.voice.titled": "f164eb41658ba6161fe8ba02f4f8417a049048af69978afe6de10fa9f549e93c",
+ "approval.action.deleteBot": "f53f5a6eb1dc2674d9a7e6204db28d7510dbeae3352cb53045a068a706292367",
+ "approval.action.applySetup": "8c921ed7d8bd420ab0ab48b32bbc28d409610c1b92ea03f3eba1a6f8ad34d7f0",
+ "routines.editor.roomMissing": "45c94bdf6a89c952be04bc8aa9c6c6b92efb97005b4ed6addc562831732a9666",
+ "browser.panel.maximizeHint": "354364a9cbdc812f5c247ad1fb7d374dbc141b954b8efd164572a66b15628434",
+ "browser.panel.fullscreenHint": "7a0be23549bd9dbeef1aa36c84326ed20e7b31655a9ff05a6ec40cba3aea7f15",
+ "time.invalid": "eb8ad9af2aa89338defa0fb3d9a2532314153f334a141f17fd8cf486f3eb00ae",
+ "shortcuts.send-follow-up": "764c65f9a3e0de2c38b6b47d3bec6de337e674f8aac0b79d6d078c7dffa2eaf5",
+ "serverError.bot.viewOnly": "60bf030177885fdb4ad6c7bcf2052a6c7acf6130134c0327c5f65560e83dd605"
},
"zh": {
"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",
diff --git a/src/state/store.tsx b/src/state/store.tsx
index dcbca02eb0..9578e80386 100644
--- a/src/state/store.tsx
+++ b/src/state/store.tsx
@@ -78,7 +78,7 @@ import { reconcileSnapshotQueues, rememberConsumedQueueId, replaceBotQueues } fr
export type { MausColor } from "@/lib/mascot";
export type { RoutineRunCardData } from "../../shared/routine-run";
-export interface OptionCardData extends Pick<WireOptionCard, "fixedOptions" | "webhookRequest" | "appTriggerRequest" | "yourComputer" | "computerAsk" | "waitRequest" | "stopped" | "accessRequest" | "mcpRequest"> {
+export interface OptionCardData extends Pick<WireOptionCard, "fixedOptions" | "webhookRequest" | "appTriggerRequest" | "yourComputer" | "computerAsk" | "waitRequest" | "stopped" | "accessRequest" | "mcpRequest" | "summaryCode" | "summaryParams"> {
title: string;
subtitle: string;
options: string[];