You're reaching from another, very narrowly scoped angle, but that's a wider problem with technology and automation. The economists since mid-20th century are talking about the UBI (universal basic income) to fight this problem:
- https://en.wikipedia.org/wiki/Universal_basic_income (wikipedia link)
- https://www.youtube.com/watch?v=22eQ9iLBfY4 (Varoufakis explains the concept very well)
Of course, that's easier said than done a non-fully, air-gaped controlled economy.