From d11752d3c90a34650c7b77a75d0587d87c69595d Mon Sep 17 00:00:00 2001 From: Wojciech Kordalski Date: Mon, 12 May 2025 21:27:23 +0200 Subject: [PATCH] ClineProvider.finishSubTask should wait for unpausing the parent task (#1870) --- src/core/webview/ClineProvider.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 87598bd45d..771eb2952c 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -177,15 +177,15 @@ export class ClineProvider extends EventEmitter 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) } /*