mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 15:28:14 -05:00
remove extra log
This commit is contained in:
@@ -73,15 +73,11 @@ def swe_agent_edit_hack(bash_command: str) -> str:
|
||||
if 'edit' in bash_command:
|
||||
# edit\s(\d+):(\d+)([\s\S]*)end_of_edit
|
||||
# replace
|
||||
bash_command_before = bash_command
|
||||
bash_command = re.sub(
|
||||
r'edit\s(\d+):(\d+)([\s\S]*)end_of_edit',
|
||||
r'edit \1:\2 <<EOF\3EOF',
|
||||
bash_command,
|
||||
)
|
||||
logger.info(
|
||||
f'SWE-agent edit hack applied:\n- Before:\n{bash_command_before}\n- After:\n{bash_command}'
|
||||
)
|
||||
return bash_command
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user