"Apply" is randomely removing code that is not returned by the AI response

The AI respose requested changing a specific part of my code, yet Apply tried changing other parts and removing code, it was very annoying to CTRL+Z and reverting all changes and applying the actual updates manually

Please fix asap

2 Likes

having the exact same issue! Are you on a paid subscription and using the service or your own api key? Don’t understand how they cant have a “undo” feature for this…

Paid subscription, I actually stopped using the Apply alltogether, I lost faith in it completely after it removed code and I only found out in a client demo

I had to go back to git history and apply the updates again

Really dangerous bug

1 Like

Someone pointed out in another post that apply is using gpt 3.5 turbo to apply the diff. This explains issues like this which I’ve also seen.

While I disagree that it’s dangerous, it’s no more so than any code review, it could be improved greatly by better UX on applying the diff. Often the chunks are too large. Something closer to git’s tui would be great. Probably a pretty difficult problem though.