The solution is to find ways to automate the process of code approval: more thorough tests and reviews, both made by AI.
I disagree. Its easier to think that you understand code when you read it than when you write it.
Code reviews have been notoriously neglected. In the most charitable cases, this was the result of being too bogged down with work or some kind of implementation minutia or time-consuming plumbing to have enough time to actually review code with enough care. That and you aren't necessarily rewarded for code reviews by mediocre companies, so there are perverse economic incentives. Which is disconcerting, because it creates a compulsion to produce without understanding, and understanding is more valuable than artifact.
Reading code is indeed more difficult, because the code's intent, composition, and architecture must be pieced together and inferred with the help of context (formalized languages are infamously bad at communicating intent and most code in the world is full of mixed and half-baked abstractions that further serve to obfuscate that intent, and intent is the measure). So a good code review of anything substantial involves thoughtful effort.
Now that LLMs can catch all sorts of trivial anti-patterns, the need for good judgement and reasoning is hopefully made more conspicuous, because as we know, vibe coders will continue to brush off code reviews, and mediocre programmers will continue to perform them poorly.
It helps when your industry-wide hiring process isn't an institutionalized speed test of ridiculous code golf problems that is memorized from a ridiculous book by every new generation of programmers.
It's almost like we should have been looking for people who can read code all along. But that would be crazy.
They may be harder to find, but what good are they when no one is reading code in-depth anymore?
I mean, in 2022, coders who can code without syntax highlighting and autocomplete were hard to find, but no one cared anyway because that was not a skill that was needed.
And, a few years from now, coders who can code without AI will likewise be hard to find, but no one will care because no one wants coders who can write code without AI.