As long as the universe and time exist as we know it humans will never be perfect. And just like humans, AI will always have bugs, as its root creator will always be a flawed human. Whether there are unintended consequences of those bugs is another story. But since a human can never create AI to create AI better than a human, AI can never render the human mind obsolete.
Any AI not created with bad intentions will mostly be created to serve, defend, or improve our way of life and survival. These things work to support our purpose not destroy it.
But as Harari says (before he starts predicting), "it's impossible to have any good prediction for the coming decades."