That's a great question. And one that's really hard to answer with any certainty. I mean, who's to say how much more AI is going to advance in, say, 5 years? Or 10 years?
I'm not at a "freak out and do something nutty" stage with any of this yet (especially since my day-job involves progressively less and less hands-on coding over the last few years anyway). But I'm honestly not joking when I say the thought has occurred to me to attend the local community college and get a new degree in something that seems less likely to get automated away. That could range from something "blue collar" / manual like welding or CNC machining, to just a different "white collar" field like maybe "fire science" or "public safety administration."
I don't know for sure that I'm going to do any of that, but I've gone as far as visiting the webpage for said community college and poking around at what some of the available options are and giving at least superficial thought to planning out how I might approach something like this.