mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-10 03:28:03 +00:00
feat: new_task tool creates checkpoint the same way write_to_file does (#10982)
This commit is contained in:
parent
bd29766406
commit
27708f3038
2 changed files with 1 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue