From b0c050582a4c8b84b7f8595b4808d10250ae49d2 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Sun, 25 Jan 2026 19:08:52 +0100 Subject: [PATCH] fix(coding-agent): update test expectations for trailing period in read tool messages --- packages/coding-agent/test/tools.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/coding-agent/test/tools.test.ts b/packages/coding-agent/test/tools.test.ts index 851633d2..5d097e2c 100644 --- a/packages/coding-agent/test/tools.test.ts +++ b/packages/coding-agent/test/tools.test.ts @@ -66,7 +66,7 @@ describe("Coding Agent Tools", () => { expect(output).toContain("Line 1"); expect(output).toContain("Line 2000"); expect(output).not.toContain("Line 2001"); - expect(output).toContain("[Showing lines 1-2000 of 2500. Use offset=2001 to continue]"); + expect(output).toContain("[Showing lines 1-2000 of 2500. Use offset=2001 to continue.]"); }); it("should truncate when byte limit exceeded", async () => { @@ -80,7 +80,7 @@ describe("Coding Agent Tools", () => { expect(output).toContain("Line 1:"); // Should show byte limit message - expect(output).toMatch(/\[Showing lines 1-\d+ of 500 \(.* limit\)\. Use offset=\d+ to continue\]/); + expect(output).toMatch(/\[Showing lines 1-\d+ of 500 \(.* limit\)\. Use offset=\d+ to continue\.\]/); }); it("should handle offset parameter", async () => { @@ -109,7 +109,7 @@ describe("Coding Agent Tools", () => { expect(output).toContain("Line 1"); expect(output).toContain("Line 10"); expect(output).not.toContain("Line 11"); - expect(output).toContain("[90 more lines in file. Use offset=11 to continue]"); + expect(output).toContain("[90 more lines in file. Use offset=11 to continue.]"); }); it("should handle offset + limit together", async () => { @@ -128,7 +128,7 @@ describe("Coding Agent Tools", () => { expect(output).toContain("Line 41"); expect(output).toContain("Line 60"); expect(output).not.toContain("Line 61"); - expect(output).toContain("[40 more lines in file. Use offset=61 to continue]"); + expect(output).toContain("[40 more lines in file. Use offset=61 to continue.]"); }); it("should show error when offset is beyond file length", async () => {