Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix: address review on reset_cloud_computer
AdityaUmale6b754d7ce751
diff --git a/server/host/cloud-computer-reset-asks.test.ts b/server/host/cloud-computer-reset-asks.test.tsindex ea6278ace0..330cd1af27 100644--- a/server/host/cloud-computer-reset-asks.test.ts+++ b/server/host/cloud-computer-reset-asks.test.ts@@ -8,7 +8,7 @@ type Line = { id: string; role: string; kind: string; card?: Record<string, any>const bot = (id: string, name: string) => ({ id, name, color: "blue" }) as unknown as BotRecord;const ada = bot("bot-a", "Ada"), chief = bot("chief", "Chief"), bea = bot("bot-b", "Bea");-function setup(options: { refusal?: (from: BotRecord, target: BotRecord) => string | null; reset?: () => Promise<any> } = {}) {+function setup(options: { refusal?: (from: BotRecord, target: BotRecord) => string | null; reset?: () => Promise<any>; computer?: () => Promise<string | null> } = {}) {const lines = new Map<string, Line[]>();const store = {bot: (id: string) => [ada, chief, bea].find((candidate) => candidate.id === id),@@ -27,9 +27,11 @@ function setup(options: { refusal?: (from: BotRecord, target: BotRecord) => stri};const timers: Array<() => void> = [];const reset = vi.fn(options.reset ?? (async () => ({ ok: true })));+ const computer = vi.fn(options.computer ?? (async () => "bx_1"));const asks = createCloudComputerResetAsks({store: store as never,refusal: options.refusal ?? (() => null),+ computer,reset,setTimer: (run, ms) => { expect(ms).toBe(RESET_RETRY_MS); timers.push(run); },openCards: () => [...lines.entries()].flatMap(([threadId, list]) => list.filter((line) => line.card?.tool === RESET_CLOUD_COMPUTER_TOOL).map((line) => ({ threadId, messageId: line.id }))),@@ -37,14 +39,14 @@ function setup(options: { refusal?: (from: BotRecord, target: BotRecord) => striconst call = async (sender: BotRecord, body: Record<string, unknown>) => {const res = { status: 0, body: {} as Record<string, any> };await asks.internal({- method: "POST", path: "/api/internal/cloud-computer/reset", res: {} as never, sender, threadId: "t1", readBody: async () => body,+ method: "POST", path: "/api/internal/cloud-computer/reset", res: {} as never, sender, threadId: "t1", readBody: async () => ({ why: "Stuck starting.", ...body }),json: ((_res: unknown, status: number, sent: Record<string, unknown>) => { res.status = status; res.body = sent; }) as never,});return res;};const card = () => lines.get("t1")?.at(-1)?.card;const flush = () => new Promise((resolve) => setTimeout(resolve, 0));- return { asks, call, card, reset, timers, flush, lines };+ return { asks, call, card, reset, computer, timers, flush, lines };}describe("a bot asking for its cloud computer to be reset", () => {@@ -73,7 +75,7 @@ describe("a bot asking for its cloud computer to be reset", () => {await call(ada, {});expect(asks.answer(card()!.requestId, "allow")).toBe(true);await flush();- expect(reset).toHaveBeenCalledWith("bot-a");+ expect(reset).toHaveBeenCalledWith("bot-a", "bx_1");expect(card()).toMatchObject({ answered: "allow" });expect(card()?.subtitle).toContain("Reset: a fresh cloud desktop starts with Ada's next message.");});@@ -129,10 +131,44 @@ describe("a bot asking for its cloud computer to be reset", () => {expect(asked.body.text).toContain("reset Ada's cloud computer");asks.answer(card()!.requestId, "allow");await flush();- expect(reset).toHaveBeenCalledWith("bot-a");+ expect(reset).toHaveBeenCalledWith("bot-a", "bx_1");expect((await call(chief, { targetBotId: "nobody" })).status).toBe(404);});+ it("needs a reason, and shows no card without one", async () => {+ const { call, card, computer } = setup();+ for (const why of [undefined, "", " "]) {+ expect(await call(ada, { why })).toMatchObject({ status: 400 });+ }+ expect(card()).toBeUndefined();+ expect(computer).not.toHaveBeenCalled();+ });++ it("binds Allow to the computer there was when asked, or to none", async () => {+ const { asks, call, card, reset, flush } = setup({ computer: async () => null });+ await call(ada, {});+ asks.answer(card()!.requestId, "allow");+ await flush();+ expect(reset).toHaveBeenCalledWith("bot-a", null);+ });++ it("shows no card when it cannot tell which computer runs now", async () => {+ const { call, card } = setup({ computer: async () => { throw new Error("Could not reach boat.dev"); } });+ expect(await call(ada, {})).toMatchObject({ status: 503 });+ expect(card()).toBeUndefined();+ });++ it("does not retry when a different computer runs at Allow", async () => {+ const { asks, call, card, timers, flush } = setup({+ reset: async () => { throw Object.assign(new Error("a different cloud desktop runs now than when this was asked, so nothing was reset"), { status: 409 }); },+ });+ await call(ada, {});+ asks.answer(card()!.requestId, "allow");+ await flush();+ expect(timers).toHaveLength(0);+ expect(card()?.subtitle).toContain("nothing was reset");+ });+it("keeps one open card per computer", async () => {const { call } = setup();await call(ada, {});@@ -148,7 +184,7 @@ describe("a bot asking for its cloud computer to be reset", () => {await first.call(ada, {});const fresh = createCloudComputerResetAsks({store: { messagesFor: (id: string) => first.lines.get(id) ?? [], patchMessage: (threadId: string, id: string, patch: Partial<Line>) => Object.assign(first.lines.get(threadId)!.find((line) => line.id === id)!, patch) } as never,- refusal: () => null, reset: vi.fn(),+ refusal: () => null, computer: vi.fn(), reset: vi.fn(),openCards: () => [{ threadId: "t1", messageId: "m1" }],});expect(fresh.dismissStale()).toBe(1);diff --git a/server/host/cloud-computer-reset-asks.ts b/server/host/cloud-computer-reset-asks.tsindex 41c97dab0d..a232890802 100644--- a/server/host/cloud-computer-reset-asks.ts+++ b/server/host/cloud-computer-reset-asks.ts@@ -17,15 +17,17 @@ export const RESET_RETRIES = 36;const WHY_LIMIT = 300;type Reset = { ok: boolean; pending?: true; missing?: true };-type Ask = { threadId: string; messageId: string; targetId: string; targetName: string; subtitle: string };+type Ask = { threadId: string; messageId: string; targetId: string; targetName: string; subtitle: string; boxId: string | null };type Reply = { status: number; body: Record<string, unknown> };export interface CloudComputerResetAsksDeps {store: Pick<Store, "appendMessage" | "patchMessage" | "messagesFor" | "bot" | "groupByThread">;/** Why `from` may not ask to reset `target`'s cloud computer, in words for the bot; null when it may. */refusal(from: BotRecord, target: BotRecord): string | null;- /** Deletes the bot's own cloud computer; throws with status 409 while it is in use. */- reset(botId: string): Promise<Reset>;+ /** The id of the bot's own cloud computer now, null when it has none; throws when that cannot be read. */+ computer(botId: string): Promise<string | null>;+ /** Deletes the bot's own cloud computer, only while it is still `boxId`; throws with status 409 while it is in use. */+ reset(botId: string, boxId: string | null): Promise<Reset>;/** Cards a previous run left open; defaults to the message database. */openCards?(): Array<{ threadId: string; messageId: string }>;setTimer?(run: () => void, ms: number): void;@@ -51,7 +53,7 @@ export function createCloudComputerResetAsks(deps: CloudComputerResetAsksDeps) {async function run(ask: Ask, tries: number): Promise<void> {try {- const result = await deps.reset(ask.targetId);+ const result = await deps.reset(ask.targetId, ask.boxId);const key = result.missing ? "server.cloudReset.missing" : result.pending ? "server.cloudReset.pending" : "server.cloudReset.done";show(ask, words(ask.threadId, key, { name: ask.targetName }));} catch (error) {@@ -65,16 +67,23 @@ export function createCloudComputerResetAsks(deps: CloudComputerResetAsksDeps) {}/** A bot's call: shows the card. `targetBotId` names another bot, for a Chief. */- function propose(from: BotRecord, threadId: string, body: Record<string, unknown>): Reply {+ async function propose(from: BotRecord, threadId: string, body: Record<string, unknown>): Promise<Reply> {const targetId = typeof body.targetBotId === "string" && body.targetBotId.trim() ? body.targetBotId.trim() : from.id;const target = store.bot(targetId);if (!target) return { status: 404, body: { error: "No bot has that id. Use list_bots for teammate ids." } };const refused = deps.refusal(from, target);if (refused) return { status: 403, body: { error: refused } };- for (const ask of asks.values()) {- if (ask.targetId === target.id) return { status: 409, body: { error: `A card asking to reset ${target.name}'s cloud computer is already waiting for the person. End this turn.` } };- }const why = typeof body.why === "string" ? body.why.trim().slice(0, WHY_LIMIT) : "";+ if (!why) return { status: 400, body: { error: "why is required: one sentence on what is wrong with the computer." } };+ const already: Reply = { status: 409, body: { error: `A card asking to reset ${target.name}'s cloud computer is already waiting for the person. End this turn.` } };+ const waiting = () => [...asks.values()].some((ask) => ask.targetId === target.id);+ if (waiting()) return already;+ // Allow resets the computer there is now, never a newer one made after the card was shown.+ let boxId: string | null;+ try { boxId = await deps.computer(target.id); } catch (error) {+ return { status: 503, body: { error: `Could not check ${target.name}'s cloud computer: ${error instanceof Error ? error.message : String(error)}` } };+ }+ if (waiting()) return already;const subtitle = [why, words(threadId, "server.cloudReset.what", { name: target.name })].filter(Boolean).join("\n");const room = store.groupByThread(threadId);const requestId = newId();@@ -84,7 +93,7 @@ export function createCloudComputerResetAsks(deps: CloudComputerResetAsksDeps) {...(room ? { from: { botId: from.id, name: from.name, color: from.color } } : {}),card: { title: words(threadId, "server.cloudReset.title", { name: target.name }), subtitle, options: ["Allow", "Deny"], requestId, requestType: "permission", tool: RESET_CLOUD_COMPUTER_TOOL },});- asks.set(requestId, { threadId, messageId: message.id, targetId: target.id, targetName: target.name, subtitle });+ asks.set(requestId, { threadId, messageId: message.id, targetId: target.id, targetName: target.name, subtitle, boxId });const whose = target.id === from.id ? "your" : `${target.name}'s`;return { status: 200, body: { text: `A card asking the person to reset ${whose} cloud computer is now in this conversation. End this turn now and say in one line that it waits for them. On Allow the computer is deleted once ${target.name} is not working, and ${target.name}'s next turn makes a fresh one. You are not resumed: the card shows how it went.` } };}@@ -117,7 +126,7 @@ export function createCloudComputerResetAsks(deps: CloudComputerResetAsksDeps) {if (args.path !== PATH) return PASS;if (args.method !== "POST") return void args.json(args.res, 405, { error: "POST only" });const body = await args.readBody();- const reply = propose(args.sender, args.threadId, body && typeof body === "object" && !Array.isArray(body) ? body as Record<string, unknown> : {});+ const reply = await propose(args.sender, args.threadId, body && typeof body === "object" && !Array.isArray(body) ? body as Record<string, unknown> : {});return void args.json(args.res, reply.status, reply.body);},};diff --git a/server/host/cloud-computer-reset.test.ts b/server/host/cloud-computer-reset.test.tsindex 4fb45936bf..09a20a5897 100644--- a/server/host/cloud-computer-reset.test.ts+++ b/server/host/cloud-computer-reset.test.ts@@ -45,6 +45,25 @@ describe("resetting a bot's cloud computer", () => {expect(deleteManagedBoat).not.toHaveBeenCalled();});+ it("deletes nothing when a different computer runs than the one the person was asked about", async () => {+ listManagedBoats.mockResolvedValue({ configured: true, available: true, problem: null, instances: [instance("bx_new", "bot-a")] });+ for (const expected of ["bx_old", null]) {+ const refused = resetBotCloudComputer(cfg, "bot-a", owners, vi.fn(), expected);+ await expect(refused).rejects.toMatchObject({ status: 409 });+ await expect(refused).rejects.not.toThrow(/in use/i);+ }+ expect(deleteManagedBoat).not.toHaveBeenCalled();+ });++ it("deletes the computer the person was asked about, and treats it gone as reset", async () => {+ listManagedBoats.mockResolvedValue({ configured: true, available: true, problem: null, instances: [instance("bx_mine", "bot-a")] });+ const claim = vi.fn();+ await expect(resetBotCloudComputer(cfg, "bot-a", owners, claim, "bx_mine")).resolves.toEqual({ ok: true });+ expect(deleteManagedBoat).toHaveBeenCalledWith(cfg, owners, "bx_mine", "omb-bx_mine", claim);+ listManagedBoats.mockResolvedValue({ configured: true, available: true, problem: null, instances: [] });+ await expect(resetBotCloudComputer(cfg, "bot-a", owners, vi.fn(), "bx_mine")).resolves.toEqual({ ok: true, missing: true });+ });+it("passes on the refusal while the bot is working", async () => {listManagedBoats.mockResolvedValue({ configured: true, available: true, problem: null, instances: [instance("bx_mine", "bot-a")] });deleteManagedBoat.mockRejectedValue(Object.assign(new Error("this cloud computer is in use — stop its bot's work first"), { status: 409 }));diff --git a/server/host/cloud-computer-reset.ts b/server/host/cloud-computer-reset.tsindex c1cfcf707e..7c3c84c01d 100644--- a/server/host/cloud-computer-reset.ts+++ b/server/host/cloud-computer-reset.ts@@ -12,10 +12,20 @@ export async function resetBotCloudComputer(botId: string,owners: boat.ManagedBoatOwner[],claim: boat.ManagedBoatMutationClaim,+ expected?: string | null,): Promise<{ ok: boolean; pending?: true; missing?: true }> {- const inventory = await boat.listManagedBoats(cfg, owners);- if (!inventory.available) throw boat.inventoryFailure(inventory);- const own = inventory.instances.find((instance) => instance.ownerBotId === botId);+ const own = await ownCloudComputer(cfg, botId, owners);+ // `expected` is the computer the person was asked about: one made since then is not theirs to lose.+ if (expected !== undefined && own && own.boxId !== expected) {+ throw Object.assign(new Error("a different cloud desktop runs now than when this was asked, so nothing was reset"), { status: 409 });+ }if (!own) return { ok: true, missing: true };return boat.deleteManagedBoat(cfg, owners, own.boxId, own.name, claim);}++/** The bot's own cloud computer now, if it has one; throws when the list cannot be read. */+export async function ownCloudComputer(cfg: AppConfig, botId: string, owners: boat.ManagedBoatOwner[]) {+ const inventory = await boat.listManagedBoats(cfg, owners);+ if (!inventory.available) throw boat.inventoryFailure(inventory);+ return inventory.instances.find((instance) => instance.ownerBotId === botId);+}diff --git a/server/index.ts b/server/index.tsindex 0aa748daef..edc31970e2 100644--- a/server/index.ts+++ b/server/index.ts@@ -424,7 +424,7 @@ import { createLocalVmUpdater, LOCAL_VM_UPDATING_PROBLEM, recoverLocalVms, VPS_Oimport { keepInstalledAppsBeforeRemove } from "./local-vm-profiles.ts";import { localVmStopReason, recordLocalVmIdleStop } from "./local-vm-stop-reason.ts";import { ComputerIdleTimer } from "./computer-idle.ts";-import { CLOUD_COMPUTER_DID_NOT_START, CLOUD_COMPUTER_START_BUDGET_MS, CLOUD_COMPUTER_STARTING, createCloudComputerPower } from "./host/cloud-computer-power.ts"; import { resetBotCloudComputer } from "./host/cloud-computer-reset.ts"; import { createCloudComputerResetAsks } from "./host/cloud-computer-reset-asks.ts";+import { CLOUD_COMPUTER_DID_NOT_START, CLOUD_COMPUTER_START_BUDGET_MS, CLOUD_COMPUTER_STARTING, createCloudComputerPower } from "./host/cloud-computer-power.ts"; import { ownCloudComputer, resetBotCloudComputer } from "./host/cloud-computer-reset.ts"; import { createCloudComputerResetAsks } from "./host/cloud-computer-reset-asks.ts";import { LocalVmLease, LocalVmLeasePool } from "./local-vm-lease.ts";import { LocalVmSeatPool, type LocalVmSeatHolder } from "./local-vm-seat-pool.ts";import { createLoopGuard, loopGuardSettings } from "./host/loop-guard.ts"; import { createPersonFirst } from "./host/person-first.ts"; import { createRunOwners, runActorOf } from "./host/run-owner.ts";@@ -4887,7 +4887,7 @@ async function respondToCard(input: {if (refused) return { ok: false, status: 409, error: refused };let result: CardRespondResult = { ok: true };await answeringCardAs(auth, threadId, requestId, async () => {- const outcome = await answerRequest(+ if (await harnessCardOutcome(threadId, requestId, behavior, message)) return; const outcome = await answerRequest(threadId, botForThread(bot.id, threadId)?.modelSelection.instanceId ?? "", requestId, behavior, message,{ id: bot.id, name: bot.name },);@@ -9596,7 +9596,7 @@ const ROOM_POST_MAX_CHARS = 4_000;const approvalBus: YourComputerBus = { store, notify };// A bot's ask to reset a stuck cloud computer: its own, or as a Chief one of a bot it manages; Settings' reset on Allow.-const cloudComputerResets = createCloudComputerResetAsks({ language: threadLanguage, store, refusal: (from, target) => target.id !== from.id && !(chiefLevel(from) && canManage(from, target)) ? "You can ask to reset only your own cloud computer; a Chief of Staff can also ask for a bot in a department it manages." : !boat.boatConfigured(cfg) || target.computer !== "cloud" || target.cloudBackend === "vps" || inheritedTeamComputer(target) ? `${target.name} has no cloud computer of its own to reset here.` : null, reset: async (botId) => { if (boatLifecycleBusyBots.has(botId)) throw Object.assign(new Error("this bot's cloud computer is being changed — wait for it to finish"), { status: 409 }); return resetBotCloudComputer(cfg, botId, managedBoatOwners(), claimManagedBoatMutation); } });+const cloudComputerResets = createCloudComputerResetAsks({ language: threadLanguage, store, refusal: (from, target) => target.id !== from.id && !(chiefLevel(from) && canManage(from, target)) ? "You can ask to reset only your own cloud computer; a Chief of Staff can also ask for a bot in a department it manages." : !boat.boatConfigured(cfg) || target.computer !== "cloud" || target.cloudBackend === "vps" || inheritedTeamComputer(target) ? `${target.name} has no cloud computer of its own to reset here.` : null, computer: async (botId) => (await ownCloudComputer(cfg, botId, managedBoatOwners()))?.boxId ?? null, reset: async (botId, boxId) => { if (computerProviderConfigTransitions.has("box")) throw Object.assign(new Error(providerTransitionMessage("box")), { status: 409 }); if (boatLifecycleBusyBots.has(botId)) throw Object.assign(new Error("this bot's cloud computer is being changed — wait for it to finish"), { status: 409 }); return resetBotCloudComputer(cfg, botId, managedBoatOwners(), claimManagedBoatMutation, boxId); } });const { quotaSwitch, harnessCardOutcome } = createQuotaSwitchHost({ store, coordinator, registry, turnStops, hostedModels, providerConfigs, policyModelRefusal, checkedTaskModelSwitch, threadBusy, directRequestOwners, startOrQueueDirectMessage, takeover: limitTakeover, ownCards: (requestId, behavior) => (computerAsks?.asks.answer(requestId, behavior) ?? false) || cloudComputerResets.answer(requestId, behavior) });// Consent cards live only in memory: settle every card still open on disk, or it locks the composer forever.diff --git a/src/components/ResetCloudComputerButton.dom.test.ts b/src/components/ResetCloudComputerButton.dom.test.tsnew file mode 100644index 0000000000..34c4c12afe--- /dev/null+++ b/src/components/ResetCloudComputerButton.dom.test.ts@@ -0,0 +1,33 @@+// @vitest-environment happy-dom+import { act, createElement } from "react";+import { createRoot } from "react-dom/client";+import { afterEach, expect, it, vi } from "vitest";++const api = vi.fn();+vi.mock("@/state/store", () => ({ api: (...args: unknown[]) => api(...args) }));++const { setLocale } = await import("@/lib/i18n");+const { ResetCloudComputerButton } = await import("./ResetCloudComputerButton");+type View = import("./ResetCloudComputerButton").CloudResetView;++(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;+afterEach(() => { document.body.innerHTML = ""; vi.unstubAllGlobals(); });++const stuck: View = {+ computer: "cloud", cloudBackend: "box", canManage: true, busy: false, pending: false,+ phase: "busy-boat", boatState: "starting", refusal: undefined,+};++it("keeps saying the old cloud desktop is still being deleted after the panel goes back to checking", async () => {+ setLocale("en");+ vi.stubGlobal("confirm", () => true);+ api.mockResolvedValue({ ok: true, pending: true });+ const host = document.createElement("div"); document.body.append(host);+ const root = createRoot(host);+ const draw = (view: View) => createElement(ResetCloudComputerButton, { botId: "bot-a", botName: "Ada", view, onReset: () => root.render(draw({ ...view, phase: "checking", boatState: null })) });+ await act(async () => { root.render(draw(stuck)); });+ await act(async () => { host.querySelector("button")!.click(); });+ expect(host.querySelector("button")).toBeNull();+ expect(host.querySelector("[role=status]")?.textContent).toContain("Ada");+ await act(async () => { root.unmount(); });+});diff --git a/src/components/ResetCloudComputerButton.tsx b/src/components/ResetCloudComputerButton.tsxindex 1e0a02084e..68954f0c81 100644--- a/src/components/ResetCloudComputerButton.tsx+++ b/src/components/ResetCloudComputerButton.tsx@@ -37,7 +37,9 @@ export function ResetCloudComputerButton({ botId, botName, view, onReset }: {const [resetting, setResetting] = useState(false);const [problem, setProblem] = useState<string | null>(null);const [note, setNote] = useState<string | null>(null);- if (!cloudComputerResettable(view)) return null;+ // The note outlives the button: after a reset the panel goes back to checking, which hides the button.+ const offered = cloudComputerResettable(view);+ if (!offered && !note) return null;const reset = () => {if (resetting || !window.confirm(t("computer.reset.confirm", { name: botName }))) return;setResetting(true);@@ -54,7 +56,7 @@ export function ResetCloudComputerButton({ botId, botName, view, onReset }: {};return (<>- <button+ {offered && <buttontype="button"onClick={reset}disabled={resetting}@@ -63,7 +65,7 @@ export function ResetCloudComputerButton({ botId, botName, view, onReset }: {>{resetting ? <Loader2 size={12} className="animate-spin" /> : <RotateCcw size={12} />}{t("computer.reset.button")}- </button>+ </button>}{note && <p role="status" className="text-[12px] text-ink-secondary">{note}</p>}{problem && <p role="alert" className="text-[12px] text-danger">{problem}</p>}</>diff --git a/src/locales/de.json b/src/locales/de.jsonindex 94c126b8c6..167194b2da 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -455,6 +455,7 @@"approval.tool.enableSkill": "eine erlernte Fähigkeit aktivieren","approval.tool.updateSkill": "eine erlernte Fähigkeit aktualisieren","approval.tool.updateProfile": "sein Profil aktualisieren",+ "approval.tool.resetCloudComputer": "einen Cloud-Desktop zurücksetzen","approval.tool.deleteFile": "eine Datei löschen","approval.tool.think": "nachdenken","approval.tool.takeAction": "eine Aktion ausführen",@@ -2281,6 +2282,9 @@"computer.phase.showPendingBoat": "Auto hat einen vorhandenen Cloud-Desktop gefunden, der nicht bereit ist. Er wurde nicht geändert.","computer.cloud.new": "{name} bekommt seinen eigenen Cloud-Desktop, sobald eine Aufgabe zum ersten Mal einen braucht. Der erste Start dauert etwa eine Minute.","computer.cloud.asleep": "Der Cloud-Desktop von {name} schläft. Er wacht in ein paar Sekunden auf, wenn {name} ihn braucht.",+ "computer.reset.button": "Cloud-Desktop zurücksetzen",+ "computer.reset.confirm": "Cloud-Desktop von {name} zurücksetzen? Er wird mit seinen Dateien und Browser-Anmeldungen gelöscht, und mit der nächsten Nachricht von {name} startet ein neuer. Das lässt sich nicht rückgängig machen.",+ "computer.reset.pending": "Zurücksetzen gestartet. Der alte Cloud-Desktop wird noch gelöscht; sobald er weg ist, startet mit der nächsten Nachricht von {name} ein neuer.","computer.badge.autoBoat": "Cloud-Desktop · Auto · nur lesen","place.view.local.line": "Nutzt deinen Bildschirm, deine Maus und deine Tastatur.","place.view.vm.line": "Ein privater Linux-Desktop auf diesem Gerät, getrennt von deinem eigenen Bildschirm.",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex c316c26546..1fbab2118b 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -273,6 +273,14 @@"server.mcp.card.cleared": "Limpa estes dados salvos: {items}.","server.mcp.card.usedBy": "Usado por {names}.","server.mcp.card.usedByNone": "Nenhum outro bot usa este servidor.",+ "server.cloudReset.title": "Redefinir o desktop na nuvem de {name}?",+ "server.cloudReset.what": "Ele é excluído com os arquivos e logins do navegador, e um novo começa com a próxima mensagem de {name}. Não dá para desfazer.",+ "server.cloudReset.resetting": "Redefinindo o desktop na nuvem de {name}.",+ "server.cloudReset.waiting": "Esperando {name} terminar o trabalho antes de redefinir.",+ "server.cloudReset.done": "Redefinido: um novo desktop na nuvem começa com a próxima mensagem de {name}.",+ "server.cloudReset.pending": "Redefinição iniciada. O desktop na nuvem antigo ainda está sendo excluído; um novo começa com a próxima mensagem de {name} quando ele sumir.",+ "server.cloudReset.missing": "Nada para redefinir: {name} não tem desktop na nuvem agora. Um começa com a próxima mensagem.",+ "server.cloudReset.failed": "Não redefinido: {reason}","server.mcp.card.newClientSecret": "novo segredo do cliente OAuth","server.mcp.card.keyExpired": "A chave expirou antes da resposta.","server.mcp.card.gone": "{name} não existe mais.",diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.jsonindex 3bec613551..12455065c7 100644--- a/src/locales/source-hashes.json+++ b/src/locales/source-hashes.json@@ -3947,7 +3947,11 @@"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f","settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567","devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",+ "computer.reset.button": "196d09c7f7dc0290cc84c7a01347ae3f9a50067925490e7a0b9e262fa2add7f7",+ "computer.reset.confirm": "49ee8910d29a1da38e3b3dd2518685d77c45bd5fbb248f44566c2d7b721765f9",+ "computer.reset.pending": "cae5248026f571c7a73a8b7319a8ae7b276ebd6b2ed3615572086f0e9b2ca36d",+ "approval.tool.resetCloudComputer": "c977d1d3b7504d9176231a7d8a521f553f5347292f3ccaa13857d1b1d5214f7f"},"es": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -36482,7 +36486,15 @@"computer.reset.button": "196d09c7f7dc0290cc84c7a01347ae3f9a50067925490e7a0b9e262fa2add7f7","computer.reset.confirm": "49ee8910d29a1da38e3b3dd2518685d77c45bd5fbb248f44566c2d7b721765f9","computer.reset.pending": "cae5248026f571c7a73a8b7319a8ae7b276ebd6b2ed3615572086f0e9b2ca36d",- "approval.tool.resetCloudComputer": "c977d1d3b7504d9176231a7d8a521f553f5347292f3ccaa13857d1b1d5214f7f"+ "approval.tool.resetCloudComputer": "c977d1d3b7504d9176231a7d8a521f553f5347292f3ccaa13857d1b1d5214f7f",+ "server.cloudReset.title": "14ae704c302b4d1f0cf94b614c6a7b6c892357dd877aa182e2474934f92b8252",+ "server.cloudReset.what": "2f901af1e4d8be98a234e5392bf9384ed53d65d24a27015d87178c5e5be23b26",+ "server.cloudReset.resetting": "597df4ff607d90ba995ba3a6406f224813211de4805d085989273e04dd533538",+ "server.cloudReset.waiting": "9c9d4b3784d64dd5ae8106c9587561ad928a7fc1d2c46830a2b80db5a95d4611",+ "server.cloudReset.done": "27e4089cf08c6d6097f59d79515c7da826cf3e1cff34e03d76cb8f0cbfa161fd",+ "server.cloudReset.pending": "cae5248026f571c7a73a8b7319a8ae7b276ebd6b2ed3615572086f0e9b2ca36d",+ "server.cloudReset.missing": "b9e1c7f96e043bc6150f46302c0c3b8a9db3d67c44d9253f0b3a82f3a404f107",+ "server.cloudReset.failed": "b3ad7ca9b0db2a9a162e07fb9277b26352af0df7d087871000a9a5ea38992c81"},"zh": {"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",