You may well be right about all this. However, there will always be some concern that if you feed your proprietary (let alone top secrest) code into someone else's AI solution, you may find that your competitors (or adversaries) get to see everything you're doing.
So, if someone codes highly profitable (or secret) code, it'll likely be a while before their employer has an inhouse AI solution that obviates much of their work, reducing the number of positions.
And those remaining positions, which may be AI engineering rather than coding, will likely make even more than coders make today.