Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 27708f3

Browse files
authored
feat: new_task tool creates checkpoint the same way write_to_file does (#10982)
1 parent bd29766 commit 27708f3

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/core/assistant-message/presentAssistantMessage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,7 @@ export async function presentAssistantMessage(cline: Task) {
862862
})
863863
break
864864
case "new_task":
865+
await checkpointSaveAndMark(cline)
865866
await newTaskTool.handle(cline, block as ToolUse<"new_task">, {
866867
askApproval,
867868
handleError,

src/core/tools/NewTaskTool.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ export class NewTaskTool extends BaseTool<"new_task"> {
109109
return
110110
}
111111

112-
// Provider is guaranteed to be defined here due to earlier check.
113-
114-
if (task.enableCheckpoints) {
115-
task.checkpointSave(true)
116-
}
117-
118112
// Delegate parent and open child as sole active task
119113
const child = await (provider as any).delegateParentAndOpenChild({
120114
parentTaskId: task.taskId,

0 commit comments

Comments
 (0)