From ecfd6cfa73f10c2659c03bbaf59e83c992dd9721 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 18 Apr 2026 23:29:08 +0100 Subject: [PATCH] test: drop redundant apply patch absolute write --- src/agents/apply-patch.test.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/agents/apply-patch.test.ts b/src/agents/apply-patch.test.ts index 68eae0838bc..5cb2fa9bcf3 100644 --- a/src/agents/apply-patch.test.ts +++ b/src/agents/apply-patch.test.ts @@ -173,20 +173,6 @@ describe("applyPatch", () => { }); }); - it("allows absolute paths within cwd by default", async () => { - await withTempDir(async (dir) => { - const target = path.join(dir, "nested", "inside.txt"); - const patch = `*** Begin Patch -*** Add File: ${target} -+inside -*** End Patch`; - - await applyPatch(patch, { cwd: dir }); - const contents = await fs.readFile(target, "utf8"); - expect(contents).toBe("inside\n"); - }); - }); - it("deletes the resolved target path", async () => { const memory = createMemoryPatchSandbox({ "delete-me.txt": "x\n",