I think my job is reasonably safe simply because "AI" is never going to be as effective at it as "me + AI". Someone has to be there to understand the problem in human terms in order to know what to tell the AI to do. I've recently started pushing myself to take a more Systems Thinking approach to solving problems, and to start using AI in my work, precisely because I see this as a change that's coming. It is inevitable. I might as well embrace it.
Also, and maybe this is selfish, I suspect fewer people are going to see tech as a good career option in the very long term (10+ years). The experience I have now puts me ahead right now, but if there are fewer devs entering the industry in a decade it'll keep me in work for a long time. I'm think (hope!) I'm going to be OK.
If I was a junior right now, or a student, I would see AI as a much greater threat.