When the time comes and enough people are affected, the necessary shift in consciousness will occur for substantial change. Ofcourse many will die, and the panet will live. That very possibly may be exactly what needs to happpen in order for the human race to grow beyond our underrated potential. If able to start anew having lost a majority to the imminent mass extinctions, while retaining all of our current knowledge and literature -- to learn from the obvious mistakes made.. human kind will reach those plateaus and can worry about things like AI taking over and making us obsolete.
I would hope we would not create something artificial that will have the power the destroy us or our values. I have a hard time imagining AI to be a possibility in technology. is consciousness and self awareness really inevitable given enough connections and data? I think we would continue using technology as we are by making the world a better place for all, more comfortable, reaching greater achievements because of it. as long as capitalism is supreme, our growth is limited and stifled. if we moved more towards collectivism and started to care for all who suffer, using technology for the purpose of helping those that have not had the opportunity to learn to help themselves, or don't have the bare essentials available to them to live. We'd definitely hold onto our human values and morality while advancing technology beyond imaginable probably.
sorry this is kinda all over the place but whatever.