# agent: Render diffs for the edit file tool \(\#29234\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8366cd0b525f9646300cfe349799d413e42b8d7d

Requested commit: 8366cd0b525f9646300cfe349799d413e42b8d7d

Commit: 8366cd0b525f9646300cfe349799d413e42b8d7d

Tree: f62582a09a427383175076bcccf01a799fdd697f

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Render diffs for the edit file tool (#29234)

This PR implements the `ToolCard` for the edit file tool, which allow us
to display an editor with a diff in the thread view with the changes
performed by the model.

- [x] Fix buffer sometimes displaying empty
- [x] Stop buffer from scrolling together with the thread
- [x] Fix multibuffer header sometimes appearing
- [x] Fix buffer height issue
- [x] Implement "full height" expand button
- [x] Add "Jump To File" functionality
- [x] Polish and refine styles

Release Notes:

- agent: Added diff preview cards in the thread view for edits performed
by the agent.

---------

Co-authored-by: João Marcos <marcospb19@hotmail.com>
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
Co-authored-by: Agus Zubiaga <hi@aguz.me>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
```

## Parents

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

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