feat: new_task tool creates checkpoint the same way write_to_file does (#10982)

This commit is contained in:
Daniel 2026-01-26 19:21:49 -05:00 • committed by GitHub
parent bd29766406
commit 27708f3038
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 6 deletions

View file

@ -862,6 +862,7 @@ export async function presentAssistantMessage(cline: Task) {
})
break
case "new_task":
await checkpointSaveAndMark(cline)
await newTaskTool.handle(cline, block as ToolUse<"new_task">, {
askApproval,
handleError,

View file

@ -109,12 +109,6 @@ export class NewTaskTool extends BaseTool<"new_task"> {
return
}
// Provider is guaranteed to be defined here due to earlier check.
if (task.enableCheckpoints) {
task.checkpointSave(true)
}
// Delegate parent and open child as sole active task
const child = await (provider as any).delegateParentAndOpenChild({
parentTaskId: task.taskId,