Agent: Improved auto scroll location when using read-file tool (#58640)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] 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
- [ ] Performance impact has been considered and is acceptable

Closes #58612

Release Notes:

- Agent: Improved auto scroll location when using read-file tool.
8807ac4f3bLiigo Zhuang committed on 6/5/2026, 11:01:48 AM· committed by GitHubparent8b5db35
1 file changedLine totals unavailable