test(gateway): align safe open error code

This commit is contained in:
Vincent Koc
2026-03-24 12:31:11 -07:00
parent 87919dec2c
commit 698c02e775

View File

@@ -415,7 +415,7 @@ describe("agents.create", () => {
it("does not persist config when IDENTITY.md append is rejected after preflight", async () => {
mocks.appendFileWithinRoot.mockRejectedValueOnce(
new SafeOpenError("path escapes workspace root", "path escapes workspace root"),
new SafeOpenError("path-mismatch", "path escapes workspace root"),
);
const { respond, promise } = makeCall("agents.create", {