The apply model consistently breaks closing brackets in certain situations

I have a 2k+ lines react component, The apply models consistently break the brackets in the screenshot

It breaks them even when it applies changes in other parts of the module.

I’m note sure how it happens, i wasn’t able to reproduce it in an isolated and consistent way but it happens quite often when changing this component.

This is the request id: 6d6ba827-e64e-4883-80bd-dbcaee5c5fe2

i’m not sure if these informations will be enough.

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.