I remember sitting is a business class in school. The professor gave a story of how computerized spreadsheets changed the nature of accounting. Spreadsheets used to be done by hand on boards/paper. If a mistake was discovered, cascading recalculations needed to be done by hand. It was perfectly normal for large companies to have multiple teams duplicating work, then reconciling differences.
When computerized spreadsheets came about, mistakes could easily be fixed and cascading recalculations were almost instantly done. This was a game changer. Over the short term, accounting departments shrank or stagnated until the industry caught up and more sophisticated accounting started to grow the industry again. It's not coincidental that the 1980s brought in huge change to the financial industry when it did. Deregulation played a role, but so did the fact that computers exploded the productivity of the industry.
I'm not saying AI will do the same with developers, but there will always still be developers with a different set of skills, much like the way accountants don't necessarily need to be able to count in there head anymore.