This is a known issue. There’s a conflict between the Agent Review tab and the regular editor. If the same file is open in both places, changes can get reverted.
Quick workaround: close the Agent Review tab before opening files, or close the file in the regular editor when you’re working through Review.
No, I do not use Review. I just ask Agent to make changes and accept them. They when I open the file, I see those changes only if I press Ctrl+Z. So, changes are made, but when file is opened it is reverted to the version before the change. This does not happen if a file is opened in editor.
This sounds like a different bug. The agent saves the file, but when you open the IDE it looks like it reloads an older version from disk. The fact that Ctrl+Z brings the changes back suggests they were applied, then got reverted.
Can you check a couple things:
Does it happen with all files or only specific ones?
Is the file in git? Are there any uncommitted changes before the agent touches it?
Which agent mode are you using?
Can you reproduce it with a simple test file?
Let me know what you find. If it’s reliably reproducible, we’ll need to file a ticket with the team.
Does it happen with all files or only specific ones? - All files AFAICS
Is the file in git? Are there any uncommitted changes before the agent touches it? - No, not on git.
Which agent mode are you using? - Auto
Can you reproduce it with a simple test file? - Yes
It seems the culprit is SFTP extension (from Natizyskunk). When I disable it it works just fine. So, the solution is to deiable/remove SFTP extension. I’m gonna have to find something else instead of it.
SFTP Extenstion has “download on open” option, which if enabled overwrites changes made by the agent with the file version from remote source. So there is no need to disable/remove the extension, disabling that option is enough.