fix(coding-agent): harden find cancellation and grep match formatting closes #3148

This commit is contained in:
Mario Zechner
2026-04-16 13:15:58 +02:00
parent b5007640d9
commit e9ba9e2ebc
4 changed files with 176 additions and 79 deletions

View File

@@ -557,6 +557,15 @@ describe("Coding Agent Tools", () => {
expect(output).toContain("kept.txt");
expect(output).not.toContain("ignored.txt");
});
it("should surface fd glob parse errors", async () => {
await expect(
findTool.execute("test-call-15", {
pattern: "[",
path: testDir,
}),
).rejects.toThrow(/error parsing glob|fd exited with code 1|fd error/i);
});
});
describe("ls tool", () => {