From 27adabbeea9e83b90e631471979b3c845c9c04f2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 9 Jan 2026 00:51:05 +0100 Subject: [PATCH] test: cover reasoning directive spacing (thanks @joshp123) (#539) --- src/auto-reply/reply.directive.parse.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/auto-reply/reply.directive.parse.test.ts b/src/auto-reply/reply.directive.parse.test.ts index 91b321a99..e3a2fecfb 100644 --- a/src/auto-reply/reply.directive.parse.test.ts +++ b/src/auto-reply/reply.directive.parse.test.ts @@ -132,6 +132,12 @@ describe("directive parsing", () => { expect(res.cleaned).toBe("thats not /tmp/hello"); }); + it("preserves spacing when stripping reasoning directives before paths", () => { + const res = extractReasoningDirective("thats not /reasoning on/tmp/hello"); + expect(res.hasDirective).toBe(true); + expect(res.cleaned).toBe("thats not /tmp/hello"); + }); + it("preserves spacing when stripping status directives before paths", () => { const res = extractStatusDirective("thats not /status:/tmp/hello"); expect(res.hasDirective).toBe(true);