From 7fde9493c7c3c1a249279eb8db4ca5abf8dfddc0 Mon Sep 17 00:00:00 2001 From: can1357 Date: Thu, 13 Aug 2026 01:34:31 +0200 Subject: [PATCH] test(prompts): aligned tool-inventory assertions with compressed verification wording --- .../test/system-prompt-inventory.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/coding-agent/test/system-prompt-inventory.test.ts b/packages/coding-agent/test/system-prompt-inventory.test.ts index ba2ededd4..095a57ae9 100644 --- a/packages/coding-agent/test/system-prompt-inventory.test.ts +++ b/packages/coding-agent/test/system-prompt-inventory.test.ts @@ -702,8 +702,8 @@ describe("system prompt tool inventory", () => { }) ).systemPrompt.join("\n\n"); - expect(withoutBrowser).not.toContain("drive it in `browser`"); - expect(withoutBrowser).not.toContain("drive it in browser"); + expect(withoutBrowser).not.toContain("browser-drive with `browser`"); + expect(withoutBrowser).not.toContain("browser-drive with browser"); expect(withoutBrowser).toContain("TUI/CLI"); expect(withoutBrowser).toContain("behavioral test or smoke test"); @@ -722,7 +722,7 @@ describe("system prompt tool inventory", () => { }) ).systemPrompt.join("\n\n"); - expect(withBrowser).toContain("drive it in `browser`"); + expect(withBrowser).toContain("browser-drive with `browser`"); // A browser-only session still needs the smoke-test fallback for // native-desktop surfaces (no computer tool). expect(withBrowser).toContain("behavioral test or smoke test"); @@ -740,12 +740,12 @@ describe("system prompt tool inventory", () => { inlineToolDescriptors: false, }; const withoutTodo = (await buildSystemPrompt({ ...opts, toolNames: ["read", "bash"] })).systemPrompt.join("\n\n"); - expect(withoutTodo).not.toContain("Todo calls NEVER travel alone"); - expect(withoutTodo).not.toContain("batch every todo op"); + expect(withoutTodo).not.toContain("Todo calls NEVER alone"); + expect(withoutTodo).not.toContain("batch each with turn's real calls"); const withTodo = (await buildSystemPrompt({ ...opts, toolNames: ["read", "bash", "todo"] })).systemPrompt.join( "\n\n", ); - expect(withTodo).toContain("Todo calls NEVER travel alone"); + expect(withTodo).toContain("Todo calls NEVER alone"); }); });