Closed a6kme closed 3 days ago
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for over 30 days with no activity.
Summary I was playing with OpenHands and noticed that agent makes suboptimal decisions when using
edit_file_by_replace
. Here is an instance where it goes into an suboptimal route trying to fix a test file. The issue can be summarised as below.import requests_mock
edit_file_by_replace
commands repeatedly with bad arguments forto_replace
.@pytest.fixture def client(): with app.test_client() as client: yield client
def test_full_ssrf(client, requests_mock):
Mock the external request
"""
edit_file_by_replace('test.py', to_replace="from flask import Flask", new_content=EDITED_CODE)