Skip to content

Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.

977 B
Raw Blame
import { expect, test } from "bun:test";
import { readFileSync } from "node:fs";

/**
 * Onboarding's introduction promised "Each Bot has its own computer". Bots now share one computer
 * per person, each with its own browser and folder there, and only an Isolated Bot gets a computer
 * of its own, so the scene says what every Bot does get.
 *
 * Read from the route's source rather than rendered: the introduction is an `AnimatePresence` loop,
 * and under happy-dom an exiting scene never reports finished (see `collapse.tsx`), so a render
 * never reaches the second scene. What regressed was the words, and this pins the words.
 */
const onboarding = readFileSync(
  new URL("../src/routes/_authed/onboarding.tsx", import.meta.url),
  "utf8",
);

test("onboarding says what every Bot gets, not a computer of its own", () => {
  expect(onboarding).toContain("Each Bot has its own browser and files");
  expect(onboarding).not.toMatch(/Each Bot has its own computer/);
});