Skip to content

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

On a small Cloud a person's own work goes first, and a typed stop never waits

milind-soni80a18d762bdd
diff --git a/docs/cloud-pro.md b/docs/cloud-pro.md
index b5e0c20c86..85c777d599 100644
--- a/docs/cloud-pro.md
+++ b/docs/cloud-pro.md
@@ -1107,7 +1107,13 @@ provider outage. So on a Cloud home (`server/engine-memory.ts`):
bot unless one is saved, and this gate holds the rest. A Starter Cloud runs one
thread per bot for what a person or a routine starts; the Admin says so with its
signed `POST /api/cloud/plan` `{"v":1,"tier":"starter"}` (`server/host/cloud-plan-tier.ts`), and a
- home it never told has no such limit. What a bot's own turn starts always goes through.
+ home it never told has no such limit. What a bot's own turn starts always goes through,
+ and a teammate's hand-off never takes that one thread from the person.
+- **Who goes first.** The gate only changes the order, never how much it lets in. A
+ person's own work goes first: their line, or a turn going on from what they answered.
+ Bot work that has waited 5 minutes takes its place by arrival, so it is never starved
+ (`server/host/turn-order.ts`). A stop never waits: a line made only of stop words stops
+ running work at once in any of the app's languages, and an `@everyone` stop starts no engine on a bot with nothing running.
- **OpenCode threads share a process.** Threads whose OpenCode would start
the same way (same login, approval level and settings) run as sessions of one
`opencode acp` process, up to six at a time and twelve over its life
diff --git a/docs/verification/chat-turns.md b/docs/verification/chat-turns.md
index eca6e34401..161b4216c7 100644
--- a/docs/verification/chat-turns.md
+++ b/docs/verification/chat-turns.md
@@ -288,4 +288,4 @@ engines. What stays one at a time, and what the person sees:
- One bot's browser: a call from another thread waits, the row says who has it, and a holder quiet for a minute gives it
to the waiter. The holder's next call is refused once, so nothing lands on a page it did not open.
- One computer: a turn takes it at its first screen call, not when it starts, and keeps it until it ends.
-- Memory on a Linux Cloud: a turn that would run the machine out says "Waiting for memory" and starts by itself.
+- Memory on a Linux Cloud: a turn that would run the machine out says "Waiting for memory" and starts by itself. `OMB_TEST_MEMORY_GATE=1` runs the gate in a fixture on any OS, on the memory `<data dir>/host-memory.json` says; `server/memory-order.e2e.test.ts` shows whose turn goes next.
diff --git a/scripts/control-omb.ts b/scripts/control-omb.ts
index d8c2b7488e..ce39fd5865 100644
--- a/scripts/control-omb.ts
+++ b/scripts/control-omb.ts
@@ -215,6 +215,8 @@ export function verificationServerEnvironment(parentEnv: NodeJS.ProcessEnv, data
if (parentEnv.OMB_TEST_APPROVAL_CLOCK === "1") childEnv.OMB_TEST_APPROVAL_CLOCK = "1";
// The stall watchdog fires on a marker file, not after 20 minutes of silence.
if (parentEnv.OMB_TEST_STALL_CLOCK === "1") childEnv.OMB_TEST_STALL_CLOCK = "1";
+ // The memory gate runs here too, on the memory a fixture file says this machine has.
+ if (parentEnv.OMB_TEST_MEMORY_GATE === "1") childEnv.OMB_TEST_MEMORY_GATE = "1";
// The first-reply rescue's delay in ms, so a check need not sit through 20 s of silence.
if (/^\d{1,6}$/.test(parentEnv.OMB_FIRST_REPLY_NOTICE_MS ?? "")) childEnv.OMB_FIRST_REPLY_NOTICE_MS = parentEnv.OMB_FIRST_REPLY_NOTICE_MS;
// How long a tool call may hold the person's message unread, in ms, so a check need not sit through a minute.
@@ -247,6 +249,7 @@ export function verificationServerArgs(childEnv: NodeJS.ProcessEnv): string[] {
...(childEnv.OMB_TEST_DESKTOP_OWNER_TOKEN || childEnv.OMB_TEST_DESKTOP_CUA_CONNECTION ? hook("desktop-parent.mjs") : []),
...(childEnv.OMB_TEST_APPROVAL_CLOCK === "1" ? hook("approval-clock-hooks.mjs") : []),
...(childEnv.OMB_TEST_STALL_CLOCK === "1" ? hook("stall-clock-hooks.mjs") : []),
+ ...(childEnv.OMB_TEST_MEMORY_GATE === "1" ? hook("memory-gate-hooks.mjs") : []),
join(ROOT, "server", "index.ts"),
];
}
diff --git a/server/engine-memory.test.ts b/server/engine-memory.test.ts
index 194eae8861..c463f5bbe0 100644
--- a/server/engine-memory.test.ts
+++ b/server/engine-memory.test.ts
@@ -3,7 +3,7 @@ import { EventEmitter } from "node:events";
import { describe, expect, it } from "vitest";
import { TurnNotStartedError, type ProviderInstance, type RuntimeEvent, type RuntimeEventListener, type SendTurnInput } from "./contracts.ts";
import {
- BROWSER_BYTES, EngineMemory, memoryStallText, memoryStillWaitingText, memoryStopped, memoryStopText, memoryWaitText, PressureLedger, processGroupBytes, readHostMemory,
+ BOT_TURN_GIVES_WAY_MS, BROWSER_BYTES, EngineMemory, memoryStallText, memoryStillWaitingText, memoryStopped, memoryStopText, memoryWaitText, PressureLedger, processGroupBytes, readHostMemory,
withEngineMemory, type HostMemory,
} from "./engine-memory.ts";
import { OOM_SCORE, protectSupervisor, spawnBotWork, spawnWithOomScore } from "./oom-score.ts";
@@ -213,6 +213,79 @@ describe("admitting engines", () => {
});
});
+describe("who goes first when memory holds several", () => {
+ const waiting = (h: ReturnType<typeof host>, threadId: string, order: string[]) =>
+ h.memory.admit(threadId, new AbortController().signal, () => {}).then((admitted) => { if (admitted) order.push(threadId); h.memory.turnStarted(threadId); h.spawn(threadId); });
+ /** One engine runs and no second fits. */
+ const full = async (personal: readonly string[]) => {
+ const h = host({ available: 1.4 * GB });
+ h.memory.useTurnOrder((threadId) => personal.includes(threadId));
+ await h.memory.admit("running", new AbortController().signal, () => {});
+ h.memory.turnStarted("running");
+ h.spawn("running");
+ h.advance(100_000);
+ return h;
+ };
+ const finish = async (h: ReturnType<typeof host>, threadId: string) => {
+ h.memory.turnEnded(threadId);
+ for (const child of [...h.children.values()]) child.exit();
+ await settle();
+ };
+
+ it("starts a person's line ahead of bot work that came first, and the bot work after it", async () => {
+ const h = await full(["person"]);
+ const order: string[] = [];
+ void waiting(h, "handoff-1", order);
+ void waiting(h, "handoff-2", order);
+ await settle();
+ void waiting(h, "person", order);
+ await settle();
+ expect(order).toEqual([]);
+ await finish(h, "running");
+ expect(order[0]).toBe("person");
+ await finish(h, "person");
+ expect(order).toEqual(["person", "handoff-1"]);
+ await finish(h, "handoff-1");
+ expect(order).toEqual(["person", "handoff-1", "handoff-2"]);
+ });
+
+ it("never lets more start than fit: an order only, each still waits for its room", async () => {
+ const h = await full(["person"]);
+ const order: string[] = [];
+ void waiting(h, "handoff", order);
+ void waiting(h, "person", order);
+ await settle();
+ expect(order).toEqual([]);
+ expect(h.memory.busy()).toBe(1);
+ });
+
+ it("lets people's own turns go in the order they came", async () => {
+ const h = await full(["first", "second"]);
+ const order: string[] = [];
+ void waiting(h, "first", order);
+ await settle();
+ void waiting(h, "second", order);
+ await settle();
+ await finish(h, "running");
+ expect(order).toEqual(["first"]);
+ await finish(h, "first");
+ expect(order).toEqual(["first", "second"]);
+ });
+
+ it("does not starve bot work: past its wait it goes ahead of a person's newer line", async () => {
+ const h = await full(["person"]);
+ const order: string[] = [];
+ void waiting(h, "handoff", order);
+ await settle();
+ h.advance(BOT_TURN_GIVES_WAY_MS - 1);
+ void waiting(h, "person", order);
+ await settle();
+ h.advance(1);
+ await finish(h, "running");
+ expect(order[0]).toBe("handoff");
+ });
+});
+
describe("running short", () => {
it("stops the newest of the busy engines before the home runs out, and the turn says why", async () => {
const h = host();
diff --git a/server/engine-memory.ts b/server/engine-memory.ts
index ff49fcbde9..238c821be4 100644
--- a/server/engine-memory.ts
+++ b/server/engine-memory.ts
@@ -20,6 +20,8 @@ export const BROWSER_BYTES = 400 * MB;
/** A new engine's share is held back this long while it starts and grows; it is measured once it has run this long. */
const RESERVE_MS = 90_000, SETTLED_MS = 30_000;
const TICK_MS = 2_000, RELIEF_COOLDOWN_MS = 15_000, NOTICE_REPEAT_MS = 10 * 60_000, STOP_GRACE_MS = 5_000;
+/** How long a bot's turn lets a person's own work go first. Past this it takes its place by arrival, so it is never starved. */
+export const BOT_TURN_GIVES_WAY_MS = 5 * 60_000;
/** A minute counts as stalled on memory when every task that could run waited on memory this much of ten seconds (the
* kernel's `full avg10`, in percent). */
const STALL_PERCENT = 20;
@@ -129,7 +131,7 @@ export interface EngineBrowsers {
/** An engine process and the threads whose sessions it runs: one, or several when the driver shares processes. */
interface Engine { child: ChildProcess; threads: Set<string>; startedAt: number; stopping: boolean }
-interface Waiter { wake: () => void }
+interface Waiter { wake: () => void; threadId: string; since: number }
export interface EngineMemoryOptions {
enabled: boolean;
@@ -166,6 +168,7 @@ export class EngineMemory {
private lastRelief = -Infinity;
private timer: ReturnType<typeof setInterval> | null = null;
private browsers: EngineBrowsers | null = null;
+ private personsOwn: (threadId: string) => boolean = () => false;
constructor(options: EngineMemoryOptions) {
this.enabled = options.enabled;
@@ -179,6 +182,9 @@ export class EngineMemory {
useBrowsers(browsers: EngineBrowsers): void { this.browsers = browsers; }
+ /** Whether this thread's turn is a person's own work, which goes first when memory holds several. */
+ useTurnOrder(personsOwn: (threadId: string) => boolean): void { this.personsOwn = personsOwn; }
+
/** Runs `start` with the engine processes it spawns counted as this thread's (procs.ts spawnCli calls `track`). */
within<T>(threadId: string, start: () => T): T {
return this.enabled ? this.context.run(threadId, start) : start();
@@ -247,13 +253,13 @@ export class EngineMemory {
joining?: number): Promise<boolean> {
if (!this.enabled) return true;
if (joining !== undefined) this.engines.get(joining)?.threads.add(threadId);
- const waiter: Waiter = { wake: () => {} };
+ const waiter: Waiter = { wake: () => {}, threadId, since: this.now() };
this.queue.push(waiter);
let announced: number | null = null;
try {
for (;;) {
if (abort.aborted) return false;
- if (this.queue[0] === waiter) {
+ if (this.next() === waiter) {
const room = this.room(start, threadId);
if (room === "admit") {
this.reserved.set(threadId, { at: this.now(), start, browser: this.browserStarts(threadId) });
@@ -420,6 +426,11 @@ export class EngineMemory {
}
}
+ private next(): Waiter | undefined {
+ const at = this.now();
+ return this.queue.find((waiter) => this.personsOwn(waiter.threadId) || at - waiter.since >= BOT_TURN_GIVES_WAY_MS) ?? this.queue[0];
+ }
+
private wake(): void { for (const waiter of this.queue) waiter.wake(); }
private arm(): void {
diff --git a/server/host/person-stop.test.ts b/server/host/person-stop.test.ts
new file mode 100644
index 0000000000..8945ae20c1
--- /dev/null
+++ b/server/host/person-stop.test.ts
@@ -0,0 +1,75 @@
+import { describe, expect, it } from "vitest";
+
+import type { Message } from "../store.ts";
+import { createPersonStop, type PersonStopDeps, type TypedStop } from "./person-stop.ts";
+
+function world(over: { working?: string[]; asking?: boolean; threads?: string[] } = {}) {
+ const rows: Partial<Message>[] = [], stopped: string[] = [];
+ const stop = createPersonStop({
+ store: {
+ appendMessage: (_threadId: string, row: Partial<Message>) => { rows.push(row); return row as Message; },
+ bot: () => ({ name: "Ada" }), botByThread: () => undefined, groupByThread: () => undefined, taskByThread: () => undefined,
+ tasks: () => (over.threads ?? ["t", "other"]).map((threadId) => ({ threadId })),
+ } as unknown as PersonStopDeps["store"],
+ routines: () => null, handoffs: () => ({ stoppedByPerson: () => {} }) as never, interruptDirectThread: async (_botId, threadId) => { stopped.push(threadId); },
+ clearUnattended: () => {}, markStopped: () => {}, stopGoal: () => {},
+ working: (_botId, threadId) => (over.working ?? []).includes(threadId), asking: () => over.asking === true, language: () => undefined,
+ });
+ const send = (text: string, input: Partial<TypedStop> = {}) => stop.stopOnTypedCommand({ botId: "b", threadId: "t", text, trigger: { kind: "user" } as TypedStop["trigger"], personPresent: true, fromApp: false, busy: false, row: {}, ...input });
+ return { send, rows, stopped };
+}
+
+describe("a typed stop", () => {
+ it("stops the running turn at once, and is never a message to it", async () => {
+ const w = world({ working: ["t"] });
+ expect(await w.send("alles stoppen", { busy: true })).toMatchObject({ ok: true });
+ expect(w.stopped).toEqual(["t"]);
+ expect(w.rows).toEqual([expect.objectContaining({ role: "user", text: "alles stoppen" })]);
+ });
+
+ it("stops teammates working for this thread, unless the bot is waiting on the person's answer, when it may be that answer", async () => {
+ const working = world({ working: ["t"] });
+ expect(await working.send("stop")).toMatchObject({ ok: true });
+ expect(working.stopped).toEqual(["t"]);
+ const asked = world({ working: ["t"], asking: true });
+ expect(await asked.send("stop")).toBeNull();
+ expect(asked.stopped).toEqual([]);
+ });
+
+ it("goes to the bot as any line does when nothing is running: it may mean what the bot just set up", async () => {
+ for (const text of ["stop", "cancel that", "stopp"]) {
+ const w = world();
+ expect(await w.send(text), text).toBeNull();
+ expect(w.rows).toEqual([]);
+ }
+ });
+
+ it("said to @everyone starts no engine where nothing runs, and says so", async () => {
+ const w = world();
+ expect(await w.send("@everyone alles stoppen")).toMatchObject({ ok: true });
+ expect(w.stopped).toEqual([]);
+ expect(w.rows.map((row) => row.tool?.name ?? row.text)).toEqual(["@everyone alles stoppen", "Nothing was running here, so nothing needed stopping."]);
+ });
+
+ it("said to @everyone stops all of the bot's work, in whichever thread", async () => {
+ const w = world({ working: ["other"] });
+ expect(await w.send("@everyone stop")).toMatchObject({ ok: true });
+ expect(w.stopped).toEqual(["other"]);
+ expect(w.rows).toHaveLength(1);
+ });
+
+ it("leaves a real sentence, another's tag, an app's message, a routine and a spoken line alone", async () => {
+ const quiet = async (text: string, input: Partial<TypedStop> = {}, over = {}) => {
+ const w = world({ working: ["t"], ...over });
+ expect(await w.send(text, { busy: true, ...input }), text).toBeNull();
+ expect(w.stopped).toEqual([]);
+ };
+ await quiet("stop the server and restart it");
+ await quiet("stoppen wir das Projekt?");
+ await quiet("@Ben stop");
+ await quiet("stop", { fromApp: true });
+ await quiet("stop", { trigger: { kind: "routine" } as TypedStop["trigger"] });
+ const spoken = world({ working: ["t"] });
+ expect(await spoken.send("stop", { row: { via: "call" } })).toBeNull();
+ });
+});
diff --git a/server/host/person-stop.ts b/server/host/person-stop.ts
index d450ec51b9..1f2d703f24 100644
--- a/server/host/person-stop.ts
+++ b/server/host/person-stop.ts
@@ -2,13 +2,14 @@
// while the bot works (acceptDirectSend), "Restart turn" from the send menu, and the pills for teammates a stop leaves running.
import type { HandoffView } from "../coordinator.ts";
import type { Handoffs } from "../delta-context.ts";
-import { isStopCommand } from "../room-holds.ts";
+import { addressesEveryone, isStopCommand } from "../room-holds.ts";
import type { RoutineManager } from "../routines.ts";
+import { serverLine } from "../server-lines.ts";
import type { Message, Store } from "../store.ts";
import type { UsageTrigger } from "../usage-ledger.ts";
export interface PersonStopDeps {
- store: Pick<Store, "appendMessage" | "bot" | "botByThread" | "groupByThread" | "taskByThread">;
+ store: Pick<Store, "appendMessage" | "bot" | "botByThread" | "groupByThread" | "taskByThread" | "tasks">;
routines(): Pick<RoutineManager, "activeBotRunForBot" | "cancelRun"> | null;
handoffs(): Pick<Handoffs, "stoppedByPerson">;
interruptDirectThread(botId: string, threadId: string): Promise<void>;
@@ -17,6 +18,11 @@ export interface PersonStopDeps {
markStopped(threadId: string): void;
/** Ends a goal running in this one-on-one chat, so the interrupted turn is its last. */
stopGoal(threadId: string): void;
+ /** A turn runs, or teammates are at work, for this thread. */
+ working(botId: string, threadId: string): boolean;
+ /** The bot waits for the person's answer here: a parked question or an open card. */
+ asking(threadId: string): boolean;
+ language(threadId: string): string | undefined;
}
export interface TypedStop {
@@ -27,6 +33,8 @@ export interface TypedStop {
personPresent: boolean;
/** A message an app sent on the person's behalf is never a stop. */
fromApp: boolean;
+ /** This thread's turn is running now. */
+ busy: boolean;
/** The rest of the person's message row, as the busy branch would have recorded it. */
row: Pick<Message, "replyToId" | "sendId" | "sender" | "via" | "callId">;
}
@@ -47,13 +55,19 @@ export function createPersonStop(deps: PersonStopDeps) {
await deps.interruptDirectThread(botId, threadId);
}
- /** Only a message made of stop words, from a person, acts as Stop: it is recorded, and never reaches the turn it ends. */
+ /** Only a message made of stop words, from a person, acts as Stop: it is recorded, and never reaches the turn it ends. With no
+ * work to stop it goes to the bot as any line does ("stop" may mean the reminders it just set up), unless it is the Team map's
+ * @everyone: that goes to every bot, working or not, and starts no engine. */
async function stopOnTypedCommand(input: TypedStop): Promise<{ ok: true; threadId: string; message: Message } | null> {
- const { botId, threadId, text, trigger } = input;
- if (input.fromApp || (trigger.kind !== "user" && trigger.kind !== "owner") || !isStopCommand(text)) return null;
+ const { botId, threadId, text, trigger, busy } = input;
+ if (input.fromApp || (trigger.kind !== "user" && trigger.kind !== "owner") || !isStopCommand(text, store.bot(botId)?.name)) return null;
+ const everyone = addressesEveryone(text);
+ if (!busy && !everyone && (input.row.via || deps.asking(threadId) || !deps.working(botId, threadId))) return null;
if (input.personPresent) deps.clearUnattended(threadId);
const message = store.appendMessage(threadId, { role: "user", kind: "text", text, ...input.row });
- await stopThreadForPerson(botId, threadId);
+ const stopping = (everyone ? store.tasks(botId).map((task) => task.threadId) : [threadId]).filter((id) => (id === threadId && busy) || deps.working(botId, id));
+ for (const id of stopping) await stopThreadForPerson(botId, id);
+ if (!stopping.length) store.appendMessage(threadId, { role: "bot", kind: "activity", tool: { name: serverLine(deps.language(threadId), "server.stop.nothingRunning"), ok: true } });
return { ok: true as const, threadId, message };
}
diff --git a/server/host/turn-order.test.ts b/server/host/turn-order.test.ts
new file mode 100644
index 0000000000..965b1bb06c
--- /dev/null
+++ b/server/host/turn-order.test.ts
@@ -0,0 +1,33 @@
+import { describe, expect, it } from "vitest";
+
+import type { HandoffView } from "../coordinator.ts";
+import { createTurnOrder, type TurnOrderDeps } from "./turn-order.ts";
+
+const first = (over: Partial<TurnOrderDeps>) => createTurnOrder({
+ turn: () => undefined, unattended: () => false, running: () => [], roomLine: () => false, ...over,
+})("t");
+const node = (over: Partial<HandoffView>) => over as HandoffView;
+
+describe("a person's own work", () => {
+ it("is their line, in a chat or a room", () => {
+ expect(first({ turn: () => ({ kind: "person", personLine: true }) })).toBe(true);
+ expect(first({ roomLine: () => true })).toBe(true);
+ });
+
+ it("is a turn going on from what they answered on a card, not what a bot or a default answered", () => {
+ expect(first({ running: () => [node({ answer: "the password is saved" })] })).toBe(true);
+ expect(first({ running: () => [node({ answer: "Tuesday", answeredBy: { kind: "bot", botId: "b" } })] })).toBe(false);
+ expect(first({ running: () => [node({ answer: "Tuesday", answeredBy: { kind: "default" } })] })).toBe(false);
+ });
+
+ it("is a turn going on from a line of theirs, unless a bot drives it", () => {
+ expect(first({ turn: () => ({ kind: "continuation", personLine: true }) })).toBe(true);
+ expect(first({ turn: () => ({ kind: "continuation", personLine: true }), unattended: () => true })).toBe(false);
+ expect(first({ turn: () => ({ kind: "continuation" }) })).toBe(false);
+ });
+
+ it("is not a hand-off, a teammate's results coming back, a routine or a webhook", () => {
+ for (const kind of ["handoff", "routine", "webhook"] as const) expect(first({ turn: () => ({ kind, personLine: true }) }), kind).toBe(false);
+ expect(first({ running: () => [node({ status: "running" })] })).toBe(false);
+ });
+});
diff --git a/server/host/turn-order.ts b/server/host/turn-order.ts
new file mode 100644
index 0000000000..009caa7e01
--- /dev/null
+++ b/server/host/turn-order.ts
@@ -0,0 +1,23 @@
+import type { TurnKind } from "../agents-turn.ts";
+import type { HandoffView } from "../coordinator.ts";
+
+export interface TurnOrderDeps {
+ /** What started the direct turn this thread runs or is about to run, and whether it goes on from a person's own line. */
+ turn(threadId: string): { kind?: TurnKind; personLine?: true } | undefined;
+ /** Bot-driven work carries on as a continuation too. */
+ unattended(threadId: string): boolean;
+ /** Assignments this thread is running, one of them perhaps going on from an answer. */
+ running(threadId: string): HandoffView[];
+ /** A room's turn this thread runs because of a person's own line. */
+ roomLine(threadId: string): boolean;
+}
+
+/** A person's own work: their line, or a turn going on from what they just answered or chose. Answers from a bot or a default are bot work. */
+export function createTurnOrder(deps: TurnOrderDeps) {
+ return (threadId: string): boolean => {
+ const turn = deps.turn(threadId);
+ if (turn?.kind === "person") return true;
+ if (turn?.kind === "continuation" && turn.personLine && !deps.unattended(threadId)) return true;
+ return deps.roomLine(threadId) || deps.running(threadId).some((node) => node.answer !== undefined && !node.answeredBy);
+ };
+}
diff --git a/server/index.ts b/server/index.ts
index 8104d276fa..1f10410d6e 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -79,7 +79,7 @@ import { groupTurnCwd } from "./room-cwd.ts";
import { RoomTurnDeadline, RoomTurnStallRegistry, effectiveRoomTurnTimeoutMinutes, parseConversationTurnTimeout, roomTurnTimeoutMessage } from "./room-turn-timeout.ts";
import { roomTurnEnd, type RoomClaimEnd } from "./room-turn-end.ts";
import { applyHoldDirective, classifyHoldDirective, heldMemberLine, rememberHeldMessage, stopWordPlacement } from "./room-holds.ts";
-import { createPersonStop } from "./host/person-stop.ts"; import type { DirectSendInput, DirectSendReceipt } from "./direct-send.ts";
+import { createPersonStop } from "./host/person-stop.ts"; import { createTurnOrder } from "./host/turn-order.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";
import * as boat from "./boat.ts"; import { keyHint, keyStatus, nestedKeyStatus, withoutKeyHints } from "./key-hint.ts";
@@ -2149,7 +2149,7 @@ function settleDirectFollowup(generation: string | undefined, outcome: DirectTur
const directTurnBots = new Map<string, BotRecord>();
const turnPromptBytes = new Map<string, { stable: number; volatile: number }>();
let providerFleetReloading = false;
-const turnResources = new TurnResources();
+const turnResources = new TurnResources(); engineMemory.useTurnOrder(createTurnOrder({ turn: (threadId) => directRequestOwners.get(threadId), unattended: (threadId) => isUnattended(store.botByThread(threadId)?.id, threadId), running: (threadId) => coordinator.active().filter((node) => node.threadId === threadId && node.status === "running"), roomLine: (threadId) => [...(groupTurnOperations.get(store.groupByThread(threadId)?.id ?? "") ?? [])].some((operation) => operation.threadId === threadId && operation.requestMessageId !== undefined) }));
const sharedComputerControl = new SharedComputerControl(turnResources, (owner) => store.botByThread(owner.threadId)?.name);
const turnResourceOwners = new Map<string, TurnOwner>();
const turnComputerResources = new Map<string, { owner: TurnOwner; resource: string }>();
@@ -2286,7 +2286,7 @@ function parksBehindCoordination(botId: string, threadId: string): boolean {
function botAtThreadCapacity(botId: string, personThreadId?: string, startedByABot = false): boolean {
// The person's main chat is never at capacity. threadBusy, not the stored flag: a reservation holds its slot after an early completion clears the flag.
- return (!personThreadId || personThreadId !== botMainThread(botId)) && store.tasks(botId).filter((task) => threadBusy(botId, task.threadId)).length >= (startedByABot ? maxConcurrentChildThreads : maxConcurrentBotThreads)(cfg, botThreadsHost(cloudPlanTier.starter()));
+ return (!personThreadId || personThreadId !== botMainThread(botId)) && store.tasks(botId).filter((task) => threadBusy(botId, task.threadId) && (startedByABot || !cloudPlanTier.starter() || directRequestOwners.get(task.threadId)?.kind !== "handoff")).length >= (startedByABot ? maxConcurrentChildThreads : maxConcurrentBotThreads)(cfg, botThreadsHost(cloudPlanTier.starter()));
}
function hasDirectDispatch(botId: string): boolean {
@@ -2889,7 +2889,7 @@ const computerAsks = CLOUD_PERSONAL ? createComputerAsksHost({ store, notify, le
refusal: (turn) => sharedComputerPrincipal(turn) ? null : cloudLendingRefusalNotice(turn) ?? "This conversation can't use your computer.", request: (threadId) => directRequestOwners.get(threadId), active: (turn) => internalCapabilityIsActive(turn as InternalCapability) }) : null;
const { stopThreadForPerson, stopOnTypedCommand, restartForPerson, noteTeammatesLeftRunning } = createPersonStop({
store, routines: () => routines, handoffs: () => handoffs, interruptDirectThread, clearUnattended,
- stopGoal: (threadId) => oneOnOneGoals.stop(threadId), markStopped: (threadId) => personStops.stop(threadId, liveTurns.running(threadId), directTurnDispatchClaims.has(threadId)),
+ stopGoal: (threadId) => oneOnOneGoals.stop(threadId), markStopped: (threadId) => personStops.stop(threadId, liveTurns.running(threadId), directTurnDispatchClaims.has(threadId)), working: (botId, threadId) => threadBusy(botId, threadId) || coordinator.activeDirect(threadId), asking: (threadId) => coordinator.awaitingAnswer(threadId) || Boolean(openPersonCard(threadId)), language: threadLanguage,
}); const teamMessages = createTeamMessages({ team: CLOUD_TEAM, dataDir: DATA_DIR, store, people: teamOwners.people, personName: teamHost.personName, audienceOf: teamHost.audienceOf, starters: threadStarters, notify, sees: (person) => visibleTo(person.role === "member" ? { kind: "member", email: person.email } : { kind: "all", email: person.email }), inbox: { askedPerson: teamOwners.routing.askedPerson, changed: (threadId) => { const bot = store.botByThread(threadId); if (bot) broadcast({ kind: "bot", bot: wireBot(bot) }); }, ensureOwnBot: (email) => { ensureDefaultBot(store, { dataDir: DATA_DIR, person: email, team: CLOUD_TEAM?.name ?? null }); }, handedFrom: (threadId) => { const from = delegatorOf(threadId); return from && from.threadId !== threadId ? from.threadId : null; }, continueTurn: relayedTurn({ store, startTurn, state: (botId, threadId) => ({ atCapacity: botAtThreadCapacity(botId, threadId), threadBusy: threadBusy(botId, threadId), groupTurn: roomTurnHolds(activeGroupTurnForBot(botId), threadId, false), parksBehindCoordination: parksBehindCoordination(botId, threadId) }) }), representative: { generate: async (botId, prompt) => (await sideJobs.text("representative", botId)?.generateText(prompt, { timeoutMs: 60_000 })) ?? null, busy: createPersonCalendar({ access: (person) => teamConnections.personApps().includes("googlecalendar") ? teamConnections.people.appsAccess(person) : null, connected: async (access) => (await composio.connectedServices(cfg, access)).googlecalendar?.connected === true, relay: (payload, session, signal, access) => composio.relayMcp(cfg, payload as never, session, undefined, signal, access) }).busy } } });
const botNameClash = createBotNameClash({ store, people: () => teamMessages.people(), profileName: () => cfg.profile?.name });
const devsReports = createDevsReports({ dataDir: DATA_DIR, store, installId: ENVIRONMENT_ID, appVersion: serverVersion(), runsOn: CLOUD_TEAM ? "Team Cloud" : CLOUD_HOME ? "My Cloud" : DESKTOP_MANAGED ? "desktop app" : HOSTED_WORKSPACE ? "hosted server" : "self-hosted server", recentLog: captureRecentLog(), send: devsReportSender(bugReportEndpoint(process.env, CLOUD_HOME?.adminOrigin)), askStatus: devsStatusAsker(bugReportEndpoint(process.env, CLOUD_HOME?.adminOrigin), CLOUD_HOME), statusEveryMs: Number(process.env.OMB_DEVS_STATUS_MS) || undefined, tell: (threadId, text, person) => { const group = store.groupByThread(threadId), bot = group ? store.bot(group.memberIds[0] ?? "") : store.botByThread(threadId); if (bot) notify({ ...buildNoticeNotification(bot, threadId, text), ...(group ? { groupId: group.id } : {}), ...(CLOUD_TEAM && person ? { forPerson: person } : {}) }); }, working: (threadId) => { const group = store.groupByThread(threadId), bot = group ? null : store.botByThread(threadId); return group ? Boolean(group.busyBotId) || groupThreadIsWorking(group.id, threadId) : Boolean(bot && threadBusy(bot.id, threadId)); }, automated: (threadId) => Boolean(routines?.isActiveThread(threadId)), engine: (instanceId) => (registry.get(instanceId) ? { name: engineName(instanceId), snapshot: registry.lastSnapshot(instanceId) } : null), appsReady: () => composio.configured(cfg), sessions: () => sessions.list(), ownerKey: CLOUD_OWNER_KEY, team: Boolean(CLOUD_TEAM), profileEmail: () => cfg.profile?.email, language: appLanguage, lineLanguage: personLanguages.forLine });
@@ -7401,9 +7401,9 @@ async function acceptDirectSend(
if (guardedStart) return guardedStart(currentAtStart);
+ const typedStop = await stopOnTypedCommand({ botId, threadId, text, trigger, personPresent, fromApp: Boolean(app), busy: currentAtStart.busy === true, row: { replyToId: replyTo?.id, sendId, sender, ...spokenLineFields(via, callId) } });
+ if (typedStop) return typedStop;
if (currentAtStart.busy) {
- const typedStop = await stopOnTypedCommand({ botId, threadId, text, trigger, personPresent, fromApp: Boolean(app), row: { replyToId: replyTo?.id, sendId, sender, ...spokenLineFields(via, callId) } });
- if (typedStop) return typedStop;
const personsOwn = personPresent && !app && (trigger.kind === "user" || trigger.kind === "owner"), queuedPrompt = (app?.context ?? "") + personPrompt(threadId, sender, promptWithReply(promptWithDataContext(text, dataContext), replyTo, userNameFor(threadId)));
const instance = runningTurnInstance(currentAtStart, threadId);
let steered: SteerOutcome = "refused";
diff --git a/server/memory-order.e2e.test.ts b/server/memory-order.e2e.test.ts
new file mode 100644
index 0000000000..e6a6d1a44f
--- /dev/null
+++ b/server/memory-order.e2e.test.ts
@@ -0,0 +1,96 @@
+// A 2 GB Starter-sized machine that fits one turn at a time, on the fake engine: whose turn goes next, and what a stop does.
+import { existsSync, readFileSync, writeFileSync } from "node:fs";
+import { join } from "node:path";
+import { expect, it } from "vitest";
+import { launchVerificationServer, runControlOmb } from "../scripts/control-omb.ts";
+import { request } from "../scripts/mcp-server.ts";
+import { readHandoffs } from "./testing/handoff-rows.ts";
+
+const GB = 1024 ** 3, MB = 1024 ** 2;
+
+async function fixture(test: (f: any) => Promise<void>) {
+ const session = await launchVerificationServer({ ...process.env, OMB_TEST_MEMORY_GATE: "1" }, undefined, undefined, undefined, undefined, { scripted: true });
+ const { dataDir } = session.info;
+ const free = (bytes: number) => writeFileSync(join(dataDir, "host-memory.json"), JSON.stringify({ totalBytes: 2 * GB, availableBytes: bytes, swapFreeBytes: 0, oomKills: 0, fullStall10: 0 }));
+ free(900 * MB);
+ const cli = (...args: string[]) => runControlOmb(args, { env: { OPENMAUSBOT_URL: session.info.url } }) as Promise<any>;
+ const api = (path: string, body?: unknown, method = "POST") => request(path, body === undefined ? {} : { method, body: JSON.stringify(body) }, session.info.url) as Promise<any>;
+ const planPath = join(dataDir, "room-plan.json");
+ /** The bots whose turns have ended, in the order they did. With room for one at a time that is the order they ran in. */
+ const ended = (): string[] => existsSync(`${planPath}.evidence.jsonl`) ? readFileSync(`${planPath}.evidence.jsonl`, "utf8").trim().split("\n").filter(Boolean).map((line) => JSON.parse(line).botId) : [];
+ const bot = async (name: string) => (await cli("new-bot", "--name", name, "--section", "Team")).bot;
+ const messages = async (threadId: string) => (await api(`/api/threads/${threadId}/messages`)).messages as any[];
+ try { await test({ session, dataDir, cli, api, planPath, ended, bot, messages, free }); }
+ finally { await session.close(); }
+}
+
+it("starts the person's own line ahead of a hand-off that was already waiting for memory, and the hand-off right after", () => fixture(async (f) => {
+ const [chief, first, second, person] = [await f.bot("Clive"), await f.bot("First"), await f.bot("Second"), await f.bot("Person's bot")];
+ await f.api(`/api/bots/${chief.id}`, { chiefOfStaff: true, managedSections: ["Team"], acknowledgePeerScope: true }, "PATCH");
+ const gate = join(f.dataDir, "first-may-finish");
+ writeFileSync(f.planPath, JSON.stringify({
+ [chief.id]: { steps: [{ arguments: { bot_ids: [first.id], message: "First job" } }, { arguments: { bot_ids: [second.id], message: "Second job" } }], reply: "Sent", resumeReply: "Done" },
+ [first.id]: { gateFile: gate, reply: "First done" },
+ [second.id]: { reply: "Second done" },
+ [person.id]: { reply: "Yours" },
+ }));
+ await f.cli("send", "--bot", chief.id, "--task", chief.activeTaskId, "--text", "Please hand out the two jobs.");
+ const nodes = () => readHandoffs(f.dataDir).filter((node: any) => node.parentId);
+ await expect.poll(() => nodes().length, { timeout: 30_000 }).toBe(2);
+ const held = nodes().find((node: any) => node.botId === second.id)!;
+ await expect.poll(async () => (await f.messages(held.threadId)).some((message: any) => message.tool?.name?.includes("Waiting for memory")), { timeout: 30_000 }).toBe(true);
+ // Memory, not the plan's thread limit or anything before the gate: the hand-off itself has started.
+ expect(nodes().find((node: any) => node.id === held.id)!.status).toBe("running");
+
+ await f.cli("send", "--bot", person.id, "--task", person.activeTaskId, "--text", "My own question.");
+ await expect.poll(async () => (await f.messages(person.activeTaskId)).some((message: any) => message.tool?.name?.includes("Waiting for memory")), { timeout: 30_000 }).toBe(true);
+ writeFileSync(gate, "finish");
+ await expect.poll(() => f.ended().includes(second.id) && f.ended().includes(person.id), { timeout: 40_000 }).toBe(true);
+ expect(f.ended().indexOf(person.id)).toBeLessThan(f.ended().indexOf(second.id));
+}), 120_000);
+
+it("on Starter with 13 bots, hand-offs to busy bots start at once: one thread per bot holds only what a person or a routine starts", () => fixture(async (f) => {
+ writeFileSync(join(f.dataDir, "test-starter"), "");
+ expect((await f.api("/api/config", undefined, "GET")).cloudStarter).toBe(true);
+ const bots: any[] = [];
+ for (let at = 0; at < 13; at += 1) bots.push(await f.bot(`Teammate ${at}`));
+ const [chief, target, other] = bots;
+ await f.api(`/api/bots/${chief.id}`, { chiefOfStaff: true, managedSections: ["Team"], acknowledgePeerScope: true }, "PATCH");
+ const gate = join(f.dataDir, "target-may-finish");
+ writeFileSync(f.planPath, JSON.stringify({
+ [chief.id]: { steps: [{ arguments: { bot_ids: [target.id], message: "While you are busy" } }, { arguments: { bot_ids: [other.id], message: "Also while busy" } }], reply: "Sent", resumeReply: "Done" },
+ [target.id]: { gateFile: gate, reply: "Done" },
+ [other.id]: { reply: "Done" },
+ }));
+ f.free(8 * GB);
+ await f.cli("send", "--bot", target.id, "--task", target.activeTaskId, "--text", "Keep busy.");
+ await expect.poll(async () => (await f.api("/api/bots?messages=0", undefined, "GET")).bots.find((bot: any) => bot.id === target.id).busy, { timeout: 30_000 }).toBe(true);
+ await f.cli("send", "--bot", chief.id, "--task", chief.activeTaskId, "--text", "Hand these out.");
+ const nodes = () => readHandoffs(f.dataDir).filter((node: any) => node.parentId);
+ await expect.poll(() => nodes().length, { timeout: 40_000 }).toBe(2);
+ await expect.poll(() => nodes().map((node: any) => node.status), { timeout: 5_000, interval: 100 }).toEqual(["running", "running"]);
+ writeFileSync(gate, "finish");
+ await expect.poll(() => nodes().map((node: any) => node.status), { timeout: 60_000 }).toEqual(["completed", "completed"]);
+}), 180_000);
+
+it("a typed stop ends a turn waiting for memory at once and never starts it, and a stop for an idle bot starts nothing", () => fixture(async (f) => {
+ const [running, waiting, idle] = [await f.bot("Running"), await f.bot("Waiting"), await f.bot("Idle")];
+ const gate = join(f.dataDir, "running-may-finish");
+ writeFileSync(f.planPath, JSON.stringify({ [running.id]: { gateFile: gate, reply: "Done" }, [waiting.id]: { reply: "Never" }, [idle.id]: { reply: "Never" } }));
+ await f.cli("send", "--bot", running.id, "--task", running.activeTaskId, "--text", "A long job.");
+ await expect.poll(async () => (await f.api("/api/bots?messages=0", undefined, "GET")).bots.find((bot: any) => bot.id === running.id).busy, { timeout: 30_000 }).toBe(true);
+ await f.cli("send", "--bot", waiting.id, "--task", waiting.activeTaskId, "--text", "Another job.");
+ await expect.poll(async () => (await f.messages(waiting.activeTaskId)).some((message: any) => message.tool?.name?.includes("Waiting for memory")), { timeout: 30_000 }).toBe(true);
+
+ const before = Date.now();
+ await f.api(`/api/bots/${waiting.id}/messages`, { text: "@everyone alles stoppen", threadId: waiting.activeTaskId });
+ await expect.poll(async () => (await f.api("/api/bots?messages=0", undefined, "GET")).bots.find((bot: any) => bot.id === waiting.id).busy, { timeout: 3_000, interval: 50 }).toBe(false);
+ expect(Date.now() - before).toBeLessThan(3_000);
+
+ await f.api(`/api/bots/${idle.id}/messages`, { text: "@everyone alles stoppen", threadId: idle.activeTaskId });
+ await expect.poll(async () => (await f.messages(idle.activeTaskId)).map((message: any) => message.tool?.name ?? message.text).slice(-2)).toEqual(["@everyone alles stoppen", "Nothing was running here, so nothing needed stopping."]);
+ writeFileSync(gate, "finish");
+ await expect.poll(async () => (await f.api("/api/bots?messages=0", undefined, "GET")).bots.find((bot: any) => bot.id === running.id).busy, { timeout: 30_000 }).toBe(false);
+ await new Promise((resolve) => setTimeout(resolve, 1_500));
+ expect(f.ended()).toEqual([running.id]);
+}), 120_000);
diff --git a/server/parallel-threads.e2e.test.ts b/server/parallel-threads.e2e.test.ts
index 08e95da527..c96829b068 100644
--- a/server/parallel-threads.e2e.test.ts
+++ b/server/parallel-threads.e2e.test.ts
@@ -462,6 +462,21 @@ describe("a Starter Cloud", () => {
expect(await busyThreads(f, a.botId), "Ada's first turn never had to end for it").toContain(a.threads[0]);
}, 90_000);
+ it("keeps a teammate's hand-off out of the person's slot, and the person's own threads still run one at a time", async () => {
+ await starter();
+ const a = await botWithThreads(f, CLAUDE, 1, "Ada");
+ const b = await botWithThreads(f, CLAUDE, 3, "Ben");
+ await send(f, a.botId, a.threads[0]!, "Ada's job");
+ await whenStarted(a.threads[0]!);
+ const toBen = await startThread(a.threads[0]!, "For Ben", b.botId);
+ expect(toBen.status, JSON.stringify(toBen.body)).toBeLessThan(300);
+ await whenStarted(await ownThread(b.botId, "For Ben"));
+ const own = await f.api("POST", `/api/bots/${b.botId}/messages`, { threadId: b.threads[1], text: "The person's own job" });
+ expect(own.body.queued, JSON.stringify(own.body)).toBeUndefined();
+ await whenStarted(b.threads[1]!);
+ expect((await f.api("POST", `/api/bots/${b.botId}/messages`, { threadId: b.threads[2], text: "Their next job" })).body).toMatchObject({ queued: true, reason: "capacity" });
+ }, 90_000);
+
it("brings a teammate's result back into the thread that asked, while another thread of that bot holds the slot", async () => {
await starter();
const a = await botWithThreads(f, CLAUDE, 2, "Ada");
diff --git a/server/room-holds.test.ts b/server/room-holds.test.ts
index 14681a38e6..24fcdde5af 100644
--- a/server/room-holds.test.ts
+++ b/server/room-holds.test.ts
@@ -99,6 +99,30 @@ describe("isStopCommand", () => {
}
});
+ it("reads the app's own word for Stop in each of its languages as a stop", () => {
+ for (const text of ["stopp", "alles stoppen", "Bitte stoppen!", "STOPP", "detener", "detener todo", "arrêter", "arrêter tout", "रोकें", "interrompi", "ferma tutto", "停止",
+ "중지", "멈추기", "zatrzymaj", "zatrzymaj wszystko", "parar", "parar agora", "стоп", "остановить всё", "durdur", "lütfen durdur", "зупинити", "dừng", "D\u1EEB\u006E\u0067", "Du\u031B\u0300ng"]) {
+ expect(isStopCommand(text), text).toBe(true);
+ }
+ });
+
+ it("reads a real sentence that merely has a stop word in it as a message, in every language", () => {
+ for (const text of ["stoppen wir das Projekt?", "bitte nicht stoppen", "Stopp-Schild bestellen", "wann soll ich stoppen", "no detener", "detener el servidor", "arrêter de fumer", "ne pas arrêter",
+ "रोकें नहीं", "non interrompi", "ferma il server", "停止服务", "不要停止", "停止してください", "중지 말고 계속", "nie zatrzymaj", "parar de compartilhar", "não parar", "не остановить", "стоп-лосс на 5%",
+ "durdur ve yeniden başlat", "не зупинити", "dừng lại sau khi xong", "alles", "bitte", "todo", "`stopp`", "\"alles stoppen\"", "> alles stoppen"]) {
+ expect(isStopCommand(text), text).toBe(false);
+ }
+ });
+
+ it("takes @everyone and the bot's own name as a tag, and any other tag as a message about them", () => {
+ expect(isStopCommand("@everyone stop")).toBe(true);
+ expect(isStopCommand("@everyone alles stoppen")).toBe(true);
+ expect(isStopCommand("@Chris Assistent stop", "Chris Assistent")).toBe(true);
+ expect(isStopCommand("@Ben stop", "Ada")).toBe(false);
+ expect(isStopCommand("@Adam stop", "Ada")).toBe(false);
+ expect(isStopCommand("@everyone-else stop")).toBe(false);
+ });
+
it("reads any other message as a message, including a quoted or coded stop", () => {
for (const text of ["", "all right", "stop using tabs", "don't stop", "pause", "stop the build and run tests", "`stop`", "\"stop\"", "> stop",
"why did it stop?", "it stopped", "never stop", "non-stop", "stop-loss at 5%", "cancel my 3pm", "please stop the server and restart it", "stop\nthen deploy"]) {
diff --git a/server/room-holds.ts b/server/room-holds.ts
index b6b85635bf..ee97ea8972 100644
--- a/server/room-holds.ts
+++ b/server/room-holds.ts
@@ -10,8 +10,12 @@ const STOP_WINDOW = 2;
const STOP_WORDS = new Set(["stop", "halt", "pause"]);
const OBJECT_STARTERS = new Set(["this", "that", "these", "those", "the", "a", "an", "my", "our", "your", "his", "her", "their", "its"]);
const OWN_WORK_OR_URGENCY = new Set(["now", "please", "right", "immediately", "asap", "work", "task", "job", "turn", "run", "reply"]);
-const STOP_COMMANDS = new Set(["stop", "halt", "cancel", "abort"]);
-const STOP_FILLERS = new Set(["now", "please", "right", "immediately", "asap", "it", "that", "this", "everything", "all"]);
+// Beyond English: the words of the app's own Stop buttons in its language packs ("chat.stop", "vm.safety.stop", "room.holds.stop").
+const STOP_COMMANDS = new Set(["stop", "halt", "cancel", "abort", "stopp", "stoppen", "detener", "arrêter", "रोकें", "interrompi", "ferma", "停止",
+ "중지", "멈추기", "zatrzymaj", "parar", "стоп", "остановить", "durdur", "зупинити", "dừng"]);
+const STOP_FILLERS = new Set(["now", "please", "right", "immediately", "asap", "it", "that", "this", "everything", "all", "alles", "bitte", "sofort", "jetzt",
+ "todo", "ahora", "tout", "maintenant", "tutto", "ora", "subito", "tudo", "agora", "wszystko", "teraz", "всё", "все", "сейчас", "пожалуйста", "зараз",
+ "hepsini", "şimdi", "lütfen"]);
export const MAX_HELD_MESSAGES = 20;
export type HoldDirective = {
@@ -84,8 +88,11 @@ function isBareResume(text: string): boolean {
return words.length > 0 && words[0] === "resume" && words.slice(1).every((word) => ["all", "everyone", "please"].includes(word));
}
-export function isStopCommand(text: string): boolean {
- const words = maskQuotedAndCode(text).toLowerCase().match(/[\p{L}\p{N}_-]+/gu) ?? [];
+/** `ownName`: the bot it was sent to, which may be tagged. A tag of anyone else is a message about them, not a stop. */
+export function isStopCommand(text: string, ownName?: string): boolean {
+ const line = maskQuotedAndCode(text).normalize("NFC").toLowerCase();
+ const untagged = ["everyone", ...(ownName ? [ownName.normalize("NFC").toLowerCase()] : [])].reduce((rest, name) => rest.split(`@${name}`).join(" "), line);
+ const words = untagged.match(/[\p{L}\p{M}\p{N}_-]+/gu) ?? [];
return words.some((word) => STOP_COMMANDS.has(word)) && words.every((word) => STOP_COMMANDS.has(word) || STOP_FILLERS.has(word));
}
diff --git a/server/testing/memory-gate-hooks.mjs b/server/testing/memory-gate-hooks.mjs
new file mode 100644
index 0000000000..d7ee8efa25
--- /dev/null
+++ b/server/testing/memory-gate-hooks.mjs
@@ -0,0 +1,30 @@
+// Loaded with --import in isolated fixtures when OMB_TEST_MEMORY_GATE=1: the memory gate runs on any OS, and this machine's
+// memory is what <data dir>/host-memory.json says. Nothing else about the gate changes. While <data dir>/test-starter exists
+// this server is on the Starter plan.
+import { existsSync, readFileSync } from 'node:fs';
+import { registerHooks } from 'node:module';
+import { join } from 'node:path';
+const dataDir = process.env.OMB_DATA_DIR;
+if (!dataDir || dataDir !== process.env.HOME || process.env.OMB_TEST_MEMORY_GATE !== '1') {
+ throw new Error('The memory gate seam requires an explicitly isolated fixture');
+}
+const file = join(dataDir, 'host-memory.json');
+globalThis.__ombTestHostMemory = () => JSON.parse(readFileSync(file, 'utf8'));
+globalThis.__ombTestStarter = () => existsSync(join(dataDir, 'test-starter'));
+const gate = new URL('../engine-memory.ts', import.meta.url).href;
+const plan = new URL('../host/cloud-plan-tier.ts', import.meta.url).href;
+registerHooks({
+ load(url, context, nextLoad) {
+ const result = nextLoad(url, context);
+ if (url === plan) {
+ const anchor = 'starter: () => tier === "starter",';
+ if (!String(result.source).includes(anchor)) throw new Error('Plan seam changed');
+ return { ...result, source: String(result.source).replace(anchor, 'starter: () => globalThis.__ombTestStarter(),') };
+ }
+ if (url !== gate) return result;
+ const source = String(result.source);
+ const anchor = /export const engineMemory = new EngineMemory\(\{ enabled: [^\n]*\}\);/;
+ if (!anchor.test(source)) throw new Error('Memory gate seam changed');
+ return { ...result, source: source.replace(anchor, 'export const engineMemory = new EngineMemory({ enabled: true, read: () => globalThis.__ombTestHostMemory(), groups: () => new Map(), tickMs: 100 });') };
+ },
+});
diff --git a/src/locales/de.json b/src/locales/de.json
index 69ff67dbcc..e7f4155e45 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -166,6 +166,7 @@
"server.rooms.finishingElsewhere": "{bot} beendet gerade eine andere Unterhaltung und antwortet hier, sobald er frei ist",
"server.rooms.finishingElsewhereSpoken": "{bot} beendet gerade eine andere Unterhaltung",
"server.rooms.unavailable": "{bot} ist nicht mehr verfügbar, daher diese Runde übersprungen",
+ "server.stop.nothingRunning": "Hier lief nichts, es gab also nichts zu stoppen.",
"server.rooms.stayedBusy.one": "{bot} war {count} Minute lang in einer anderen Unterhaltung beschäftigt, daher diese Runde übersprungen",
"server.rooms.stayedBusy.many": "{bot} war {count} Minuten lang in einer anderen Unterhaltung beschäftigt, daher diese Runde übersprungen",
"server.rooms.busyElsewhere": "{bot} ist in einer anderen Unterhaltung beschäftigt, daher diese Runde übersprungen",
diff --git a/src/locales/en.json b/src/locales/en.json
index 7686f3f943..668f2c23bd 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -262,6 +262,7 @@
"server.rooms.finishingElsewhere": "{bot} is finishing another conversation — will reply here when free",
"server.rooms.finishingElsewhereSpoken": "{bot} is finishing another conversation",
"server.rooms.unavailable": "{bot} is no longer available — skipped this round",
+ "server.stop.nothingRunning": "Nothing was running here, so nothing needed stopping.",
"server.rooms.stayedBusy.one": "{bot} stayed busy in another conversation for {count} minute — skipped this round",
"server.rooms.stayedBusy.many": "{bot} stayed busy in another conversation for {count} minutes — skipped this round",
"server.rooms.busyElsewhere": "{bot} is busy in another conversation — skipped this round",
diff --git a/src/locales/es.json b/src/locales/es.json
index aa3007af52..151c92af07 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -204,6 +204,7 @@
"server.rooms.finishingElsewhere": "{bot} está terminando otra conversación; responderá aquí cuando quede libre",
"server.rooms.finishingElsewhereSpoken": "{bot} está terminando otra conversación",
"server.rooms.unavailable": "{bot} ya no está disponible; se saltó esta ronda",
+ "server.stop.nothingRunning": "Aquí no había nada en marcha, así que no hacía falta detener nada.",
"server.rooms.stayedBusy.one": "{bot} siguió ocupado en otra conversación durante {count} minuto; se saltó esta ronda",
"server.rooms.stayedBusy.many": "{bot} siguió ocupado en otra conversación durante {count} minutos; se saltó esta ronda",
"server.rooms.busyElsewhere": "{bot} está ocupado en otra conversación; se saltó esta ronda",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index e35c88773f..3a571b3d60 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -158,6 +158,7 @@
"server.rooms.finishingElsewhere": "{bot} termine une autre conversation et répondra ici dès qu'il sera libre",
"server.rooms.finishingElsewhereSpoken": "{bot} termine une autre conversation",
"server.rooms.unavailable": "{bot} n'est plus disponible : tour passé",
+ "server.stop.nothingRunning": "Rien n'était en cours ici, il n'y avait donc rien à arrêter.",
"server.rooms.stayedBusy.one": "{bot} est resté occupé dans une autre conversation pendant {count} minute : tour passé",
"server.rooms.stayedBusy.many": "{bot} est resté occupé dans une autre conversation pendant {count} minutes : tour passé",
"server.rooms.busyElsewhere": "{bot} est occupé dans une autre conversation : tour passé",
diff --git a/src/locales/hi.json b/src/locales/hi.json
index 3330da0f9a..45625adbea 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -158,6 +158,7 @@
"server.rooms.finishingElsewhere": "{bot} एक दूसरी बातचीत पूरी कर रहा है; फ़्री होते ही यहाँ जवाब देगा",
"server.rooms.finishingElsewhereSpoken": "{bot} एक दूसरी बातचीत पूरी कर रहा है",
"server.rooms.unavailable": "{bot} अब उपलब्ध नहीं है; यह दौर छोड़ दिया गया",
+ "server.stop.nothingRunning": "यहाँ कुछ नहीं चल रहा था, इसलिए कुछ रोकने की ज़रूरत नहीं थी।",
"server.rooms.stayedBusy.one": "{bot} {count} मिनट तक दूसरी बातचीत में व्यस्त रहा; यह दौर छोड़ दिया गया",
"server.rooms.stayedBusy.many": "{bot} {count} मिनट तक दूसरी बातचीत में व्यस्त रहा; यह दौर छोड़ दिया गया",
"server.rooms.busyElsewhere": "{bot} दूसरी बातचीत में व्यस्त है; यह दौर छोड़ दिया गया",
diff --git a/src/locales/it.json b/src/locales/it.json
index f336bdf68f..479316df0b 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -209,6 +209,7 @@
"server.rooms.finishingElsewhere": "{bot} sta finendo un'altra conversazione: risponderà qui appena è libero",
"server.rooms.finishingElsewhereSpoken": "{bot} sta finendo un'altra conversazione",
"server.rooms.unavailable": "{bot} non è più disponibile: turno saltato",
+ "server.stop.nothingRunning": "Qui non era in corso nulla, quindi non c'era niente da interrompere.",
"server.rooms.stayedBusy.one": "{bot} è rimasto occupato in un'altra conversazione per {count} minuto: turno saltato",
"server.rooms.stayedBusy.many": "{bot} è rimasto occupato in un'altra conversazione per {count} minuti: turno saltato",
"server.rooms.busyElsewhere": "{bot} è occupato in un'altra conversazione: turno saltato",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 3c6fe3bc2d..54096f4b51 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -211,6 +211,7 @@
"server.rooms.finishingElsewhere": "{bot} は別の会話を終えるところです。空き次第ここで返信します",
"server.rooms.finishingElsewhereSpoken": "{bot} は別の会話を終えるところです",
"server.rooms.unavailable": "{bot} は利用できなくなったため、この回はスキップしました",
+ "server.stop.nothingRunning": "ここでは何も実行されていなかったので、停止するものはありませんでした。",
"server.rooms.stayedBusy.one": "{bot} は {count} 分間ほかの会話で手が離せなかったため、この回はスキップしました",
"server.rooms.stayedBusy.many": "{bot} は {count} 分間ほかの会話で手が離せなかったため、この回はスキップしました",
"server.rooms.busyElsewhere": "{bot} はほかの会話で手が離せないため、この回はスキップしました",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 14a9767c40..7875d1ffad 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -254,6 +254,7 @@
"server.rooms.finishingElsewhere": "{bot}이(가) 다른 대화를 마무리하는 중이에요. 끝나면 여기서 답할게요",
"server.rooms.finishingElsewhereSpoken": "{bot}이(가) 다른 대화를 마무리하는 중이에요",
"server.rooms.unavailable": "{bot}을(를) 더 이상 쓸 수 없어서 이번 차례는 건너뛰었어요",
+ "server.stop.nothingRunning": "여기서 실행 중인 작업이 없어서 중지할 것이 없었어요.",
"server.rooms.stayedBusy.one": "{bot}이(가) {count}분 동안 다른 대화로 바빠서 이번 차례는 건너뛰었어요",
"server.rooms.stayedBusy.many": "{bot}이(가) {count}분 동안 다른 대화로 바빠서 이번 차례는 건너뛰었어요",
"server.rooms.busyElsewhere": "{bot}이(가) 다른 대화로 바빠서 이번 차례는 건너뛰었어요",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index e99002faec..02a5d6e0d5 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -211,6 +211,7 @@
"server.rooms.finishingElsewhere": "{bot} kończy inną rozmowę i odpowie tutaj, gdy będzie wolny",
"server.rooms.finishingElsewhereSpoken": "{bot} kończy inną rozmowę",
"server.rooms.unavailable": "{bot} nie jest już dostępny; pominięty w tej rundzie",
+ "server.stop.nothingRunning": "Nic tu nie działało, więc nie było czego zatrzymywać.",
"server.rooms.stayedBusy.one": "{bot} był zajęty inną rozmową przez {count} minutę; pominięty w tej rundzie",
"server.rooms.stayedBusy.many": "{bot} był zajęty inną rozmową przez {count} min; pominięty w tej rundzie",
"server.rooms.busyElsewhere": "{bot} jest zajęty inną rozmową; pominięty w tej rundzie",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 7290786b5c..894b2d336a 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -203,6 +203,7 @@
"server.rooms.finishingElsewhere": "{bot} está terminando outra conversa e vai responder aqui quando ficar livre",
"server.rooms.finishingElsewhereSpoken": "{bot} está terminando outra conversa",
"server.rooms.unavailable": "{bot} não está mais disponível; pulado nesta rodada",
+ "server.stop.nothingRunning": "Nada estava em execução aqui, então não havia o que parar.",
"server.rooms.stayedBusy.one": "{bot} ficou ocupado em outra conversa por {count} minuto; pulado nesta rodada",
"server.rooms.stayedBusy.many": "{bot} ficou ocupado em outra conversa por {count} minutos; pulado nesta rodada",
"server.rooms.busyElsewhere": "{bot} está ocupado em outra conversa; pulado nesta rodada",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 36f21208ea..9096a2aece 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -211,6 +211,7 @@
"server.rooms.finishingElsewhere": "{bot} заканчивает другой разговор и ответит здесь, когда освободится",
"server.rooms.finishingElsewhereSpoken": "{bot} заканчивает другой разговор",
"server.rooms.unavailable": "{bot} больше недоступен, поэтому пропущен в этом раунде",
+ "server.stop.nothingRunning": "Здесь ничего не выполнялось, так что останавливать было нечего.",
"server.rooms.stayedBusy.one": "{bot} был занят в другом разговоре {count} минуту, поэтому пропущен в этом раунде",
"server.rooms.stayedBusy.many": "{bot} был занят в другом разговоре {count} мин, поэтому пропущен в этом раунде",
"server.rooms.busyElsewhere": "{bot} занят в другом разговоре, поэтому пропущен в этом раунде",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index 4eec79bd03..ebd931cfe7 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -2832,7 +2832,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"es": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -8554,7 +8555,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"fr": {
"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",
@@ -11333,7 +11335,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"hi": {
"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",
@@ -14112,7 +14115,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"ja": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -20719,7 +20723,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"pt-br": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -27120,7 +27125,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"zh": {
"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",
@@ -34427,7 +34433,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"zh-tw": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -39032,7 +39039,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"uk": {
"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",
@@ -42252,7 +42260,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"vi": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -47465,7 +47474,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"tr": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -52678,7 +52688,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"pl": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -59201,7 +59212,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"ru": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -65786,7 +65798,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"it": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -72169,7 +72182,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
},
"ko": {
"connectedWorkspaces.localTitle": "7d6deafeab011d734c3fdd1bfd6f69544fbb746a004019269bdb48544b01164b",
@@ -79277,7 +79291,8 @@
"server.browser.stoppedWaiting": "0c6d8041de6e6077f9be0ddaddeebe4457e29a1231de7aa6a8b9288704e5ccb2",
"composer.queued.capacityStarter": "b04ed386a880964a1438f12746471df1a3f2dd4894ca97dcb3fbd22b1834da88",
"composer.queued.seePlans": "d989893356eeff0f22804648f79ee465c509800917fe8d64ec31ab5aa6557220",
- "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f"
+ "settings.threads.starter": "8837e4531b35bb772dcbdd6067cf3a494bca815a6620e7319bd01d9af0e1574f",
+ "server.stop.nothingRunning": "8cbd379640801817f0cfa32bc247147eaaa69428cb572512971e7091f4ca7d0c"
}
}
}
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 014e35f861..c45473729f 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -189,6 +189,7 @@
"server.rooms.finishingElsewhere": "{bot} başka bir konuşmayı bitiriyor; boşalınca burada yanıt verecek",
"server.rooms.finishingElsewhereSpoken": "{bot} başka bir konuşmayı bitiriyor",
"server.rooms.unavailable": "{bot} artık müsait değil; bu tur atlandı",
+ "server.stop.nothingRunning": "Burada çalışan bir şey yoktu, bu yüzden durdurulacak bir şey de yoktu.",
"server.rooms.stayedBusy.one": "{bot} {count} dakika boyunca başka bir konuşmayla meşguldü; bu tur atlandı",
"server.rooms.stayedBusy.many": "{bot} {count} dakika boyunca başka bir konuşmayla meşguldü; bu tur atlandı",
"server.rooms.busyElsewhere": "{bot} başka bir konuşmayla meşgul; bu tur atlandı",
diff --git a/src/locales/uk.json b/src/locales/uk.json
index 14c34fd934..3db709f295 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -158,6 +158,7 @@
"server.rooms.finishingElsewhere": "{bot} завершує іншу розмову й відповість тут, щойно звільниться",
"server.rooms.finishingElsewhereSpoken": "{bot} завершує іншу розмову",
"server.rooms.unavailable": "{bot} більше недоступний, тому пропущений у цьому раунді",
+ "server.stop.nothingRunning": "Тут нічого не виконувалося, тож зупиняти було нічого.",
"server.rooms.stayedBusy.one": "{bot} був зайнятий в іншій розмові {count} хвилину, тому пропущений у цьому раунді",
"server.rooms.stayedBusy.many": "{bot} був зайнятий в іншій розмові {count} хв, тому пропущений у цьому раунді",
"server.rooms.busyElsewhere": "{bot} зайнятий в іншій розмові, тому пропущений у цьому раунді",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index a5dde251bb..eac3919e92 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -189,6 +189,7 @@
"server.rooms.finishingElsewhere": "{bot} đang hoàn tất một cuộc trò chuyện khác và sẽ trả lời ở đây khi rảnh",
"server.rooms.finishingElsewhereSpoken": "{bot} đang hoàn tất một cuộc trò chuyện khác",
"server.rooms.unavailable": "{bot} không còn khả dụng; đã bỏ qua lượt này",
+ "server.stop.nothingRunning": "Ở đây không có gì đang chạy nên không cần dừng gì cả.",
"server.rooms.stayedBusy.one": "{bot} bận ở một cuộc trò chuyện khác trong {count} phút; đã bỏ qua lượt này",
"server.rooms.stayedBusy.many": "{bot} bận ở một cuộc trò chuyện khác trong {count} phút; đã bỏ qua lượt này",
"server.rooms.busyElsewhere": "{bot} đang bận ở một cuộc trò chuyện khác; đã bỏ qua lượt này",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 9438c47b31..00d4974e55 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -188,6 +188,7 @@
"server.rooms.finishingElsewhere": "{bot} 正在結束另一段對話,空閒後會在這裡回覆",
"server.rooms.finishingElsewhereSpoken": "{bot} 正在結束另一段對話",
"server.rooms.unavailable": "{bot} 已無法使用,本輪已略過",
+ "server.stop.nothingRunning": "這裡沒有正在執行的內容,所以不需要停止。",
"server.rooms.stayedBusy.one": "{bot} 在另一段對話中忙了 {count} 分鐘,本輪已略過",
"server.rooms.stayedBusy.many": "{bot} 在另一段對話中忙了 {count} 分鐘,本輪已略過",
"server.rooms.busyElsewhere": "{bot} 正在另一段對話中忙碌,本輪已略過",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 27f7877297..b6ea6525f9 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -259,6 +259,7 @@
"server.rooms.finishingElsewhere": "{bot} 正在结束另一个对话,空闲后会在这里回复",
"server.rooms.finishingElsewhereSpoken": "{bot} 正在结束另一个对话",
"server.rooms.unavailable": "{bot} 已不可用,本轮已跳过",
+ "server.stop.nothingRunning": "这里没有正在运行的内容,所以无需停止。",
"server.rooms.stayedBusy.one": "{bot} 在另一个对话中忙了 {count} 分钟,本轮已跳过",
"server.rooms.stayedBusy.many": "{bot} 在另一个对话中忙了 {count} 分钟,本轮已跳过",
"server.rooms.busyElsewhere": "{bot} 正在另一个对话中忙碌,本轮已跳过",