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
This commit is contained in:
Roo Code 2025-07-01 03:56:48 +00:00
parent 3a8ba27615
commit 84691d4f1e
2 changed files with 2 additions and 2 deletions

View file

@ -112,7 +112,7 @@ Parameters:
Diff format:
\`\`\`
<<<<<<< SEARCH
:start_line: (required) The line number of original content where the search block starts.
:start_line: (optional) The line number of original content where the search block starts.
-------
[exact content to find including whitespace]
=======

View file

@ -106,7 +106,7 @@ Parameters:
Diff format:
\`\`\`
<<<<<<< SEARCH
:start_line: (required) The line number of original content where the search block starts.
:start_line: (optional) The line number of original content where the search block starts.
-------
[exact content to find including whitespace]
=======