Apply code update from chat creates a new file

I have the same issue with claude-3.5-sonnet but it works fine with gpt-4o.

When on Sonnet and using Chat, new suggestions always create a new tab and paste the whole code there. They are no longer applied to my code unless I switch models.