Use diff summary for action log stats instead of iterating hunks (#61272)

The diff already has a constant-time accessor to get the counts of
added/removed rows, use that instead of iterating hunks on the
foreground.

Release Notes:
- Improved performance in agent threads with many file changes.
ccae8950deCole Miller committed on 7/20/2026, 4:17:02 PM· committed by GitHubparentb67d15f
3 files changedLine totals unavailable