I worked at Codecademy - you're right the getting stuck part hurts people moving forward, we spent a lot of time trying to help people without outright spitting it out - it was less about runtime errors and more about the concept. I'm not sure that an AI spitting out an answer is the right solution to help people learn - we also thought about different forms (projects, embeds in articles, tutors, etc)
Another Codecademy alumn is building a different learn to code platform - he wrote many courses and was always interested in teaching and providing resources.
All in all, they problems were learning and education problems rather than technical.