Skip to content

Show cancellation details for workflow runs - #4250

Merged
karthikscale3 merged 4 commits into
mainfrom
kk/cancelled-run-details
Sep 18, 2026
Merged

karthikscale3 merged 4 commits into
mainfrom
kk/cancelled-run-details

Conversation

@karthikscale3

@karthikscale3 karthikscale3 commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Cancelled workflow runs now use a distinct neutral state in the trace and show their cancellation reason in the run inspector. Runs without a recorded reason show a clear fallback.

CleanShot 2026-09-18 at 1 44 15 PM@2x https://workflow-hltlg465o.labs.vercel.dev/run/wrun_41M2V2T5Z00GJD4KXXVDWAQ1S5

Tests: pnpm --filter @workflow/web-shared test, pnpm --filter @workflow/web-shared typecheck

@karthikscale3
karthikscale3 requested a review from a team as a code owner September 18, 2026 19:44
@changeset-bot

changeset-bot Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 23c054d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@workflow/web-shared Patch
@workflow/web Patch
@workflow/cli Patch
@workflow/nitro Patch
workflow Patch
@workflow/world-testing Patch
@workflow/nuxt Patch
@workflow/core Patch
@workflow/builders Patch
@workflow/next Patch
@workflow/vitest Patch
@workflow/astro Patch
@workflow/nest Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
example-nextjs-workflow-turbopack Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
example-nextjs-workflow-webpack Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
example-workflow Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workbench-astro-workflow Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workbench-express-workflow Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workbench-fastify-workflow Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workbench-hono-workflow Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workbench-nestjs-workflow Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workbench-nitro-workflow Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workbench-nuxt-workflow Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workbench-python-workflow Building Building Preview, v0 Sep 20, 2026 5:54am UTC
workbench-sveltekit-workflow Canceled Canceled v0 Sep 20, 2026 5:54am UTC
workbench-tanstack-start-workflow Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workbench-vite-workflow Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workflow-swc-playground Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workflow-tarballs Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
workflow-web Ready Ready Preview, v0 Sep 20, 2026 5:54am UTC
1 Skipped Deployment
Project Deployment Actions Updated
workflow-docs Skipped Skipped v0 Sep 20, 2026 5:54am UTC

@github-actions

github-actions Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Sim World

Simulated world deterministic testing for races. Traces

🟠 world-sim scenario book — 1 fail of 42 total

fence=per-spec

scenario outcome events virt replay violations
✅ smoke-no-steps completed 3 0ms ok 0
✅ smoke-one-step completed 6 0ms ok 0
✅ hook-at-step-started completed 12 0ms ok 0
✅ hook-at-step-completed completed 12 0ms ok 0
✅ hook-at-hook-created completed 12 0ms ok 0
✅ deadline-hook-wins completed 7 1.0h ok 0
✅ deadline-expires completed 7 1.0h ok 0
✅ step-vs-timer-early-settlement completed 8 1.0h ok 0
✅ long-sleep completed 11 30.0d ok 0
✅ hook-never-arrives stalled 3 0ms skipped 0
✅ step-retries-twice completed 10 2.0s ok 0
✅ parallel-steps completed 9 0ms ok 0
✅ hook-on-execution-state completed 12 0ms ok 0
✅ peek-hook-before-branch completed 12 0ms ok 0
✅ peek-hook-after-branch completed 12 0ms ok 0
✅ peek-hook-at-registration completed 12 0ms ok 0
✅ race-hook-before-probe completed 12 0ms ok 0
✅ race-hook-after-probe completed 12 0ms ok 0
✅ race-duplicate-delivery completed 13 0ms ok 0
✅ attr-hook-before-step completed 11 0ms ok 0
✅ attr-hook-after-step completed 11 0ms ok 0
✅ attr-from-step-body completed 13 0ms ok 0
✅ fork-hook-after-timeout completed 14 1.0m ok 0
✅ fork-hook-before-timeout completed 14 1.0m ok 0
✅ count-hook-after-timeout completed 17 1.0m ok 0
✅ count-hook-before-timeout completed 20 1.0m ok 0
✅ stale-read-step-count-fork completed 20 1.0m ok 0
✅ stale-read-equal-step-counts completed 14 1.0m ok 0
✅ step-vs-step-fork completed 12 0ms ok 0
✅ step-vs-step-fork-fenced completed 12 0ms ok 0
✅ fence-catches-benign-direction completed 12 5ms ok 0
✅ in-flight-before-decision completed 17 1.0m ok 0
❌ in-flight-before-decision-counted completed 17 1.0m ok 0
✅ in-flight-after-decision completed 19 2.0m ok 0
✅ stale-read-step-count-fork-fenced completed 20 1.0m ok 0
✅ fork-hook-wins completed 13 1.0m ok 0
✅ fork-timeout-wins completed 13 1.0m ok 0
✅ unclaimed-payload-under-fork completed 17 1.0m ok 0
✅ claimed-payload-under-fork completed 17 1.0m ok 0
✅ writers-independent-step-bodies completed 12 0ms ok 0
✅ writers-scripted-tempo completed 12 0ms ok 0
✅ cancel-mid-step cancelled 7 0ms skipped 0

Full trace: world-sim.txt

Signed-off-by: Karthik Kalyanaraman <karthik.kalyanaraman@vercel.com>
Signed-off-by: Karthik Kalyanaraman <karthik.kalyanaraman@vercel.com>
Signed-off-by: Karthik Kalyanaraman <karthik.kalyanaraman@vercel.com>
@karthikscale3
karthikscale3 merged commit 7840c15 into main Sep 18, 2026
50 of 59 checks passed
@karthikscale3
karthikscale3 deleted the kk/cancelled-run-details branch September 18, 2026 20:56
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 7840c15 (AI decision).

This is UI feature work: it adds a new cancellation-reason surface to the run inspector (new getCancellationReason/useCancellationReason modules, a tooltip on StatusBadge, a new cancelled trace segment status and isSpanCancelled helper), plus a cosmetic restyle of run/event status colors to match Workflow Observability. None of it fixes a user-visible defect on the maintenance line; the color realignment and the --geist-* CSS fallbacks are presentational polish rather than a stability fix. If the fallback values in styles.css are considered a genuine rendering bug on stable, that one hunk could be split out and forced through via workflow_dispatch.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

7840c15617c801e0df8f0a85145f43de25f96cc4

This branch was successfully deployed

16 active (1 outdated) and 1 inactive deployments
Preview – workbench-sveltekit-workflow — 23c054de Deployed Sep 20, 2026 by vercel[bot]
Preview – workflow-tarballs — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workbench-astro-workflow — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workbench-fastify-workflow — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – example-nextjs-workflow-webpack — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workbench-tanstack-start-workflow — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workbench-nitro-workflow — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – example-workflow — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workflow-swc-playground — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workbench-hono-workflow — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workbench-express-workflow — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workbench-nuxt-workflow — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – example-nextjs-workflow-turbopack — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workbench-vite-workflow — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workflow-web — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workbench-nestjs-workflow — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workflow-docs — 23c054de Deployed Sep 18, 2026 by vercel[bot]
Preview – workbench-python-workflow — 28207471 Deployed Sep 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants