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
"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."
1133
+
`Content appears to be truncated (file has ${newContent.split("\n").length} lines but was predicted to have ${predictedLineCount} lines). 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.`
Copy file name to clipboardExpand all lines: src/core/prompts/system.ts
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -62,9 +62,11 @@ Usage:
62
62
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
63
63
Parameters:
64
64
- path: (required) The path of the file to write to (relative to the current working directory ${cwd.toPosix()})
65
+
- line_count: (required) The number of lines in the content. This is used to determine if the user needs to provide more content to complete the file.
65
66
- content: (required) The content to write to the file. ALWAYS provide the COMPLETE intended content of the file, without any truncation or omissions. You MUST include ALL parts of the file, even if they haven't been modified. Do NOT include the line numbers in the content though, just the actual content of the file.
66
67
Usage:
67
68
<write_to_file>
69
+
<line_count>total number of lines in the content, including empty lines</line_count>
68
70
<path>File path here</path>
69
71
<content>
70
72
Your file content here
@@ -207,6 +209,7 @@ Your final result description here
0 commit comments