I agree with your first paragraph, a majority of corporate programming jobs probably suck. However I'm not convinced that AI will reduce demand for these positions to in a major way. It will instead change the required workflow. I've got a couple of industrial revolution points I'd like to share;
The Jevons Paradox addresses demand concerns. Software is now theoretically faster and cheaper. More projects are now financially viable, since total unit costs are down! The other side is the Automation Paradox, where now even more specialised knowledge is required to fix and maintain AI systems.
Your disenfranchisement is valid, however fortunately (or unfortunately?) do-nothing soulless corporate programming jobs have a good chance of sticking around, if in a changed way.