fix: keep cancellation pending until execution cleanup is confirmed
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ export class DecisionDraft {
|
||||
|
||||
/** Cancel is offered only while the run is executing. */
|
||||
export function canCancel(run) {
|
||||
return Boolean(run?.executing);
|
||||
return Boolean(run?.executing) && !run.cancel_requested && !run.cleanup_unconfirmed;
|
||||
}
|
||||
|
||||
/** Retry is offered only for a loaded, non-executing, `failed` run. */
|
||||
|
||||
Reference in New Issue
Block a user