fix: align apply-patch v2 with codex semantics

This commit is contained in:
Codex
2026-05-29 18:30:43 +00:00
parent 0817540a01
commit 4c8926fd7f
4 changed files with 170 additions and 48 deletions
+1
View File
@@ -436,6 +436,7 @@ export class GhVirtualFileExecutor implements ApplyPatchV2Executor {
}
if (operation === "delete") {
const path = this.canonical(args[0] ?? "");
if (!this.files.has(path)) return { exitCode: 1, stdout: "", stderr: `virtual file not found: ${path}\n` };
this.files.delete(path);
return { exitCode: 0, stdout: "", stderr: "" };
}