diff --git a/.changeset/great-impalas-lie.md b/.changeset/great-impalas-lie.md new file mode 100644 index 00000000000..b7f47eca939 --- /dev/null +++ b/.changeset/great-impalas-lie.md @@ -0,0 +1,5 @@ +--- +"kilo-code": patch +--- + +Fixed no checkpoint being created before a file is edited diff --git a/src/core/assistant-message/presentAssistantMessage.ts b/src/core/assistant-message/presentAssistantMessage.ts index 3419bba4b27..0ea50ba0bc8 100644 --- a/src/core/assistant-message/presentAssistantMessage.ts +++ b/src/core/assistant-message/presentAssistantMessage.ts @@ -1227,11 +1227,9 @@ async function checkpointSaveAndMark(task: Task) { return } try { - // kilocode_change start: order changed to prevent second execution while still awaiting the save + // kilocode_change: order changed to prevent second execution while still awaiting the save task.currentStreamingDidCheckpoint = true - // kilocode_change: don't force empty checkpoints - only create checkpoint if there are actual file changes - await task.checkpointSave(false) - // kilocode_change end + await task.checkpointSave(true) } catch (error) { console.error(`[Task#presentAssistantMessage] Error saving checkpoint: ${error.message}`, error) }