There was an error while loading. Please reload this page.
1 parent edf4e63 commit f6ecb17Copy full SHA for f6ecb17
1 file changed
src/extension/api.ts
@@ -474,6 +474,8 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
474
}
475
476
public async cancelCurrentTask() {
477
+ const currentTask = this.sidebarProvider.getCurrentTask()
478
+ if (currentTask && this.sidebarProvider.taskHistoryStore.get(currentTask.taskId)?.status === "completed") return
479
await this.sidebarProvider.cancelTask()
480
481
0 commit comments