SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Fix: Increase timeout for bash session start (#1153)
Kilian Lieretc156767ca749
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex 06825e0c..f328211e 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -184,7 +184,11 @@ class SWEEnv:"""self._chook.on_start_deployment()asyncio.run(self.deployment.start())- asyncio.run(self.deployment.runtime.create_session(CreateBashSessionRequest(startup_source=["/root/.bashrc"])))+ asyncio.run(+ self.deployment.runtime.create_session(+ CreateBashSessionRequest(startup_source=["/root/.bashrc"], startup_timeout=10)+ )+ )self.set_env_variables({"LANG": "C.UTF-8", "LC_ALL": "C.UTF-8"})self.logger.info("Environment Initialized")