Merge pull request #539 from clawdbot/fix/inline-directive-spacing

Preserve spacing after inline directives
This commit is contained in:
Peter Steinberger
2026-01-08 23:51:44 +00:00
committed by GitHub

View File

@@ -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);