Skip to content

Commit 18c037d

Browse files
wkordalskimehmetsunkur
authored andcommitted
ClineProvider.finishSubTask should wait for unpausing the parent task (RooCodeInc#1870)
1 parent 2201c44 commit 18c037d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
177177
return this.clineStack.map((cline) => cline.taskId)
178178
}
179179

180-
// remove the current task/cline instance (at the top of the stack), ao this task is finished
180+
// remove the current task/cline instance (at the top of the stack), so this task is finished
181181
// and resume the previous task/cline instance (if it exists)
182182
// this is used when a sub task is finished and the parent task needs to be resumed
183183
async finishSubTask(lastMessage: string) {
184184
console.log(`[subtasks] finishing subtask ${lastMessage}`)
185185
// remove the last cline instance from the stack (this is the finished sub task)
186186
await this.removeClineFromStack()
187-
// resume the last cline instance in the stack (if it exists - this is the 'parnt' calling task)
188-
this.getCurrentCline()?.resumePausedTask(lastMessage)
187+
// resume the last cline instance in the stack (if it exists - this is the 'parent' calling task)
188+
await this.getCurrentCline()?.resumePausedTask(lastMessage)
189189
}
190190

191191
/*

0 commit comments

Comments
 (0)