Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

664 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { decodeServerSettings, decodeServerSettingsPatch } from "./settings.test-support.ts";

describe("ServerSettings bot sandbox and browser sharing", () => {
  it("defaults to separate and accepts shared as an opt-in", () => {
    expect(decodeServerSettings({}).botSandboxBrowserSharing).toBe("separate");
    expect(
      decodeServerSettingsPatch({ botSandboxBrowserSharing: "shared" }).botSandboxBrowserSharing,
    ).toBe("shared");
  });

  it("rejects unsupported sharing modes", () => {
    expect(() => decodeServerSettingsPatch({ botSandboxBrowserSharing: "per-thread" })).toThrow();
  });
});