# agent: Allow clicking on the read file tool header to jump to the exact file location \(\#33161\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 089ce8f6aa1e6534d71fd1eeab800f069d81c755

Requested commit: 089ce8f6aa1e6534d71fd1eeab800f069d81c755

Commit: 089ce8f6aa1e6534d71fd1eeab800f069d81c755

Tree: 30b6ab0324a442cd4ea9664856941eab081bf340

Author: Max Frai

Committer: GitHub

## Message

```
agent: Allow clicking on the read file tool header to jump to the exact file location (#33161)

Release Notes:

- Allow clicking on the header of the read file tool to jump to the
exact file location

When researching code or when the Agent analyzes context by reading
various project files, the read file tool is used. It usually includes
line numbers relevant to the current prompt or task. However, it’s often
frustrating that the read file header isn’t clickable to view the
corresponding code directly. This PR makes the header clickable,
allowing users to jump to the referenced file. If start and end lines
are specified, it will navigate directly to that exact location.


https://github.com/user-attachments/assets/b0125d0b-7166-43dd-924e-dc5585813b0b

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
```

## Parents

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

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