okay turns out i was using it in aider with wrong edit format in editor mode, i switched to editor edit format it has not failed so far.