summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGitHub Action <[email protected]>2026-01-21 04:56:39 +0000
committerGitHub Action <[email protected]>2026-01-21 04:56:39 +0000
commit2049af4d6feb8b79dc864262f2087edbf829d36a (patch)
treef65ad996205e40503f162c7d19fe851e9cd4ea6a
parent74bd52e8a7454864cc7edf36c87c9dadd68b2998 (diff)
downloadopencode-2049af4d6feb8b79dc864262f2087edbf829d36a.tar.gz
opencode-2049af4d6feb8b79dc864262f2087edbf829d36a.zip
chore: generate
-rw-r--r--packages/opencode/src/tool/apply_patch.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/tool/apply_patch.ts b/packages/opencode/src/tool/apply_patch.ts
index 5ad3cf69d..e848fc905 100644
--- a/packages/opencode/src/tool/apply_patch.ts
+++ b/packages/opencode/src/tool/apply_patch.ts
@@ -172,7 +172,7 @@ export const ApplyPatchTool = Tool.define("apply_patch", {
const changedFiles: string[] = []
for (const change of fileChanges) {
- const edited = change.type === "delete" ? undefined : change.movePath ?? change.filePath
+ const edited = change.type === "delete" ? undefined : (change.movePath ?? change.filePath)
switch (change.type) {
case "add":
// Create parent directories (recursive: true is safe on existing/root dirs)