fix: keep cancellation pending until execution cleanup is confirmed
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user