This has been reported before. All these bug reports have been closed 22 days after the last reply without resolving the issue:
To summarize, there is a setting to Auto-Accept agent edits on Commit (see screenshot). However, this does not actually work, requiring the user to manually accept/undo individual agent edits, or press the keep all button when relevant.
Steps to Reproduce
Verify that the setting “Auto-Accept on Commit” is enabled.
Instruct an agent to edit a file.
Commit the changes in the git repository found in the Primary Side Bar.
Expected Behavior
“Automatically accept all changes when files are committed and no longer in the worktree”
Alternatively, it would be good for there to be a setting that could optionally turn off the tracking, accepting, and undoing of agent edits from the chat panel or file editor. At least for my workflow, interacting with the git diff, committing files to “accept” the changes, and discarding changes when I want to “undo” them is the better way to monitor agent edits.
Hey, thanks for the report and for the links to the previous threads.
I can see the screenshot with the setting, it’s enabled correctly. The team is aware of this issue. We fixed some cases in 2.4, but it looks like not all of them.
Can you check the Developer Console (Help > Toggle Developer Tools) after the commit and send any errors you see? In similar reports we often saw something like: