Who says the AI will "know the intention of all the code, all the data models, know how users use the application intimately"? Are you aware that language models do in fact have token input/output limitations that will not go away? Are you aware that there is such a thing as diminishing returns when it comes to improvements due to increased number of parameters/training set size that are already evident? Are you aware that the training set of codex pretty much includes all available public code, so it will be impossible to scale it by a factor > 3 in the next several years at least?
Your assertions are full of wild assumptions backed by nothing.
As for photography, the fact is there has been no job apocalypse because your "friends and family" are "pumping out photos". And the point of your initial post, even if it was implicit, was "you are going to be unemployed in 5 years". This will have an impact on your dev flow and will be used by managers to try to reduce salary premiums for software engineering but your wild assumptions stated with so much confidence may never happen.
P.S: At this point, I find Intellicode actually slows me down, that's why it's permanently turned off. Current copilot will at most save me 2-3% of my working time each week if I am coding in a language it can actually do something in (it's worse than useless for Scala).