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.

584 B
Raw Blame
import { describe, expect, it } from "@effect/vitest";

import { isBackgroundTaskActivity } from "./subagentRuntime.ts";

describe("isBackgroundTaskActivity", () => {
  it("keeps stamped agents off the ordinary work log", () => {
    expect(isBackgroundTaskActivity({ agentKind: "agent" })).toBe(false);
  });

  it.each([{}, { agentKind: "background" }, { agentKind: "unknown" }, { agentKind: null }])(
    "keeps background, legacy and unrecognized stamps in the ordinary work log: %j",
    (payload) => {
      expect(isBackgroundTaskActivity(payload)).toBe(true);
    },
  );
});