It really depends.
Humanity generally avoids proactive intelligence and when we don't, we rarely execute said intelligence in the most foolish manor.
We are a reactive species. If we see a meteor barreling through space to destroy earth, we we'll invest all human resources toward building massive rockets to move earth almost completely out of the way. This impressive human achievement occurs moments before someone realizes the meteor was just a bug on the telescope lens.
I predict we'll become far more skilled with carbon capture quite rapidly. Anyone who has visited major cities in China recently knows that at least until we learn that it's causing drastic harm some other way, it seems to work.
I wonder if a coal plant can produce enough energy to power enough devices to leave the planet cleaner than before coal extraction began ... Who knows?
Eventually, I believe we'll be extinct from other free market related issues than global warming.
We'll run out of sand (happening much too quickly).
We'll power fusion reactors using coal because it will be our only reliable source of helium.
We'll consume all elemental metals by producing alloys and burn almost all other resources to extract pure metals through recovery methods
We'll turn all arable soil to dust by over fertilizing it
We'll cause mass lethargy by finding EV battery explosions numb the minds of people far worse than lead ever had and we just give up.
We are about to turn India into the next bastion of mass producing useless shit in the name of capitalism. Slavers like Modi will burn his own people as fuel to make money and if 50 million poor Indian people die from toxic air inhalation per year, he'll market it as a reduction of poverty. I will bet my life and the health of my children that the additional manufacturing capacity India will provide will almost entirely be dedicated to over production of items of no profit to the human species. Nearly everything will be products that simple create jobs and money. 99% or more will be landfill in 10 years. And if India ever becomes a developed nation, Africa or South America will be next.