From 83f586b93ba6cc86f7472f7b49db310bc37f06ab Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Tue, 24 Feb 2026 18:49:20 -0500 Subject: [PATCH] Gateway tests: cover exact do not do that stop matching --- src/gateway/chat-abort.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gateway/chat-abort.test.ts b/src/gateway/chat-abort.test.ts index b008d7cc591..f3aff5ebfe5 100644 --- a/src/gateway/chat-abort.test.ts +++ b/src/gateway/chat-abort.test.ts @@ -47,6 +47,7 @@ describe("isChatStopCommandText", () => { it("matches slash and standalone multilingual stop forms", () => { expect(isChatStopCommandText(" /STOP!!! ")).toBe(true); expect(isChatStopCommandText("stop please")).toBe(true); + expect(isChatStopCommandText("do not do that")).toBe(true); expect(isChatStopCommandText("停止")).toBe(true); expect(isChatStopCommandText("やめて")).toBe(true); expect(isChatStopCommandText("توقف")).toBe(true); @@ -55,6 +56,7 @@ describe("isChatStopCommandText", () => { expect(isChatStopCommandText("stopp")).toBe(true); expect(isChatStopCommandText("pare")).toBe(true); expect(isChatStopCommandText("/status")).toBe(false); + expect(isChatStopCommandText("please do not do that")).toBe(false); expect(isChatStopCommandText("keep going")).toBe(false); }); });