mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Handle cancelling during hanging stream
This commit is contained in:
@@ -446,6 +446,10 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
||||
}).catch(() => {
|
||||
console.error("Failed to abort task")
|
||||
})
|
||||
if (this.cline) {
|
||||
// 'abandoned' will prevent this cline instance from affecting future cline instance gui. this may happen if its hanging on a streaming request
|
||||
this.cline.abandoned = true
|
||||
}
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user