I’m closing this, since yesterday i felt a tangible improvement.
not sure if you have updated your apply models or something, but this stopped happening and in general code edits seemed better, less tool calling saying “oh there was an error when trying editing the code, let’s try a more targeted approach”
On 0.47 claude 3.7 seems to be even better in general in producing code.