We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbcec54 commit ea3b409Copy full SHA for ea3b409
1 file changed
openhands/controller/agent_controller.py
@@ -742,7 +742,10 @@ async def _step(self) -> None:
742
# Save the ID of the first event in our truncated history for future reloading
743
if self.state.history:
744
self.state.start_id = self.state.history[0].id
745
- # Don't add error event - let the agent retry with reduced context
+ # Add a NullObservation to the event stream to trigger the agent to retry
746
+ self.event_stream.add_event(
747
+ NullObservation(''),EventSource.AGENT,
748
+ )
749
return
750
raise
751
0 commit comments