π OpenHands: AI-Driven Development
chore: remove specified sid (#5127)
Xingyao Wangff84a3eede3d
diff --git a/evaluation/discoverybench/run_infer.py b/evaluation/discoverybench/run_infer.pyindex 1b3a98c37e..7cfd2dbac7 100644--- a/evaluation/discoverybench/run_infer.py+++ b/evaluation/discoverybench/run_infer.py@@ -250,9 +250,6 @@ def process_instance(config = get_config(metadata)- # use a session id for concurrent evaluation- sid = 'ID_' + str(instance.instance_id)-# Setup the logger properly, so you can run# multi-processing to parallelize the evaluationif reset_logger:@@ -284,7 +281,7 @@ def process_instance(instruction += AGENT_CLS_TO_INST_SUFFIX[metadata.agent_class]# Here's how you can run the agent (similar to the `main` function) and get the final task state- runtime = create_runtime(config, sid=sid)+ runtime = create_runtime(config)call_async_from_sync(runtime.connect)initialize_runtime(runtime, instance.data_files)diff --git a/openhands/core/main.py b/openhands/core/main.pyindex 06dede3d5d..d55aa01751 100644--- a/openhands/core/main.py+++ b/openhands/core/main.py@@ -59,7 +59,8 @@ def create_runtime("""Create a runtime for the agent to run on.config: The app config.- sid: The session id.+ sid: (optional) The session id. IMPORTANT: please don't set this unless you know what you're doing.+ Set it to incompatible value will cause unexpected behavior on RemoteRuntime.headless_mode: Whether the agent is run in headless mode. `create_runtime` is typically called within evaluation scripts,where we don't want to have the VSCode UI open, so it defaults to True."""@@ -105,6 +106,8 @@ async def run_controller(Args:config: The app config.initial_user_action: An Action object containing initial user input+ sid: (optional) The session id. IMPORTANT: please don't set this unless you know what you're doing.+ Set it to incompatible value will cause unexpected behavior on RemoteRuntime.runtime: (optional) A runtime for the agent to run on.agent: (optional) A agent to run.exit_on_message: quit if agent asks for a message from user (optional)diff --git a/openhands/resolver/resolve_issue.py b/openhands/resolver/resolve_issue.pyindex 67eb20bee1..cbe8cfa6df 100644--- a/openhands/resolver/resolve_issue.py+++ b/openhands/resolver/resolve_issue.py@@ -199,7 +199,7 @@ async def process_issue()config.set_llm_config(llm_config)- runtime = create_runtime(config, sid=f'{issue.number}')+ runtime = create_runtime(config)await runtime.connect()async def on_event(evt):