diff --git a/evaluation/utils/shared.py b/evaluation/utils/shared.py index 33342a4c93..7da0e1a596 100644 --- a/evaluation/utils/shared.py +++ b/evaluation/utils/shared.py @@ -573,6 +573,7 @@ def get_default_sandbox_config_for_eval() -> SandboxConfig: # large enough timeout, since some testcases take very long to run timeout=300, api_key=os.environ.get('ALLHANDS_API_KEY', None), + runtime_startup_env_vars={'NO_CHANGE_TIMEOUT_SECONDS': '30'}, remote_runtime_api_url=os.environ.get('SANDBOX_REMOTE_RUNTIME_API_URL'), keep_runtime_alive=False, remote_runtime_init_timeout=3600, diff --git a/openhands/runtime/action_execution_server.py b/openhands/runtime/action_execution_server.py index 3aa4b2d15b..f27fb945f6 100644 --- a/openhands/runtime/action_execution_server.py +++ b/openhands/runtime/action_execution_server.py @@ -225,7 +225,7 @@ class ActionExecutor: work_dir=self._initial_cwd, username=self.username, no_change_timeout_seconds=int( - os.environ.get('NO_CHANGE_TIMEOUT_SECONDS', 30) + os.environ.get('NO_CHANGE_TIMEOUT_SECONDS', 10) ), max_memory_mb=self.max_memory_gb * 1024 if self.max_memory_gb else None, )