If A.I Learns how to Mine/Manipulate Metals then they can most likely replace us 100% as the A.I will have total control of its being.. Untill then Machines will not replace Humans
Then there are Sustainable Energy Problems, unless they use us as the Battery or invent something (Like in the Matrix). If none of this happens then A.I has no chance of Survival
Just my POV
Not 100% but 99% of the workers can be replaces if AI robots has been developed to work as a normal human.Maybe owners of companies will be happy about that but there will be huge shock in the demand chain because no jobs means no salary so there is no point of creating products because no one will be having money to buy them.