You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# Roo Cline Changelog
2
2
3
+
## [2.1.14]
4
+
5
+
- Fix bug where diffs were not being applied correctly and try Aider's [unified diff prompt](https://github.com/Aider-AI/aider/blob/3995accd0ca71cea90ef76d516837f8c2731b9fe/aider/coders/udiff_prompts.py#L75-L105)
6
+
- If diffs are enabled, automatically reject write_to_file commands that lead to truncated output
7
+
3
8
## [2.1.13]
4
9
5
10
- Fix https://github.com/RooVetGit/Roo-Cline/issues/50 where sound effects were not respecting settings
@@ -47,4 +52,4 @@
47
52
## [2.1.2]
48
53
49
54
- Support for auto-approval of write operations and command execution
"Content appears to be truncated. Found comments indicating omitted code (e.g., '// rest of code unchanged', '/* previous code */'). Please provide the complete file content without any omissions if possible, or otherwise use the 'apply_diff' tool to apply the diff to the original file."
1111
+
))
1112
+
break
1113
+
}else{
1114
+
vscode.window
1115
+
.showWarningMessage(
1116
+
"Potential code truncation detected. This happens when the AI reaches its max output limit.",
1117
+
"Follow this guide to fix the issue",
1118
+
)
1119
+
.then((selection)=>{
1120
+
if(selection==="Follow this guide to fix the issue"){
`The user made the following updates to your content:\n\n${userEdits}\n\n`+
1136
-
`The updated content, which includes both your original modifications and the user's edits, has been successfully saved to ${relPath.toPosix()}. Here is the full, updated content of the file:\n\n`+
`The updated content, which includes both your original modifications and the user's edits, has been successfully saved to ${relPath.toPosix()}. Here is the full, updated content of the file, including line numbers:\n\n`+
`The user made the following updates to your content:\n\n${userEdits}\n\n`+
1273
+
`The updated content, which includes both your original modifications and the user's edits, has been successfully saved to ${relPath.toPosix()}. Here is the full, updated content of the file, including line numbers:\n\n`+
Copy file name to clipboardExpand all lines: src/core/prompts/system.ts
+60-3Lines changed: 60 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ Usage:
46
46
</execute_command>
47
47
48
48
## read_file
49
-
Description: Request to read the contents of a file at the specified path. Use this when you need to examine the contents of an existing file you do not know the contents of, for example to analyze code, review text files, or extract information from configuration files. Automatically extracts raw text from PDF and DOCX files. May not be suitable for other types of binary files, as it returns the raw content as a string.
49
+
Description: Request to read the contents of a file at the specified path. Use this when you need to examine the contents of an existing file you do not know the contents of, for example to analyze code, review text files, or extract information from configuration files. The output includes line numbers prefixed to each line (e.g. "1 | const x = 1"), making it easier to reference specific lines when creating diffs or discussing code. Automatically extracts raw text from PDF and DOCX files. May not be suitable for other types of binary files, as it returns the raw content as a string.
50
50
Parameters:
51
51
- path: (required) The path of the file to read (relative to the current working directory ${cwd.toPosix()})
52
52
Usage:
@@ -69,10 +69,66 @@ Your file content here
69
69
70
70
${diffEnabled ? `
71
71
## apply_diff
72
-
Description: Apply a diff to a file at the specified path. The diff should be in unified format (diff -u) and can be used to apply changes to a file. This tool is useful when you need to make specific modifications to a file based on a set of changes provided in a diff.
72
+
Description: Apply a diff to a file at the specified path. The diff should be in unified format ('diff -U0') and can be used to apply changes to a file. This tool is useful when you need to make specific modifications to a file based on a set of changes provided in a diff.
73
+
74
+
Diff Format Requirements:
75
+
76
+
1. Header (REQUIRED):
77
+
\`\`\`
78
+
--- path/to/original/file
79
+
+++ path/to/modified/file
80
+
\`\`\`
81
+
- Must include both lines exactly as shown
82
+
- Use actual file paths
83
+
- NO timestamps after paths
84
+
85
+
2. Hunks:
86
+
\`\`\`
87
+
@@ -lineStart,lineCount +lineStart,lineCount @@
88
+
-removed line
89
+
+added line
90
+
\`\`\`
91
+
- Each hunk starts with @@ showing line numbers for changes
0 commit comments