How to prevent chatbot from reverting my edits?

When I manually edit the code then use the chatbot to make further edits, the chatbot often reverts my edits before applying its edits. How do I prevent this behavior?