Skip to content

Commit 84691d4

Browse files
committed
Fix #5298: Update apply_diff tool description to mark :start_line: as optional
- Updated MultiSearchReplaceDiffStrategy.getToolDescription() to show :start_line: as (optional) instead of (required) - Updated MultiFileSearchReplaceDiffStrategy.getToolDescription() to show :start_line: as (optional) instead of (required) - This aligns the Human Relay Mode tool descriptions with the official Roo Code documentation - Fixes inconsistency where tool descriptions incorrectly marked :start_line: as required when it's actually optional
1 parent 3a8ba27 commit 84691d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/diff/strategies/multi-file-search-replace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Parameters:
112112
Diff format:
113113
\`\`\`
114114
<<<<<<< SEARCH
115-
:start_line: (required) The line number of original content where the search block starts.
115+
:start_line: (optional) The line number of original content where the search block starts.
116116
-------
117117
[exact content to find including whitespace]
118118
=======

src/core/diff/strategies/multi-search-replace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Parameters:
106106
Diff format:
107107
\`\`\`
108108
<<<<<<< SEARCH
109-
:start_line: (required) The line number of original content where the search block starts.
109+
:start_line: (optional) The line number of original content where the search block starts.
110110
-------
111111
[exact content to find including whitespace]
112112
=======

0 commit comments

Comments
 (0)