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
`[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.${wasRecent
629
-
? "\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."
630
-
: ""
629
+
`[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.${
630
+
wasRecent
631
+
? "\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."
632
+
: ""
631
633
}`+
632
634
(responseText
633
635
? `\n\nNew instructions for task continuation:\n<user_message>\n${responseText}\n</user_message>`
@@ -741,7 +743,8 @@ export class Cline {
741
743
return[
742
744
true,
743
745
formatResponse.toolResult(
744
-
`Command is still running in the user's terminal.${result.length>0 ? `\nHere's the output so far:\n${result}` : ""
746
+
`Command is still running in the user's terminal.${
747
+
result.length>0 ? `\nHere's the output so far:\n${result}` : ""
745
748
}\n\nThe user provided the following feedback:\n<feedback>\n${userFeedback.text}\n</feedback>`,
746
749
userFeedback.images,
747
750
),
@@ -753,7 +756,8 @@ export class Cline {
753
756
}else{
754
757
return[
755
758
false,
756
-
`Command is still running in the user's terminal.${result.length>0 ? `\nHere's the output so far:\n${result}` : ""
759
+
`Command is still running in the user's terminal.${
760
+
result.length>0 ? `\nHere's the output so far:\n${result}` : ""
757
761
}\n\nYou will be updated on the terminal status and new output in the future.`,
758
762
]
759
763
}
@@ -931,8 +935,9 @@ export class Cline {
931
935
case"apply_diff":
932
936
return`[${block.name} for '${block.params.path}']`
933
937
case"search_files":
934
-
return`[${block.name} for '${block.params.regex}'${block.params.file_pattern ? ` in '${block.params.file_pattern}'` : ""
935
-
}]`
938
+
return`[${block.name} for '${block.params.regex}'${
939
+
block.params.file_pattern ? ` in '${block.params.file_pattern}'` : ""
940
+
}]`
936
941
case"list_files":
937
942
return`[${block.name} for '${block.params.path}']`
awaitthis.ask("tool",partialMessage,true).catch(()=>{})// sending true for partial even though it's not a partial, this shows the edit row before the content is streamed into the editor
1162
+
awaitthis.ask("tool",partialMessage,true).catch(()=>{})// sending true for partial even though it's not a partial, this shows the edit row before the content is streamed into the editor
`The user made the following updates to your content:\n\n${userEdits}\n\n`+
1220
-
`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`+
`1. You do not need to re-write the file with these changes, as they have already been applied.\n`+
1224
-
`2. Proceed with the task using this updated file content as the new baseline.\n`+
1225
-
`3. If the user's edits have addressed part of the task or changed the requirements, adjust your approach accordingly.`+
1226
-
`${newProblemsMessage}`,
1225
+
`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`+
1338
-
`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`+
`1. You do not need to re-write the file with these changes, as they have already been applied.\n`+
1342
-
`2. Proceed with the task using this updated file content as the new baseline.\n`+
1343
-
`3. If the user's edits have addressed part of the task or changed the requirements, adjust your approach accordingly.`+
1344
-
`${newProblemsMessage}`,
1343
+
`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 browser action has been executed. The console logs and screenshot have been captured for your analysis.\n\nConsole logs:\n${browserActionResult.logs||"(No new logs)"
1657
+
`The browser action has been executed. The console logs and screenshot have been captured for your analysis.\n\nConsole logs:\n${
1658
+
browserActionResult.logs||"(No new logs)"
1653
1659
}\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.)`,
// we want to get diagnostics AFTER terminal cools down for a few reasons: terminal could be scaffolding a project, dev servers (compilers like webpack) will first re-compile and then send diagnostics, etc
0 commit comments