π OpenHands: AI-Driven Development
fix(agent controller): misplaced runtime.connect that cause swebench workspace to fail (#4826)
Xingyao Wangdc0e223d1a84
diff --git a/openhands/core/main.py b/openhands/core/main.pyindex 5f6c27066c..009d160771 100644--- a/openhands/core/main.py+++ b/openhands/core/main.py@@ -123,6 +123,7 @@ async def run_controller(if runtime is None:runtime = create_runtime(config, sid=sid)+ await runtime.connect()event_stream = runtime.event_stream@@ -188,8 +189,6 @@ async def run_controller(event_stream.subscribe(EventStreamSubscriber.MAIN, on_event, sid)- await runtime.connect()-end_states = [AgentState.FINISHED,AgentState.REJECTED,