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 15:46:13 +00:00
committed by GitHub
parent 8ee5bf2c38
commit e339566dab
3 changed files with 145 additions and 2 deletions
Generated
+1
View File
@@ -779,6 +779,7 @@ dependencies = [
"collections",
"component",
"derive_more 0.99.19",
"diffy",
"editor",
"feature_flags",
"fs",