Skip to content

Commit ba54dd7

Browse files
committed
fix: add user-facing notification when delegation guards drop actions
Addresses review feedback: showTaskWithId, deleteTaskWithId, and cancelTask now show an informational message when skipped during delegation, instead of silently dropping the user action with only a log call.
1 parent 44b2387 commit ba54dd7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/core/webview/ClineProvider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,6 +1817,7 @@ export class ClineProvider
18171817
async showTaskWithId(id: string) {
18181818
if (this.delegationInProgress) {
18191819
this.log("[showTaskWithId] Skipped: delegation in progress")
1820+
vscode.window.showInformationMessage("Task delegation in progress, please wait...")
18201821
return
18211822
}
18221823
if (id !== this.getCurrentTask()?.taskId) {
@@ -1864,6 +1865,7 @@ export class ClineProvider
18641865
try {
18651866
if (this.delegationInProgress) {
18661867
this.log("[deleteTaskWithId] Skipped: delegation in progress")
1868+
vscode.window.showInformationMessage("Task delegation in progress, please wait...")
18671869
return
18681870
}
18691871
// get the task directory full path and history item
@@ -3092,6 +3094,7 @@ export class ClineProvider
30923094
public async cancelTask(): Promise<void> {
30933095
if (this.delegationInProgress) {
30943096
this.log("[cancelTask] Skipped: delegation in progress")
3097+
vscode.window.showInformationMessage("Task delegation in progress, please wait...")
30953098
return
30963099
}
30973100
const task = this.getCurrentTask()

0 commit comments

Comments
 (0)