fix: align apply-patch v2 with codex semantics
This commit is contained in:
@@ -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: "" };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user