From c8062e8ab6653b2bfba4a01b5bc38655baca0987 Mon Sep 17 00:00:00 2001 From: Graham Neubig Date: Wed, 1 Jan 2025 15:28:42 +0900 Subject: [PATCH] Update openhands/resolver/issue_definitions.py --- openhands/resolver/issue_definitions.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/openhands/resolver/issue_definitions.py b/openhands/resolver/issue_definitions.py index e3948fe8f95a..5a7a9b07e96a 100644 --- a/openhands/resolver/issue_definitions.py +++ b/openhands/resolver/issue_definitions.py @@ -747,19 +747,6 @@ def guess_success( """Guess if the issue is fixed based on the history, issue description and git patch.""" last_message = history[-1].message issues_context = json.dumps(issue.closing_issues, indent=4) - # If no git patch was provided, try to extract it from history - if git_patch is None: - for event in reversed(history): - # Look for git diff command output - if ( - hasattr(event, 'content') - and event.content - and 'diff --git' in event.content - and isinstance(event, CmdOutputObservation) - and event.exit_code == 0 - ): - git_patch = event.content - break success_list = [] explanation_list = []