I don't know how much substance there is to discuss here. It pretty much hinges on how you think AI will develop over the coming decades. I am skeptical that software development will be automated away anytime soon, especially since the actual writing of code is just one part of the job. I recall an Economist article several years back arguing that jobs are less automatable the more varied they are. For this reason custodians should be among the last to go, the logic being that a given custodian does so many different maintenance tasks that it would be impractical for a bot to replace them.
Software development seems similar. You're constantly pivoting between different and shifting problems. Most of the impressive AI demonstrations like image recognition or playing Go are really about getting good at a single well-defined task. We seem to be very far away from the kind of adaptibility required to automate away developers (though perhaps the CS degree will devalue as more people pursue it).
It's also unclear to me how exactly philosophy is better preparation. My own experience with academic philosophy is limited, but from what I can tell its main selling point is that it teaches you to examine things in a critical way that's very aware of the argument in question, the assumptions made, and the structure the argument sits in. My experience in math (which I pursued much more) was similar, and I imagine that most good CS programs teach similar skills?
"Study philosophy" here seems like a catchy (and perhaps poor) proxy for "make sure you can reason about stuff outside a narrow programming bubble". But that's always been good advice.