That's a good point. However, it could also happen that a good chunk of frontend work gets folded directly into the product owner/manager role. Hard to say which way things could go but it's interesting to speculate.
Yes, while I agree AI code gen will be disruptive, I have a very hard time believing PMs or UX will soon be able to "talk to AI" and get an actual logical product out of that. The subset I've worked with certainly wouldn't. Feels like possibly the engineers will do more PM work.