From 65907f4ee5cf23cd5801d9b12a2a4323d432bfc5 Mon Sep 17 00:00:00 2001 From: wdawdwa <2864460459@qq.com> Date: Sun, 23 Aug 2026 11:46:53 +0800 Subject: [PATCH] test: update goose-cli redaction test to explicit sentinel --- test/goose-cli.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/goose-cli.test.ts b/test/goose-cli.test.ts index 79d8798..1c6610d 100644 --- a/test/goose-cli.test.ts +++ b/test/goose-cli.test.ts @@ -61,7 +61,9 @@ test("process logging redacts only prompts and trusted validation commands", () "[goose prompt: 13 chars]" ]); assert.deepEqual( - redactProcessArgs(["run", "sh", "-lc", "npm ci && npm test"], "isolated repository validation"), + redactProcessArgs(["run", "sh", "-lc", "npm ci && npm test"], "isolated repository validation", { + redactLastAsValidationCommand: true + }), ["run", "sh", "-lc", "[validation command: 18 chars]"] ); });