Hopefully the oil and coal will all run out before the AI figures out how to turn people into electricity?
Personally I find it very strange, and I say this as someone who makes a living from automating tasks which previously required human work, that we are so intent on replacing such an abundant resource (people who want work) with such an increasingly scarce one (technology and energy products which are heavily reliant on fossil fuels both for production and operation). Especially given that the side-effect of using the abundant resource is that we create more wage-earning customers to fuel our economies, and the side-effect of using the increasingly scarce resource is that we degrade and destabilize our ecosystem to a dangerous extent. From the point of view of any given company's shareholders I'm sure it makes perfect sense for the time being, but I don't think it really makes much sense for anyone else involved. A few top tier technical experts, maybe, but not even as many of those as we currently have. Where I work we've made maybe half a dozen technical support staff redundant this year (to be replaced by e-learning, self-serve information products, and increased automation in our helpdesk and data transfer processes) and I'm sure there'll be more of that sort of thing to come.
Maybe once all we clever technology types realize that it's also our own jobs we're making redundant, and not just those of the lower pay grades, we'll alter our opinions of the benefits of this kind of technological development. Even then, I think altering our habits to match those altered opinions will be the real challenge.