I think this is Broken Window fallacy[0], though.
If a business can create software cheaper, then it can charge its customers less for that software (or, conversely, if a business can use an AI to create bespoke software for cheaper than it would cost to buy that software) then the customer business saves money. It, in turn, can use that money to improve its offering to its customers. They, in turn, and so on.
Having cheaper things means everyone gets more things. The value created is created further down the supply chain.
[0] https://en.wikipedia.org/wiki/Parable_of_the_broken_window
I understand what you are saying, it just seems that this technology in contrast to any other productivity related technology is deflationary, because there is no alternative avenue to employ the idle labor. Not now, not in the future.
Where will people work on if both blue and white collar jobs go away? In brothels?