The AI apologized profusely, agreed with my correction, and then confidently output the exact same broken code.