Commit 1835aa4
committed
feat: add prompt instruction to break large edits into smaller apply_diff operations
- Updated MultiSearchReplaceDiffStrategy tool description
- Updated MultiFileSearchReplaceDiffStrategy tool description
- Added best practices section emphasizing smaller, focused changes
- Updated test snapshots to reflect new tool descriptions
This enhancement improves apply_diff success rates by encouraging users to break large modifications into smaller, more manageable chunks as suggested in issue #72891 parent 6fd261d commit 1835aa4
File tree
3 files changed
+28
-0
lines changed- src/core
- diff/strategies
- prompts/__tests__/__snapshots__/system-prompt
3 files changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
97 | 107 | | |
98 | 108 | | |
99 | 109 | | |
| |||
Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments