Auto-reply: add /models directive regression test

This commit is contained in:
Clawdbot Bot 2026-01-25 09:39:22 +01:00 committed by Peter Steinberger
parent 9520b6d970
commit 4ab568cede

View File

@ -17,6 +17,12 @@ describe("extractModelDirective", () => {
expect(result.cleaned).toBe("/models gpt-5");
});
it("does not strip /models when embedded in text", () => {
const result = extractModelDirective("please show /models openai");
expect(result.hasDirective).toBe(false);
expect(result.cleaned).toBe("please show /models openai");
});
it("extracts /model with provider/model format", () => {
const result = extractModelDirective("/model anthropic/claude-opus-4-5");
expect(result.hasDirective).toBe(true);