fix(agent controller): misplaced runtime.connect that cause swebench workspace to fail (#4826)

This commit is contained in:
Xingyao Wang
2024-11-07 11:50:33 -06:00
committed by GitHub
parent 932de79154
commit dc0e223d1a

View File

@@ -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,