From a36f27b0b103662e75818dcb9191932bf916d164 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Tue, 24 Feb 2026 18:44:26 -0500 Subject: [PATCH] Auto-reply tests: assert exact do not do that stop matching --- src/auto-reply/reply/abort.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/auto-reply/reply/abort.test.ts b/src/auto-reply/reply/abort.test.ts index b35937a6003..76923175632 100644 --- a/src/auto-reply/reply/abort.test.ts +++ b/src/auto-reply/reply/abort.test.ts @@ -142,6 +142,7 @@ describe("abort detection", () => { "stop dont do anything", "stop do not do anything", "stop doing anything", + "do not do that", "please stop", "stop please", "STOP OPENCLAW", @@ -172,7 +173,7 @@ describe("abort detection", () => { } expect(isAbortTrigger("hello")).toBe(false); - expect(isAbortTrigger("do not do that")).toBe(false); + expect(isAbortTrigger("please do not do that")).toBe(false); // /stop is NOT matched by isAbortTrigger - it's handled separately. expect(isAbortTrigger("/stop")).toBe(false); }); @@ -192,7 +193,8 @@ describe("abort detection", () => { expect(isAbortRequestText("/stop@openclaw_bot", { botUsername: "openclaw_bot" })).toBe(true); expect(isAbortRequestText("/status")).toBe(false); - expect(isAbortRequestText("do not do that")).toBe(false); + expect(isAbortRequestText("do not do that")).toBe(true); + expect(isAbortRequestText("please do not do that")).toBe(false); expect(isAbortRequestText("/abort")).toBe(false); });