Skip to content

Commit 7d7a856

Browse files
authored
Merge pull request #125 from RooVetGit/search_replace_prompt_hotfix
Search/replace prompt hotfix for Gemini
2 parents 868f4cd + 0c08c0f commit 7d7a856

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Roo Cline Changelog
22

3+
## [2.2.9]
4+
5+
- Fix a bug where Gemini was including line numbers in the search/replace content
6+
37
## [2.2.8]
48

59
- More work on diff editing (better matching, indentation, logging)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Roo Cline",
44
"description": "A fork of Cline, an autonomous coding agent, with some added experimental configuration and automation features.",
55
"publisher": "RooVeterinaryInc",
6-
"version": "2.2.8",
6+
"version": "2.2.9",
77
"icon": "assets/icons/rocket.png",
88
"galleryBanner": {
99
"color": "#617A91",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ The tool will maintain proper indentation and formatting while making changes.
6262
Only a single operation is allowed per tool use.
6363
The SEARCH section must exactly match existing content including whitespace and indentation.
6464
If you're not confident in the exact content to search for, use the read_file tool first to get the exact content.
65+
IMPORTANT: The read_file tool returns the file content with line numbers prepended to each line. However, DO NOT include line numbers in the SEARCH and REPLACE sections of the diff content.
6566
6667
Parameters:
6768
- path: (required) The path of the file to modify (relative to the current working directory ${cwd})

0 commit comments

Comments
 (0)