Barring massive violence against anyone even thinking about automating something, is there anything the could've done realistically?
We're at the same point with AI now, a bit worse really. People are using AI for _everything_ since it's practically free to shove it at any problem and get "meh" results.
Then they do the math whether "meh" basically for free is better than "decent to good" for a liveable wage.
With knitting machines there was an actual monetary and time cost to getting them running so the adoption was slower.
AI adoption is moving at crazy speeds with no regard for anything. Some of the uses will stick and people will lose jobs, some will be scaled back because "meh" quality isn't sustainable practice.
Boycotting products and companies that use AI in a stupid "meh" way will work eventually, but for some fields it's here to stay because it's just better. Programming is one of them, there's no going back to "stupid" Intellisense or plain tab complete when even a local AI model powered system can pre-fill whole functions with 80-100% accuracy in seconds.
Technology, not capitalism.
Some "value" will be lost, but other will be generated. People WILL lose their jobs as what they did can either be done by AI directly or an AI Agent can write a script/program to do some or all what they did.
[0] https://en.wikipedia.org/wiki/Luddite