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
This commit is contained in:
Oleksiy Syvokon 2025-07-16 18:46:13 +03:00 committed by GitHub
parent 8ee5bf2c38
commit e339566dab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 145 additions and 2 deletions

1
Cargo.lock generated
View file

@ -779,6 +779,7 @@ dependencies = [
"collections",
"component",
"derive_more 0.99.19",
"diffy",
"editor",
"feature_flags",
"fs",