# Agent: Improved auto scroll location when using read-file tool \(\#58640\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8807ac4f3b0c995ac7fa36a590d4cc5473d356aa)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8807ac4f3b0c995ac7fa36a590d4cc5473d356aa

Requested commit: 8807ac4f3b0c995ac7fa36a590d4cc5473d356aa

Commit: 8807ac4f3b0c995ac7fa36a590d4cc5473d356aa

Tree: 03700ac75ac74f3e7ecac9ffc467a702d50dc6a9

Author: Liigo Zhuang

Committer: GitHub

## Message

```
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.
```

## Parents

- [8b5db3582cded894d99a23bea0d4414cc627ac0e](https://git.cafe/gitcafe/zed/commit/8b5db3582cded894d99a23bea0d4414cc627ac0e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8807ac4f3b0c995ac7fa36a590d4cc5473d356aa?format=markdown)
