fix: keep cancellation pending until execution cleanup is confirmed
This commit is contained in:
@@ -37,6 +37,14 @@ export const RUN_STATES = [
|
||||
* states so one chip set renders list, detail and timeline). Mirrors
|
||||
* runStateOf: blank or unrecognised input is the safe `unknown` fallback.
|
||||
*/
|
||||
export function runStatusLabel(run) {
|
||||
if (["queued", "running", "waiting"].includes(run?.status)) {
|
||||
if (run.cleanup_unconfirmed) return "Cleanup unconfirmed — workspace reserved";
|
||||
if (run.cancel_requested) return "Stopping — waiting for execution to stop";
|
||||
}
|
||||
return run?.status || "unknown";
|
||||
}
|
||||
|
||||
export function runStateOf(status) {
|
||||
switch (String(status ?? "").trim().toLowerCase()) {
|
||||
case "running":
|
||||
|
||||
Reference in New Issue
Block a user