# agent: Limit the size of patches generated from user edits \(\#34548\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e339566dab4d64431a57bc828615cef581c707fe

Requested commit: e339566dab4d64431a57bc828615cef581c707fe

Commit: e339566dab4d64431a57bc828615cef581c707fe

Tree: d5035c91686142373b705a287d12c65da50a5601

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
agent: Limit the size of patches generated from user edits (#34548)

Gradually remove details from a patch to keep it within the size limit.
This helps avoid using too much context when the user pastes large
files, generates files, or just makes many changes between agent
notifications.

Release Notes:

- N/A
```

## Parents

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

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