mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
ClineProvider.finishSubTask should wait for unpausing the parent task (#1870)
This commit is contained in:
parent
29c841ae22
commit
d11752d3c9
1 changed files with 3 additions and 3 deletions
|
|
@ -177,15 +177,15 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
|
|||
return this.clineStack.map((cline) => cline.taskId)
|
||||
}
|
||||
|
||||
// remove the current task/cline instance (at the top of the stack), ao this task is finished
|
||||
// remove the current task/cline instance (at the top of the stack), so this task is finished
|
||||
// and resume the previous task/cline instance (if it exists)
|
||||
// this is used when a sub task is finished and the parent task needs to be resumed
|
||||
async finishSubTask(lastMessage: string) {
|
||||
console.log(`[subtasks] finishing subtask ${lastMessage}`)
|
||||
// remove the last cline instance from the stack (this is the finished sub task)
|
||||
await this.removeClineFromStack()
|
||||
// resume the last cline instance in the stack (if it exists - this is the 'parnt' calling task)
|
||||
this.getCurrentCline()?.resumePausedTask(lastMessage)
|
||||
// resume the last cline instance in the stack (if it exists - this is the 'parent' calling task)
|
||||
await this.getCurrentCline()?.resumePausedTask(lastMessage)
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue