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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -479,7 +479,7 @@ Join us at https://www.reddit.com/r/RooCode to share your custom modes and be pa
479
479
## [2.1.14]
480
480
481
481
- 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)
482
-
- If diffs are enabled, automatically reject create_file commands that lead to truncated output
482
+
- If diffs are enabled, automatically reject write_to_file commands that lead to truncated output
Copy file name to clipboardExpand all lines: src/core/Cline.ts
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -733,7 +733,7 @@ export class Cline {
733
733
text:
734
734
`[TASK RESUMPTION] This task was interrupted ${agoText}. It may or may not be complete, so please reassess the task context. Be aware that the project state may have changed since then. The current working directory is now '${cwd.toPosix()}'. If the task has not been completed, retry the last step before interruption and proceed with completing the task.\n\nNote: If you previously attempted a tool use that the user did not provide a result for, you should assume the tool use was not successful and assess whether you should retry. If the last tool was a browser_action, the browser has been closed and you must launch a new browser if needed.${
735
735
wasRecent
736
-
? "\n\nIMPORTANT: If the last tool use was a create_file that was interrupted, the file was reverted back to its original state before the interrupted edit, and you do NOT need to re-read the file as you already have its up-to-date contents."
736
+
? "\n\nIMPORTANT: If the last tool use was a write_to_file that was interrupted, the file was reverted back to its original state before the interrupted edit, and you do NOT need to re-read the file as you already have its up-to-date contents."
737
737
: ""
738
738
}`+
739
739
(responseText
@@ -1141,9 +1141,9 @@ export class Cline {
1141
1141
return`[${block.name} for '${block.params.command}']`
1142
1142
case"read_file":
1143
1143
return`[${block.name} for '${block.params.path}']`
1144
-
case"create_file":
1144
+
case"write_to_file":
1145
1145
return`[${block.name} for '${block.params.path}']`
1146
-
case"edit_file":
1146
+
case"apply_diff":
1147
1147
return`[${block.name} for '${block.params.path}']`
1148
1148
case"search_files":
1149
1149
return`[${block.name} for '${block.params.regex}'${
} lines but was predicted to have ${predictedLineCount} lines), and 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 'edit_file' tool to apply the diff to the original file.`,
1424
+
} lines but was predicted to have ${predictedLineCount} lines), and 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.`,
`The browser action has been executed. The console logs and screenshot have been captured for your analysis.\n\nConsole logs:\n${
2235
2235
browserActionResult.logs||"(No new logs)"
2236
-
}\n\n(REMEMBER: if you need to proceed to using non-\`browser_action\` tools or launch a new browser, you MUST first close this browser. For example, if after analyzing the logs and screenshot you need to edit a file, you must first close the browser before you can use the create_file tool.)`,
2236
+
}\n\n(REMEMBER: if you need to proceed to using non-\`browser_action\` tools or launch a new browser, you MUST first close this browser. For example, if after analyzing the logs and screenshot you need to edit a file, you must first close the browser before you can use the write_to_file tool.)`,
Seeing out of bounds is fine, it means that the next too call is being built up and ready to add to assistantMessageContent to present.
2753
-
When you see the UI inactive during this, it means that a tool is breaking without presenting any UI. For example the create_file tool was breaking when relpath was undefined, and for invalid relpath it never presented UI.
2753
+
When you see the UI inactive during this, it means that a tool is breaking without presenting any UI. For example the write_to_file tool was breaking when relpath was undefined, and for invalid relpath it never presented UI.
2754
2754
*/
2755
2755
this.presentAssistantMessageLocked=false// this needs to be placed here, if not then calling this.presentAssistantMessage below would fail (sometimes) since it's locked
2756
2756
// NOTE: when tool is rejected, iterator stream is interrupted and it waits for userMessageContentReady to be true. Future calls to present will skip execution since didRejectTool and iterate until contentIndex is set to message length and it sets userMessageContentReady to true itself (instead of preemptively doing it in iterator)
Copy file name to clipboardExpand all lines: src/core/assistant-message/parse-assistant-message.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -61,9 +61,9 @@ export function parseAssistantMessage(assistantMessage: string) {
61
61
62
62
// there's no current param, and not starting a new param
63
63
64
-
// special case for create_file where file contents could contain the closing tag, in which case the param would have closed and we end up with the rest of the file contents here. To work around this, we get the string between the starting content tag and the LAST content tag.
64
+
// special case for write_to_file where file contents could contain the closing tag, in which case the param would have closed and we end up with the rest of the file contents here. To work around this, we get the string between the starting content tag and the LAST content tag.
0 commit comments