# agent2: Always finalize diffs from the edit tool \(\#36918\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b249593abee31e420fe447f6b551b5e2130b1bc8

Requested commit: b249593abee31e420fe447f6b551b5e2130b1bc8

Commit: b249593abee31e420fe447f6b551b5e2130b1bc8

Tree: aeb28b82986f6421d0d88ef40a851ed54429e112

Author: Ben Brandt

Committer: GitHub

## Message

```
agent2: Always finalize diffs from the edit tool (#36918)

Previously, we wouldn't finalize the diff if an error occurred during
editing or the tool call was canceled.

Release Notes:

- N/A

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
```

## Parents

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

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