What would be the use of an AI picking coffee beans if there is no one with a job to buy the coffee beans? There is an unresolved issue here for sure. Unless the machines are self-sustaining, there's not going to be much use for multi-billion dollar data-centers and millions of dollars in electricity bills and expensive robots if there is absolutely zero need for anyone to be using these systems.
Tesla has robots making cars, ok, who has a job therefore money to buy a car? Many, many of those who are out of work from the Tesla factory will no longer participate in the economy, and that Robot cop at the airport? That will be pretty lonely once people stop flying for their profession, which would be a large customer base for air travel.
A shock this big to the economy could happen quite quick and it would be fairly devastating.
I love to think about all this and play with thought experiments, we have very litte clue where this is going. I actually think Robots are more of a human problem than we realize. AI systems probably have, much, much less need for robots than biological species because we actually heavily depend on manipulating the environment for survival.