π OpenHands: AI-Driven Development
Fix "let's get back on track" message on consecutive headless tasks (#7663)
Sam Salfi19b589f381d3
diff --git a/openhands/core/main.py b/openhands/core/main.pyindex 005afa8234..5df5c66be9 100644--- a/openhands/core/main.py+++ b/openhands/core/main.py@@ -148,7 +148,7 @@ async def run_controller()# start event is a MessageAction with the task, either resumed or new- if initial_state is not None:+ if initial_state is not None and initial_state.last_error:# we're resuming the previous sessionevent_stream.add_event(MessageAction(