From 519c6bb249104ff79b74980fa5045f6e069726d5 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Sun, 6 Oct 2024 23:01:48 -0400 Subject: [PATCH] Fixes --- src/core/webview/ClineProvider.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index d1e3ab1..80ba292 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -443,6 +443,8 @@ export class ClineProvider implements vscode.WebviewViewProvider { this.cline.abortTask() await pWaitFor(() => this.cline === undefined || this.cline.didFinishAborting, { timeout: 3_000, + }).catch(() => { + console.error("Failed to abort task") }) await this.initClineWithHistoryItem(historyItem) // clears task again, so we need to abortTask manually above // await this.postStateToWebview() // new Cline instance will post state when it's ready. having this here sent an empty messages array to webview leading to virtuoso having to reload the entire list