It's the same thing at a worker cooperative, or for that matter at a heavily unionized workplace: the workers have no incentive to automate themselves out of a job, but may collectively understand that if they don't, the business will go under and they'll all be left without jobs.
I think co-ops can actually be a good way of handling technology replacing manual labor. The profits made from the technological advancements can be put in a dedicated trust of the co-op that is focused on retraining the workers for new positions. With that you could handle inevitable technological progress.
That ownership is contingent on you working for the co-op, which doesn't seem very likely if a robot took your job.
That said, there are a couple ways to work around this:
1. Flip the ownership model to a customer cooperative (or a customer/worker hybrid cooperative), thus moving the decisionmaking - and the incentives as a result - from workers to customers (which can and often do overlap). Customer cooperatives are a proven model here in the US (credit unions are probably the most widely known example).
2. Use automation to multiply labor rather than replace it. Replacing a drivers with cars at a 1:1 ratio obviously doesn't leave much room for drivers, but replacing them at a 1:10 ratio (or somesuch) can mean converting drivers into owner-operators of "squads" of cars. This depends on there being enough of a customer base to warrant this multiplication; for this to work, it's best paired with a massive expansion of that customer base (adding a bunch more cities, for example, or extending service areas, or slashing fares).
Software developers also work on tools that make software development easier.