Closed nanjiangwill closed 1 month 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 was closed because it has been stalled for over 30 days with no activity.
Is there an existing issue for the same bug?
Describe the bug
When agent calls
edit_file_by_replace
, they will be provided withto_replace
, I noticed that sometimes agent does not receive correctto_replace
and it seems it was "formatted" by LLM.For example, when the actually
to_replace
isthe
to_replace
used inedit_file_by_replace
changed towhere you can see the first new line token is removed
When I change the LLM to claude, this bug disappeared.
I am wondering if the process of getting
to_replace
depends on LLM?Current OpenHands version
Installation and Configuration
Model and Agent
Model: GPT-4o Agent: CodeActAgent
Operating System
Mac OS
Reproduction Steps
Run
Logs, Errors, Screenshots, and Additional Context
No response