AI prefers to add to existing code, so a badly designed part gets patched again and again. When the same issues keep returning, stop asking for fixes and ask for a design review instead.
Step 1: ask for the review.
"The issues below keep repeating. Look at the affected code from first principles and tell me how you would design it differently if starting from scratch. Cover only the part that's causing the problem, not the whole project. Explain what's wrong with the current design, what you'd change and what it would affect. Check the architecture reference first. Don't write any code yet.
The problem: [describe it here]"
Step 2: approve the design, then build.
"Go ahead with that design. Replace the old version of this part completely instead of running both. Deliver it as the next version number, and keep the previous version available."