You don't even need to look at the Soviets. Life for the average person in Britain became worse between 1760 until about 1920. That meant about 3 generations of people were lost.
I'm super happy about this idilic AI future my great grandchildren will enjoy...
Sorry, bad phrasing!
They were put to work in new roles enabled by technological advancements: wielding mass manufactured rifles and operating artillery.
This has played out over and over throughout history whenever a large fraction of the population suddenly becomes surplus to requirements.
They never get to enjoy utopia. They are expended in warfare or low value forced labour until the labour pool once again matches the requirements.