Disagree. AI has is taking all the parts that remove the fun. Now people can truly have fun with that which they find interest in, because there's a way to avoid the parts they're not interested in engaging with, with little to no consequence.
Now I can safely hand this all off to Claude while leisurely browsing e621. The unlock is incredible, and I wouldn't trade this velocity for anything.
That assuming what you've said is true, which is not. In a work environment, you're forced to optimize whatever that there is, regardless if it's fun or not.
Moreover, there is always fun to be had even in tasks you've found boring beforehand.
An area where I realized that was feature engineering: Early ML systems had handcrafted features that were fed into the model. There were relatively arbitrary and the number of features you could reasonably generate that way was tiny, compared to modern systems - but it gave you some understanding what input the model got exactly and you could use it to clear up some failure modes, or be certain that the model learned something that could not possibly make sense.
Then the idea was to automate feature generation. What's not to like? Except that in practice, the automated features simply seem to become part of the blackbox and are not available anymore for understanding.
No one is stopping you from doing what you enjoy.
But lets get real here: no one asked for programming to be the way it is. It just too hard, too menial, too esoteric, too particular and too anal for 99% of the population. That's great if you're one of the 'wizards' and can charge huge amounts of money to make software that isn't exactly wizardry and more like just regular stuff people need for their lives and businesses. The quality and nature of software mostly reflects the mentality of those who wrote it, instead of those who use it. Multi-million dollar software projects continue to fail decades after the Mythical Man Month was written.
If programming as we know it disappears, few will mourn its loss, having suffered its consequences. Most people, including most programmers will just move onto the next great thing, whatever that is, and be empowered by it.
Meanwhile, welcome to what technology has been doing to everyone else for the last 100+ years.
Software is going to go through the same adaptation and exaptation process as military aviation.