Skip to content

Commit 395a7c4

Browse files
committed
ClineProvider.finishSubTask should wait for unpausing the parent task
1 parent f1efeca commit 395a7c4

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
@@ -190,15 +190,15 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
190190
return this.clineStack.map((cline) => cline.taskId)
191191
}
192192

193-
// remove the current task/cline instance (at the top of the stack), ao this task is finished
193+
// remove the current task/cline instance (at the top of the stack), so this task is finished
194194
// and resume the previous task/cline instance (if it exists)
195195
// this is used when a sub task is finished and the parent task needs to be resumed
196196
async finishSubTask(lastMessage?: string) {
197197
console.log(`[subtasks] finishing subtask ${lastMessage}`)
198198
// remove the last cline instance from the stack (this is the finished sub task)
199199
await this.removeClineFromStack()
200-
// resume the last cline instance in the stack (if it exists - this is the 'parnt' calling task)
201-
this.getCurrentCline()?.resumePausedTask(lastMessage)
200+
// resume the last cline instance in the stack (if it exists - this is the 'parent' calling task)
201+
await this.getCurrentCline()?.resumePausedTask(lastMessage)
202202
}
203203

204204
/*

0 commit comments

Comments
 (0)