Explorar o código

chore: generate

GitHub Action hai 1 mes
pai
achega
2049af4d6f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/opencode/src/tool/apply_patch.ts

+ 1 - 1
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)