Fix mismatched excerpts in split agent diff (#55629)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed excerpts not matching in the agent diff when in the split view.
8bf57f8dd6Cole Miller committed on 5/4/2026, 11:56:06 AM· committed by GitHubparent5894f5d
2 files changedLine totals unavailable