I think the tasks that AI will take first are broadly the tasks where jr devs would not be gaining much useful experience anyway. For example, the rote work involved in upgrading an application from Angular/React X to X+1. The available AI tools are still very bad at novel tasks, architecture/design, etc.