async def is_agent_loop_running(self, sid: str) -> bool:
        """Check if an agent loop is running for the given session ID."""
        sids = await self.get_running_agent_loops(filter_to_sids={sid})
        return bool(sids)
Check if an agent loop is running for the given session ID.
openhands/server/conversation_manager/conversation_manager.py