This sentiment is constantly echoed on this site -- "just look at past times where tech removed jobs, this is no different". But the difference now is that we will soon have super-humans in terms of intelligence, dexterity (robots), and cost (cheaper, no healthcare, etc.).
I put the onus on the yay-sayers, can you name a job that a human can do that this new AI / robot cannot (or will not soon) do? Otherwise, I think its time to stop drawing false equivalence with agriculture, luddites, etc. Those were "narrow" machines, incapable of coding, writing a symphony, or working in a factory. In the next decade we're talking about building a better human.
I think a better example is to draw a parallel to horses. There is nothing left for them to do; we keep a few around for sport and entertainment, as a novelty. At one time, they were indispensible, but there's no rule that any organism (including humans) has infinite economically viable uses. At some point, everything worth doing (economically) might be automated to the point that human labor no longer makes sense (and hence we have high unemployment). There is no cosmic law written that "if jobs are replaced by tech, new jobs shall fill the space!" Just look at areas in the rust belt where literally nothing replaced the lost jobs -- there is just rampant unemployment, black market dealing / drugs, and despair.
That's a very different argument about a hypothetical future problem that may or may not ever actually materialize. (I'd argue given the current trajectory of AI it probably won't for the foreseeable future.)
But yes, if we develop artificial superinteligence to the level where humans become literally useless (e.g. we don't just automate 90% of everything, but 100%, and there's actually no tasks left in the world that humans can do better or cheaper than computers) then assuming humanity survives we'll need a different economic system for distributing the nearly-unlimited resources resulting from that. Probably in that situation the best thing to do would be to ask the AI to design our new economic system, since it would obviously do a better job at that than any human.