Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

454 B
Raw Blame
import assert from "node:assert/strict";
import test from "node:test";

import { ChatHistoryClearBoundary } from "../src/features/chat/utils/chat-history-clear-boundary.ts";

test("a history clear invalidates work captured before it", () => {
  const boundary = new ChatHistoryClearBoundary();
  const captured = boundary.capture();
  assert.equal(boundary.capture(), captured);
  boundary.advance();
  assert.notEqual(boundary.capture(), captured);
});