Become a senior software engineer so that you have enough skills to use the AI to generate mostly functioning code and manually fix what it doesn't get correct?
I have somewhere a report from an engineer at GE in the 1950s, about how programming was about to become obsolete with the advent of FORTRAN.
He explained that the FORTRAN compiler would allow engineers to enter (slightly modified) equations directly into the computer and bypass the clerical tasks of specifying machine instructions, assigning addresses for code and storage and suchlike.
While many people were skeptical that computer-generated code could be as efficient as hand-written, his belief was that eliminating the bottleneck of programming a problem would increase utilization of the computer and provide a net win.
Anyway, history proved him right.