Skip to content

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

test: drop exact copies of tests that run twice

milind-sonic74943b51961
diff --git a/server/drivers/acp/hermes.test.ts b/server/drivers/acp/hermes.test.ts
index d803e0d729..4d125d4a34 100644
--- a/server/drivers/acp/hermes.test.ts
+++ b/server/drivers/acp/hermes.test.ts
@@ -188,10 +188,6 @@ describe("hermesConfiguredModel", () => {
custom: true,
});
});
-
- it("does not map to an ACP model id, so no session/set_model is sent for it", () => {
- expect(hermesAcpModelId(HERMES_CONFIG_MODEL_ID)).toBeNull();
- });
});
describe("hermesAcpModelId", () => {
@@ -470,8 +466,4 @@ describe("resolveHermesModels when Hermes has no model to list", () => {
options: [{ id: HERMES_CONFIG_MODEL_ID, label: "anthropic/claude-opus-4.6 (Hermes config)", custom: true }],
});
});
-
- it("starts Hermes without choosing a model for the default entry", () => {
- expect(hermesAcpModelId(HERMES_CONFIG_MODEL_ID)).toBeNull();
- });
});
diff --git a/server/drivers/claude.test.ts b/server/drivers/claude.test.ts
index 0c6a9e8a09..a63c3d0bc5 100644
--- a/server/drivers/claude.test.ts
+++ b/server/drivers/claude.test.ts
@@ -4228,15 +4228,6 @@ describe("ClaudeDriver turns (fake CLI)", () => {
}
});
- it("answers to unknown or already-resolved asks resolve `unavailable` — typed, never a throw", async () => {
- await create("hang");
- await instance.adapter.sendTurn({ threadId: "t-perm-2", text: "go" });
- await expect(instance.adapter.respondToRequest("t-perm-2", "never-asked", { behavior: "allow" })).resolves.toBe("unavailable");
- await expect(instance.adapter.respondToRequest("no-such-thread", "x", { behavior: "deny" })).resolves.toBe("unavailable");
- await instance.adapter.interruptTurn("t-perm-2");
- await recorder.until((e) => e.type === "turn.completed");
- });
-
it("resolves a pending ask as a system denial when the turn is interrupted", async () => {
await create("hang");
await instance.adapter.sendTurn({ threadId: "t-perm-stop", text: "go" });
diff --git a/server/store.test.ts b/server/store.test.ts
index 84dc18ecad..1d95457d7d 100644
--- a/server/store.test.ts
+++ b/server/store.test.ts
@@ -1828,19 +1828,6 @@ describe("Store", () => {
const reloaded = new Store(selection);
expect(reloaded.bot(bot.id)?.busy).toBe(false);
});
- it("createBot with seedMessages:false starts with an empty transcript", () => {
- const store = new Store(selection);
- const bot = store.createBot({ name: "Imported" }, { seedMessages: false });
- expect(store.messagesFor(bot.threadId)).toHaveLength(0);
- });
-
- it("persists the per-bot composio gate", () => {
- const store = new Store(selection);
- const bot = store.createBot();
- store.patchBot(bot.id, { composio: false });
- const reloaded = new Store(selection);
- expect(reloaded.bot(bot.id)?.composio).toBe(false);
- });
it("deleteBot removes the bot and its durable transcript", () => {
const store = new Store(selection);
diff --git a/src/components/CloudComputerRecovery.dom.test.ts b/src/components/CloudComputerRecovery.dom.test.ts
index be91197f78..65070867df 100644
--- a/src/components/CloudComputerRecovery.dom.test.ts
+++ b/src/components/CloudComputerRecovery.dom.test.ts
@@ -102,11 +102,6 @@ describe("the computer's own state line", () => {
expect(line()).toBe(`Cleared caches at ${new Date(clearedAt).toLocaleTimeString(undefined, { hour: "2-digit", minute: "2-digit" })}.`);
});
- it("shows nothing about a disk that is fine", async () => {
- await render(false);
- expect(host.querySelector("[data-testid=cloud-computer-recovery]")).toBeNull();
- });
-
it("leaves the line to the recovery while MausBot is restarting the computer", async () => {
answering = { state: "not-responding", since: 1, lastAnsweredAt: null };
status = { state: "restarting", at: 2 };
diff --git a/src/components/SidebarThreadRow.test.ts b/src/components/SidebarThreadRow.test.ts
index 7a66bc54d4..1a85081170 100644
--- a/src/components/SidebarThreadRow.test.ts
+++ b/src/components/SidebarThreadRow.test.ts
@@ -195,35 +195,6 @@ describe("snoozed threads", () => {
});
});
-describe("threads a bot opened", () => {
- const openedBy = { botId: "scout", name: "Scout", at: 5 };
- const render = (task: ThreadRowProps["task"]) => renderToStaticMarkup(createElement(SidebarThreadRow, {
- task, ownerId: "scout", current: false, onSelect: vi.fn(), onRename: vi.fn(), onDelete: vi.fn(), locale: "en",
- }));
- it("says who opened the thread in plain words, and nothing for the person's own", () => {
- expect(threadOpenerLabel({ openedBy })).toBe("opened by Scout");
- expect(threadOpenerLabel({})).toBeNull();
- expect(threadOpenerLabel({ openedBy: { ...openedBy, name: " " } })).toBeNull();
- });
- it("shows the opener quietly under the title without changing the row's name or status", () => {
- const markup = render({ threadId: "qa", title: "QA PR 245", openedBy, activity: "waiting-on-you" });
- expect(markup).toContain("opened by Scout");
- expect(markup).toContain('title="QA PR 245 · Waiting"');
- expect(markup.indexOf("QA PR 245")).toBeLessThan(markup.indexOf("opened by Scout"));
- expect(render({ threadId: "own", title: "Quick question" })).not.toContain("opened by");
- });
- it("gives a bot-opened thread the same waiting and unread signals as any other", () => {
- const waiting = render({ threadId: "qa", title: "QA PR 245", openedBy, activity: "waiting-on-you", unread: true });
- expect(waiting).toContain('title="QA PR 245 · Waiting · Unread"');
- expect(waiting).toContain(">Waiting</span>");
- expect(waiting).toContain('aria-label="Unread"');
- expect(waiting).toContain("opened by Scout");
- const rows = Array.from({ length: 9 }, (_, index) => ({ threadId: String(index), title: `Thread ${index}` }));
- const opened = [...rows, { threadId: "qa", title: "QA PR 245", openedBy, activity: "waiting-on-you" as const, busy: false }];
- expect(visibleSidebarThreads(opened, "0").map((task) => task.threadId)).toEqual(["0", "1", "2", "3", "4", "5", "qa"]);
- });
-});
-
describe("threads a bot closed", () => {
const openedBy = { botId: "pm", name: "Parker", at: 5 };
const closedBy = { botId: "pm", name: "Parker", at: 9 };