Commit f3d0f4e
committed
fix: reduce redundant context in apply_diff error messages
- Remove redundant "Search Content" section that repeats what the model just sent
- Remove verbose "Original Content" section that consumes context window space
- Keep only the essential "Best Match Found" section for debugging
- Maintains similarity score, threshold, and helpful tip to use read_file
Fixes #57951 parent a92ee56 commit f3d0f4e
File tree
2 files changed
+2
-28
lines changed- src/core/diff/strategies
2 files changed
+2
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | 618 | | |
632 | 619 | | |
633 | 620 | | |
| |||
644 | 631 | | |
645 | 632 | | |
646 | 633 | | |
647 | | - | |
| 634 | + | |
648 | 635 | | |
649 | 636 | | |
650 | 637 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | 524 | | |
538 | 525 | | |
539 | 526 | | |
| |||
542 | 529 | | |
543 | 530 | | |
544 | 531 | | |
545 | | - | |
| 532 | + | |
546 | 533 | | |
547 | 534 | | |
548 | 535 | | |
| |||
0 commit comments