When using an AI to write code, can repeated corrections and partial rollbacks make it seem snarky or keep repeating a pattern it was told to avoid? What's going on there?
Does AI get weirdly resistant after you correct it a bunch?
Answers
It can look like resentment, but the conversation itself may be part of the problem. A long thread can contain old code, rejected approaches, corrections and newer instructions that don't all fit together. The model may latch onto an earlier pattern or miss which version is supposed to be current.
Try starting a fresh conversation with the current code, the desired behavior and a short list of things not to do. Include a small example of the expected output if you can. That won't guarantee a fix, but it removes a lot of conflicting context.
Reply to this answer
Snarky wording and bad compliance are two different things. A model can produce language that sounds irritated without actually feeling irritated. Likewise, repeating a mistake doesn't establish that it's deliberately trying to annoy you.
If the tone is the issue, ask for a neutral explanation. If the code is the issue, judge the actual changes and tests rather than trying to infer a motive from the wording.
Reply to this answer
Make the correction testable. Instead of just saying not to use a certain pattern, say what should happen instead and give an example that would fail under the old approach. Ask it to explain how the proposed change meets that requirement before applying it.
For code, a small test case or a clear description of the expected result can expose whether it really changed the behavior or just rearranged the same idea.
Reply to this answer
There may also be a genuine tension in the instructions. A requested rollback might undo something another requirement depends on, or a very specific fix might leave no clear way to satisfy the rest. Ask the model to identify conflicts rather than quietly guessing which instruction wins.
Reply to this answer
Add your answer
Answers are reviewed before publication.
hinge-free_zone:
For a partial rollback, it may help to specify exactly which parts should revert and which newer changes should stay.