Agent Review showed 22 approvals for 7 real hunks in application.py
Unchanged surrounding lines painted green / required Keep
After undo + clean re-apply, the same edit correctly showed 7
This cause me to waste my time reviewing 15 dummy changes
The extra hunks most likely weren’t new changes from this edit. The review can end up comparing against an older version of the file, so changes still waiting for Keep/Undo from earlier turns in that chat, or anything else that touched the file while the agent was running (format-on-save, a formatter, a manual edit), get counted as part of the agent’s diff. That would explain why undo and re-apply showed the right 7.
To avoid it for now:
Keep or Undo a file’s pending changes before the next request that edits it, especially in a chat you’ve used over several days.
Avoid saving or formatting that file while the agent is working on it.
When a count looks off, check Source Control to see what actually changed.
Did application.py already have pending changes from earlier in that chat, or did something else touch it during the run? That tells us which case you hit.