models get regularly confused with the pi harnesses' built-in edit tool; multiple edits rarely succeed. it was only QFN wondering about its implementation in reasoning traces that tipped me off that it wasn't the model's fault.
on bsky sune marcher recommended this extension to me, and it works beautifully.
https://pi.dev/packages/pi-hashline-edit-pro
most of the edit woes are gone. i have seen QFN batch 19+ replaces successfully in one operation this way.
@lritter In my experiments I feel like the models often want to fall back to terminal commands to read and write stuff. A lot of sed etc going on. As I typically mess with them in Zed, that requires approval to run terminal stuff, I often have to go "don't use terminal, just use tools".
What model are you running?