From 234199b6950eb990fde0d6015ed02b9cde8aba67 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Fri, 28 Nov 2025 21:34:13 +0000 Subject: [PATCH] fix: save checkpoint immediately after file read operations - Add checkpoint save after read_file tool execution - Ensures context is preserved when files are read for the first time - Fixes issue where checkpoints were only saved after command execution Fixes #9679 --- src/core/assistant-message/presentAssistantMessage.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/assistant-message/presentAssistantMessage.ts b/src/core/assistant-message/presentAssistantMessage.ts index 2e4b3ac4da..65d96a9513 100644 --- a/src/core/assistant-message/presentAssistantMessage.ts +++ b/src/core/assistant-message/presentAssistantMessage.ts @@ -852,6 +852,8 @@ export async function presentAssistantMessage(cline: Task) { toolProtocol, }) } + // Save checkpoint after reading files to preserve context + await checkpointSaveAndMark(cline) break case "fetch_instructions": await fetchInstructionsTool.handle(cline, block as ToolUse<"fetch_instructions">, {