Not sure if this has been covered already but I didn’t find it in a search.
Sometimes applying diffs is almost instant, but often it can take the best part of a minute for a code change from chat to be applied, it will sit there a long time thinking about it with everything highlighted in grey. Then it will slowly apply lines a second or two at a time. During this, the IDE’s autosave continues to run, and so partial edits can get saved.
For platforms that auto-reload when files are changed (e.g. Flask/Werkzeug, Vite etc.) this can hover somewhere between imminent frustration, where the platform declares an error and bails out, forcing you to restart it, and dangerously data-mangling.
Is there any way (I don’t know VS Code internals well enough) that you could suspend the auto-save during apply, and then restore the state once we’re at Accept/Reject? That way only complete changes would get reloaded and executed.