From 37f31860cbb6bfae2518ee56a686e192609226c8 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Thu, 17 Jul 2025 23:20:40 +0000 Subject: [PATCH] fix: Remove misleading [TASK RESUMPTION] message - Simplified the task resumption message to remove misleading language about stale information - Removed "It may or may not be complete, so please reassess the task context" - Removed "Be aware that the project state may have changed since then" - Kept essential information about task interruption and tool state - Fixes issue where model would unnecessarily re-read files and reassess context Fixes #5850 --- src/core/task/Task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/task/Task.ts b/src/core/task/Task.ts index 53b8ef5b87d..5758be351b5 100644 --- a/src/core/task/Task.ts +++ b/src/core/task/Task.ts @@ -1000,7 +1000,7 @@ export class Task extends EventEmitter { newUserContent.push({ type: "text", text: - `[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. 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.${ + `[TASK RESUMPTION] This task was interrupted ${agoText}. If the task has not been completed, continue 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 ? "\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." : ""