ZAP has a config setting in the panel called “disable force overwrite” or something to that effect. You need to hit that or ZAP will simply continue undoing all the changes you’ve made.