File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
codetide/mcp/tools/patch_code Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,8 @@ def parse(self) -> None:
278278
279279 # ---------- DELETE ---------- #
280280 if path := self .read_str ("*** Delete File: " ):
281+ if self .rootpath is not None :
282+ path = str (self .rootpath / path )
281283 if path in self .patch .actions :
282284 raise DiffError (f"Duplicate delete for file: { path } " )
283285 if path not in self .current_files :
@@ -287,6 +289,8 @@ def parse(self) -> None:
287289
288290 # ---------- ADD ---------- #
289291 if path := self .read_str ("*** Add File: " ):
292+ if self .rootpath is not None :
293+ path = str (self .rootpath / path )
290294 if path in self .patch .actions :
291295 raise DiffError (f"Duplicate add for file: { path } " )
292296 # The check for file existence is now handled in `process_patch`
You can’t perform that action at this time.
0 commit comments