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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
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);
});