fix: keep cancellation pending until execution cleanup is confirmed

This commit is contained in:
2026-10-20 15:47:07 +01:00
parent 1cf5156c77
commit b96b9d94a6
26 changed files with 690 additions and 142 deletions
+3 -3
View File
@@ -6,7 +6,7 @@
import { h, kvMono, canCopyLink, canShare, copyArtifactLink, shareArtifact } from "../dom.js";
import { isExecuting, changeKindTone, describeError } from "../format.js";
import { resolveArtifactUrl } from "../serverUrl.js";
import { runStateOf } from "../runs.js";
import { runStateOf, runStatusLabel } from "../runs.js";
import { PIPELINE_GRAPH_EMPTY, RUN_GRAPH_MISSING, mount as mountGraph } from "../graph.js";
import { writeGraphExpanded } from "../graphPrefs.js";
import {
@@ -135,11 +135,11 @@ function renderRunDetail(now = Date.now()) {
if (decision) pane.append(renderDecisionCard(decision));
const status = runStateOf(d.status);
const kicker = h("div", { class: "run-kicker" });
kicker.append(h("span", { class: `chip chip-${status}`, text: d.status || status }));
kicker.append(h("span", { class: `chip chip-${status}`, text: runStatusLabel(d) }));
if (String(d.outcome ?? "").trim()) {
kicker.append(h("span", { class: "muted", text: `outcome ${d.outcome}` }));
}
if (d.executing) kicker.append(h("span", { class: "muted", text: "executing" }));
if (d.executing && !d.cleanup_unconfirmed) kicker.append(h("span", { class: "muted", text: "executing" }));
pane.append(kicker);
pane.append(
h("h1", {
+5 -1
View File
@@ -9,6 +9,7 @@ import {
RUN_TIME_RANGES,
RUN_SORTS,
runStateOf,
runStatusLabel,
runIdentity,
versionLabel,
progressText,
@@ -125,7 +126,10 @@ function renderRunRow(run, now) {
});
const head = h("span", { class: "run-row-head" });
head.append(statusIcon(status, status.charAt(0).toUpperCase() + status.slice(1)));
head.append(statusIcon(status, runStatusLabel(run)));
if (run.cancel_requested || run.cleanup_unconfirmed) {
head.append(h("span", { class: "muted", text: runStatusLabel(run) }));
}
if (run.executing) head.append(h("span", { class: "spinner", "aria-hidden": "true" }));
// The pipeline is the list's anchor: it names what ran, before the task title.
head.append(