🙌 OpenHands: AI-Driven Development
Fix: Correct rename detection in apply_patch to check per-diff instead of full patch (#10913)
Bogdan Petković399bf92ed127
diff --git a/openhands/resolver/send_pull_request.py b/openhands/resolver/send_pull_request.pyindex bf396546a9..f77ba7f540 100644--- a/openhands/resolver/send_pull_request.py+++ b/openhands/resolver/send_pull_request.py@@ -59,7 +59,7 @@ def apply_patch(repo_dir: str, patch: str) -> None:continue# Handle file rename- if old_path and new_path and 'rename from' in patch:+ if old_path and new_path and 'rename from' in diff.text:# Create parent directory of new pathos.makedirs(os.path.dirname(new_path), exist_ok=True)try: