Just like in past history.
Yes, it sucks, for software engineers, those in the past, and those in the future. As long as you and others fall for the straw man perhaps you and others will get more and more tricked and hurt, misplacing your aggression and hatred on each other rather than those receiving most of the extracted value.
Yes in some cases, but the reduced costs also allow lower prices which benefits all consumers of whatever product is being produced. At least for those products where there is a competitive market.
It's not fun to think of a future where knowledge workers become irrelevant in society and we're back to just physical work and managerial elites.
The economist John Keynes predicted almost 100 years ago that technological advances would lead to a 15 hour workweek. If AI now makes you 5x as productive, then why aren't you working 1 day a week for the same pay? Why didn't Keynes' vision come true.
governments implemented (and still implement) keynesian economics, and it has turned out to be a very bad idea and he was very very wrong.
I don't believe it is that black and white. Yes, automation eliminates some jobs, but overall moves everyone (on average) further up the productivity line, which improves lives, again, on average.
That is why we live like kings now compared to people of the past.
But circling back to the point, if AI does the same thing, eliminates expensive manual coding and other similar work, that is essentially the same thing we've been doing to other people for decades.