But from a positive point of view, there is an entire food industry run by people making food for people. Food will be available. Growing food and bartering for goods and services are common among people. It's just that in the historical economic samples, there was relatively little wealth generated compared to today's economy.
People in the future may have a Basic Income provided by the state. They may spend their time "day-trading", "click-farming", "video-viralising", or "brigading-for-dollars". ^_^
Still, The Wealth of Nations is 1776 and The Communist Manifesto is 1848, and it shouldn't be a surprise that both look at bit naive with the benefit of hindsight.
Hopefully there's some equivalent work for the impact of AI. Might already exist, I've not actually read "Fully Automated Luxury Communism: A Manifesto", merely some of The Culture novels from whence the title seems to have been borrowed.
The Marxist response to automation is simply to let the workers have more leisure time.