diff --git a/openhands/runtime/impl/local/local_runtime.py b/openhands/runtime/impl/local/local_runtime.py index 949526deba6d..63d773e8057c 100644 --- a/openhands/runtime/impl/local/local_runtime.py +++ b/openhands/runtime/impl/local/local_runtime.py @@ -190,7 +190,7 @@ async def connect(self): server_port=self._host_port, plugins=self.plugins, app_config=self.config, - python_prefix=[], + python_prefix=['poetry', 'run'], override_user_id=self._user_id, override_username=self._username, ) @@ -276,7 +276,7 @@ def _find_available_port(self, port_range, max_attempts=5): def _wait_until_alive(self): """Wait until the server is ready to accept requests.""" if self.server_process and self.server_process.poll() is not None: - raise RuntimeError('Server process died') + raise RuntimeError(f'Server process died with exit code {self.server_process.poll()}') try: response = self.session.get(f'{self.api_url}/alive')