Skip to content

[web-shared] Delete dead code - #5542

Merged
mitul-s merged 3 commits into
mainfrom
web-shared/delete-dead-code
Nov 17, 2026
Merged

mitul-s merged 3 commits into
mainfrom
web-shared/delete-dead-code

Conversation

@mitul-s

@mitul-s mitul-s commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Deletes dead code in @workflow/web-shared, and removes every public export that neither @workflow/web nor the Vercel dashboard (vercel/front) imports, including the unused @workflow/web-shared/components entry point. This is the web-shared half of #5529. The @workflow/web half is in #5543, and the two PRs don't depend on each other.

Why

Code that nothing runs still has to be maintained and reviewed, and every export is API we have to keep working. Consumers are expected to update with this change rather than hold the cleanup back. The dashboard only needs one change, listed below.

Preview

workflow-web preview

  1. Open a run whose input or output contains a stream, a run reference, a class instance or encrypted data, and go to ?tab=trace.
  2. Select the step and check that the inspector still renders stream and run refs as links, class instances with their class name, and encrypted fields as Encrypted with a Decrypt button that decrypts them.

Change needed in vercel/front

hydrateResourceIOWithKey is removed. Swap it for hydrateResourceIOAsync, which takes the same arguments:

  • observability/(tabs)/workflows/lib/use-events-list-data.ts (lines 8, 73, 107, 141)
  • observability/(tabs)/workflows/components/run-details-view.tsx (lines 9, 192)

Nothing else the dashboard imports changes (checked against front's main on 2026-11-17), and front never imports the /components subpath.

Removed exports

Export What happened to the code
hydrateResourceIOWithKey Deleted. It only forwarded to hydrateResourceIOAsync.
MenuDropdown, MenuDropdownOption Deleted. Unused here, in front, and anywhere else in the org (gh search code --owner vercel).
materializeSteps, materializeHooks, materializeWaits, materializeAll and the Materialized* types Deleted lib/event-materialization.ts and its tests. Only index.ts and tests imported it.
shouldShowReenqueueButton, hasPendingStepsFromEvents, hasPendingHooksFromEvents, isTerminalStatus Deleted. analyzeEvents stays.
identifyStreamSteps, StreamStep Deleted.
looksLikeWorkflowIdSearchInput Deleted, along with its tests.
CLASS_INSTANCE_REF_TYPE, ClassInstanceRef, extractStreamIds, isClassInstanceRef, isStreamId, isStreamRef, STREAM_REF_TYPE, truncateId, StreamRef Re-exports from @workflow/core/serialization-format. Import them from there.
hookEventsToHookEntity, isEncryptedMarker, DUPLICATE_EVENT_MESSAGE, findDuplicateEventIds, isSealedNoopEvent, SEALED_EVENT_MESSAGE, parseExactWorkflowSearchId, ExactWorkflowSearchId, isQuickJSSnapshotRun, extractConversation, isDoStreamStep, formatDurationPrecise, DecodedStreamChunkSource, useToast Still used inside the package. Only the export from the entry point goes.
ResolveHookModal, ConversationView, SidebarDataProvider, SelectedSpanInfo, DecryptClickContext, DecryptClickContextValue, IconButton, Kbd, LoadMoreButton Same: used internally, no longer exported.

Kept on purpose

  • Types that are part of an API that stays public, so callers can annotate what they pass in or get back: ButtonProps, DataInspectorProps, the useHookActions/HookResolveModalWrapper/ResolveHookDropdownItem prop and option types, EventAnalysis, RunLimitGuidance/RunLimitGuidanceKind, RunStateHydratorOptions/StateHistoryPage (the docs describe createRunStateHydrator for custom inspectors), and SpanSelectionInfo/DetailResource (the arguments and result of FetchSpanDetail).
  • SpanEvent, which is part of Span, and which the v5 What's New page says is still exported.
  • collapseRefs and isDeepEqual stay exported from their modules for their tests.

Other cleanup

  • Deleted ui/card.tsx and ui/alert.tsx (unused copies of web's shadcn components), hooks/use-dark-mode.ts, DuplicateEventTooltip, and the unused getPaginationDisplay in lib/utils.ts.
  • Deleted src/index.d.ts and src/components/index.d.ts: tsc ignores a .d.ts next to a .ts of the same name, and the published types come from dist/.
  • ui/data-inspector.tsx drops its private copies of the ref type guards and imports them from lib/hydration.ts.
  • Dropped export from symbols that only their own file uses (AttributeBlock, DetailKeyValueRow, sortAttributeKeys, TimelineBar, kbdVariants, MIN_START/MIN_END/MeasureFn/TruncateResult, EXPIRED_DISPLAY_NAME, summarizeArrayBufferView, isRunLevelEvent, convertEventsToSpanEvents).
  • Comments that still mentioned ObjectInspector now say DataInspector.
  • Removed the unused shiki dependency. The lockfile diff is three deleted lines.

Overlap with other open PRs

Differences from #5529

How did you test your changes?

  • pnpm turbo typecheck test build --filter=@workflow/web-shared on the first commit: 10/10 tasks passed.
  • pnpm typecheck in packages/web-shared: no errors.
  • pnpm vitest run in packages/web-shared: 34 files, 276 tests passed. Ten fewer than main: the seven event-materialization tests, the start Hook materialization test, and the two looksLikeWorkflowIdSearchInput tests, all of which covered deleted code.
  • pnpm turbo build test --filter=@workflow/web against this branch: 10/10 passed, so web builds on the smaller API. react-router typegen && tsc --noEmit in packages/web reports the same 19 errors as main.
  • pnpm biome check packages/web-shared: no errors.
  • Export audit: every remaining export from src/index.ts is imported by packages/web or front, apart from the types kept on purpose above.
  • Visuals were not rendered. The only runtime change is DataInspector's ref detection, which now uses the @workflow/core guards. They check __type with in, so they also match the non-enumerable opaque refs that collapseRefs builds, and the existing DataInspector/collapseRefs tests pass.

PR Checklist - Required to merge

  • 📦 pnpm changeset was run to create a changelog for this PR
    • Use the correct semver bump type: patch for bug fixes, minor for new features, major for breaking changes.
    • Use pnpm changeset --empty if you are changing documentation or workbench apps
  • 🔒 DCO sign-off passes (run git commit --signoff on your commits)
  • 📝 Ping @vercel/workflow in a comment once the PR is ready, and the above checklist is complete

Written by fx

@mitul-s mitul-s mentioned this pull request Nov 17, 2026
2 of 3 tasks
@changeset-bot

changeset-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0d42e1c

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

This PR includes changesets to release 18 packages
Name Type
@workflow/web-shared Minor
@workflow/web Minor
@workflow/cli Patch
@workflow/nitro Patch
workflow Patch
@workflow/world-testing Patch
@workflow/nuxt Patch
@workflow/world-cloudflare Patch
@workflow/core Patch
@workflow/world-vercel 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 Nov 17, 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 Nov 17, 2026 10:32pm UTC
example-nextjs-workflow-webpack Building Building Preview, v0 Nov 17, 2026 10:32pm UTC
example-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workbench-astro-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workbench-express-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workbench-fastify-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workbench-hono-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workbench-nestjs-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workbench-nitro-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workbench-nuxt-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workbench-python-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workbench-sveltekit-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workbench-tanstack-start-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workbench-vite-workflow Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workflow-docs Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workflow-swc-playground Building Building Preview, v0 Nov 17, 2026 10:32pm UTC
workflow-tarballs Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC
workflow-web Ready Ready Preview, v0 Nov 17, 2026 10:32pm UTC

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

✅ All tests passed

⚠️ Flaky E2E Tests (passed on retry)

These tests failed at least once and passed on a retry. A recurring entry here is a real race worth investigating.

  • webhookWorkflow (nextjs-webpack · local-dev / local / node / stable)
  • webhookWorkflow (nextjs-turbopack · windows / local / node)

🛠 Infra Events (absorbed by the harness)

Platform anomalies the e2e harness detected and worked around (e.g. a run the queue never picked up, replaced by a fresh run). Clustered timestamps indicate a backend blip; a steady drip indicates a platform issue worth escalating.

  • run-pickup-stall · runs app-generated source against a registered step (tanstack-start) · at 22:34:36Z · abandoned wrun_01M7NTB6VW1BE6V5KVVRHDG0AW
  • cold-start-warmup · suite warmup (tanstack-start) · at 22:34:49Z · abandoned wrun_01M7NTB6X5N6GDKPF2MST7R7MK
  • run-pickup-stall · ChainableService.processWithThis - static step methods using this to reference the class (nextjs-turbopack) · at 22:38:26Z · abandoned wrun_01M7NTJ7181A34Z6PQVJSE38RB

E2E Test Summary

Summary
Passed Failed Skipped Total
✅ ▲ Vercel Production 4649 0 940 5589
✅ 💻 Local Development 5272 0 731 6003
✅ 📦 Local Production 5272 0 731 6003
✅ 🐘 Local Postgres 5417 0 586 6003
✅ 🪟 Windows 401 0 13 414
✅ 🌐 Cross-language Conformance 68 0 114 182
✅ dynamic-runs 0 0 0 0
✅ local-postgres-spec9 0 0 364 364
✅ local-spec9 409 0 5 414
✅ vercel-http-transport 1054 0 188 1242
✅ vercel-multi-region 27 0 0 27
✅ vercel-queue-hold 4 0 0 4
✅ vercel-spec9 395 0 19 414
✅ vercel-ws-transport 712 0 116 828
Total 23680 0 3807 27487
Details by Category

✅ ▲ Vercel Production

App Passed Failed Skipped
✅ astro-node 171 0 36
✅ astro-quickjs 170 0 37
✅ example-node 171 0 36
✅ example-quickjs 170 0 37
✅ express-node 171 0 36
✅ express-quickjs 170 0 37
✅ fastify-node 171 0 36
✅ fastify-quickjs 170 0 37
✅ hono-node 171 0 36
✅ hono-quickjs 170 0 37
✅ nest-node 171 0 36
✅ nest-quickjs 170 0 37
✅ nextjs-turbopack-node 199 0 8
✅ nextjs-turbopack-quickjs 198 0 9
✅ nextjs-webpack-node 199 0 8
✅ nextjs-webpack-quickjs 198 0 9
✅ nitro-node 171 0 36
✅ nitro-quickjs 170 0 37
✅ nuxt-node 171 0 36
✅ nuxt-quickjs 170 0 37
✅ python-node 66 0 141
✅ sveltekit-node 190 0 17
✅ sveltekit-quickjs 189 0 18
✅ tanstack-start-node 171 0 36
✅ tanstack-start-quickjs 170 0 37
✅ vite-node 171 0 36
✅ vite-quickjs 170 0 37

✅ 💻 Local Development

App Passed Failed Skipped
✅ astro-stable-node 172 0 35
✅ astro-stable-quickjs 171 0 36
✅ express-stable-node 172 0 35
✅ express-stable-quickjs 171 0 36
✅ fastify-stable-node 172 0 35
✅ fastify-stable-quickjs 171 0 36
✅ hono-stable-node 172 0 35
✅ hono-stable-quickjs 171 0 36
✅ nest-stable-node 172 0 35
✅ nest-stable-quickjs 171 0 36
✅ nextjs-turbopack-canary-node 201 0 6
✅ nextjs-turbopack-canary-quickjs 200 0 7
✅ nextjs-turbopack-quickjs-snapshot 200 0 7
✅ nextjs-turbopack-stable-node 201 0 6
✅ nextjs-turbopack-stable-quickjs 200 0 7
✅ nextjs-webpack-canary-node 201 0 6
✅ nextjs-webpack-canary-quickjs 200 0 7
✅ nextjs-webpack-stable-node 201 0 6
✅ nextjs-webpack-stable-quickjs 200 0 7
✅ nitro-stable-node 172 0 35
✅ nitro-stable-quickjs 171 0 36
✅ nuxt-stable-node 172 0 35
✅ nuxt-stable-quickjs 171 0 36
✅ sveltekit-stable-node 191 0 16
✅ sveltekit-stable-quickjs 190 0 17
✅ tanstack-start-node 172 0 35
✅ tanstack-start-quickjs 171 0 36
✅ vite-stable-node 172 0 35
✅ vite-stable-quickjs 171 0 36

✅ 📦 Local Production

App Passed Failed Skipped
✅ astro-stable-node 172 0 35
✅ astro-stable-quickjs 171 0 36
✅ express-stable-node 172 0 35
✅ express-stable-quickjs 171 0 36
✅ fastify-stable-node 172 0 35
✅ fastify-stable-quickjs 171 0 36
✅ hono-stable-node 172 0 35
✅ hono-stable-quickjs 171 0 36
✅ nest-stable-node 172 0 35
✅ nest-stable-quickjs 171 0 36
✅ nextjs-turbopack-canary-node 201 0 6
✅ nextjs-turbopack-canary-quickjs 200 0 7
✅ nextjs-turbopack-quickjs-snapshot 200 0 7
✅ nextjs-turbopack-stable-node 201 0 6
✅ nextjs-turbopack-stable-quickjs 200 0 7
✅ nextjs-webpack-canary-node 201 0 6
✅ nextjs-webpack-canary-quickjs 200 0 7
✅ nextjs-webpack-stable-node 201 0 6
✅ nextjs-webpack-stable-quickjs 200 0 7
✅ nitro-stable-node 172 0 35
✅ nitro-stable-quickjs 171 0 36
✅ nuxt-stable-node 172 0 35
✅ nuxt-stable-quickjs 171 0 36
✅ sveltekit-stable-node 191 0 16
✅ sveltekit-stable-quickjs 190 0 17
✅ tanstack-start-node 172 0 35
✅ tanstack-start-quickjs 171 0 36
✅ vite-stable-node 172 0 35
✅ vite-stable-quickjs 171 0 36

✅ 🐘 Local Postgres

App Passed Failed Skipped
✅ astro-stable-node 177 0 30
✅ astro-stable-quickjs 176 0 31
✅ express-stable-node 177 0 30
✅ express-stable-quickjs 176 0 31
✅ fastify-stable-node 177 0 30
✅ fastify-stable-quickjs 176 0 31
✅ hono-stable-node 177 0 30
✅ hono-stable-quickjs 176 0 31
✅ nest-stable-node 177 0 30
✅ nest-stable-quickjs 176 0 31
✅ nextjs-turbopack-canary-node 206 0 1
✅ nextjs-turbopack-canary-quickjs 205 0 2
✅ nextjs-turbopack-quickjs-snapshot 205 0 2
✅ nextjs-turbopack-stable-node 206 0 1
✅ nextjs-turbopack-stable-quickjs 205 0 2
✅ nextjs-webpack-canary-node 206 0 1
✅ nextjs-webpack-canary-quickjs 205 0 2
✅ nextjs-webpack-stable-node 206 0 1
✅ nextjs-webpack-stable-quickjs 205 0 2
✅ nitro-stable-node 177 0 30
✅ nitro-stable-quickjs 176 0 31
✅ nuxt-stable-node 177 0 30
✅ nuxt-stable-quickjs 176 0 31
✅ sveltekit-stable-node 196 0 11
✅ sveltekit-stable-quickjs 195 0 12
✅ tanstack-start-node 177 0 30
✅ tanstack-start-quickjs 176 0 31
✅ vite-stable-node 177 0 30
✅ vite-stable-quickjs 176 0 31

✅ 🪟 Windows

App Passed Failed Skipped
✅ nextjs-turbopack-node 201 0 6
✅ nextjs-turbopack-quickjs 200 0 7

✅ 🌐 Cross-language Conformance

App Passed Failed Skipped
✅ python 68 0 114

✅ dynamic-runs

App Passed Failed Skipped
✅ astro-vercel 0 0 0
✅ example-vercel 0 0 0
✅ express-vercel 0 0 0
✅ fastify-vercel 0 0 0
✅ hono-vercel 0 0 0
✅ nest-vercel 0 0 0
✅ nextjs-turbopack-vercel 0 0 0
✅ nextjs-webpack-vercel 0 0 0
✅ nitro-vercel 0 0 0
✅ nuxt-vercel 0 0 0
✅ sveltekit-vercel 0 0 0
✅ tanstack-start-vercel 0 0 0
✅ vite-vercel 0 0 0

✅ local-postgres-spec9

App Passed Failed Skipped
✅ nextjs-turbopack-stable-node 0 0 182
✅ nextjs-turbopack-stable-quickjs 0 0 182

✅ local-spec9

App Passed Failed Skipped
✅ nextjs-turbopack-node 205 0 2
✅ nextjs-turbopack-quickjs 204 0 3

✅ vercel-http-transport

App Passed Failed Skipped
✅ example 171 0 36
✅ express 171 0 36
✅ hono 171 0 36
✅ nextjs-turbopack 199 0 8
✅ nitro 171 0 36
✅ vite 171 0 36

✅ vercel-multi-region

App Passed Failed Skipped
✅ nextjs-turbopack 27 0 0

✅ vercel-queue-hold

App Passed Failed Skipped
✅ nextjs-turbopack 4 0 0

✅ vercel-spec9

App Passed Failed Skipped
✅ nextjs-turbopack-node 198 0 9
✅ nextjs-turbopack-quickjs 197 0 10

✅ vercel-ws-transport

App Passed Failed Skipped
✅ example 171 0 36
✅ express 171 0 36
✅ nextjs-turbopack 199 0 8
✅ vite 171 0 36

📋 View full workflow run

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📊 Workflow Benchmarks

commit 0d42e1c · Tue, 17 Nov 2026 22:45:43 GMT · run logs

Backend: vercel · app: nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 282 (+11%) 2138 🔴 (+54%) 🔻 2157 🔴 (+40%) 🔻 2245 🔴 (+42%) 🔻 30
TTFS stream 264 (+18%) 🔻 1844 🔴 (+23%) 🔻 1901 🔴 (+23%) 🔻 2108 🔴 (+29%) 🔻 30
TTFS hook + stream 431 (+21%) 🔻 2086 🔴 (+28%) 🔻 2130 🔴 (+28%) 🔻 2280 🔴 (+29%) 🔻 30
Fan-out TTFS Promise.all(100 steps) 336 (+8.4%) 622 (-8.4%) 625 (-62%) 💚 2170 (+27%) 🔻 10
Fan-out TTLS Promise.all(100 steps) 1084 (-23%) 💚 4124 (+1.5%) 4126 (+1.5%) 6300 (+26%) 🔻 10
STSO 1020 steps (inline) 107 (+8.1%) 128 (±0%) 145 (-2.7%) 241 (+14%) 1019
WO 1020 steps 128778 (±0%) 128778 (±0%) 128778 (±0%) 128778 (±0%) 1
📈 STSO distribution vs main (inline / queue-hop histograms)

1020 steps (inline)

Cumulative STSO time: main 128901ms → this run 128445ms (Δ -456ms, 0%)

 50-100 ms  ┃                         main   1  this   0    -1
100-150 ms  ███████████████████████┃  main 919  this 936   +17
150-200 ms  █┃                        main  79  this  66   -13
200-250 ms  ┃                         main  17  this   9    -8
250-300 ms  ┃                         main   1  this   6    +5
300-350 ms  ┃                         main   1  this   0    -1
350-400 ms  ┃                         main   0  this   1    +1
500-550 ms  ┃                         main   1  this   1    +0
📜 Previous results (2)

f07b2b5

Tue, 17 Nov 2026 22:20:02 GMT · run logs

vercel / nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 1680 (+76%) 🔻 1808 🔴 (+23%) 🔻 1839 🔴 (+20%) 🔻 1933 🔴 (+21%) 🔻 30
TTFS stream 339 (-75%) 💚 2026 🔴 (+39%) 🔻 2057 🔴 (+40%) 🔻 2141 🔴 (+37%) 🔻 30
TTFS hook + stream 2173 (+74%) 🔻 2321 🔴 (+35%) 🔻 2360 🔴 (+31%) 🔻 2721 🔴 (+24%) 🔻 30
Fan-out TTFS Promise.all(100 steps) 329 (-6.5%) 534 (-23%) 💚 577 (-35%) 💚 2546 (+59%) 🔻 10
Fan-out TTLS Promise.all(100 steps) 2261 (+19%) 🔻 3712 (-5.7%) 3724 (-13%) 7992 (+23%) 🔻 10
STSO 1020 steps (inline) 74 (-5.1%) 96 (-9.4%) 111 (-15%) 158 (-37%) 💚 1019
WO 1020 steps 96452 (-9.6%) 96452 (-9.6%) 96452 (-9.6%) 96452 (-9.6%) 1

fb1c93d

Tue, 17 Nov 2026 21:35:10 GMT · run logs

vercel / nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 515 (-44%) 💚 1926 🔴 (+28%) 🔻 1939 🔴 (+26%) 🔻 1972 🔴 (-4.2%) 30
TTFS stream 1574 (+23%) 🔻 1879 🔴 (+27%) 🔻 1903 🔴 (+25%) 🔻 1977 🔴 (+27%) 🔻 30
TTFS hook + stream 1954 (+31%) 🔻 2123 🔴 (+34%) 🔻 2181 🔴 (+35%) 🔻 2310 🔴 (+27%) 🔻 30
Fan-out TTFS Promise.all(100 steps) 270 (-20%) 💚 1042 (-36%) 💚 2239 (+33%) 🔻 2290 (+28%) 🔻 10
Fan-out TTLS Promise.all(100 steps) 2470 (+119%) 🔻 4178 (-15%) 💚 4297 (-14%) 4892 (-15%) 💚 10
STSO 1020 steps (inline) 69 (+25%) 🔻 127 (+28%) 🔻 151 (+28%) 🔻 280 (+73%) 🔻 1019
WO 1020 steps 128836 (+29%) 🔻 128836 (+29%) 🔻 128836 (+29%) 🔻 128836 (+29%) 🔻 1
ℹ️ Metric definitions & methodology

The collapsed STSO distribution section above buckets every step gap, split inline (same warm process — pure framework overhead) vs queue-hop (fresh process — dispatch, reinit, replay). █ = main, ┃ = this run, ░ = fill.

Best/P75/P90/P99 deltas compare against the most recent benchmark run on main at the time of this run. 🔻 flags a delta worse than +15%, 💚 one better than −15%.

Metrics — TTFS: time to first step body (in-deployment start() → first step body) · Fan-out TTFS: fan-out time to first step (in-deployment start() → first of the parallel step bodies to complete) · Fan-out TTLS: fan-out time to last step (in-deployment start() → last of the parallel step bodies to complete, i.e. when the Promise.all resolves) · STSO: step-to-step overhead (gap between consecutive step bodies) · WO: workflow overhead (whole-run time outside step bodies, in-deployment anchored)

Scenarios — step: one trivial no-op step, no stream; no hooks, so the run stays in turbo mode (in-process fast path) · stream: one streaming step; no hooks, so the run stays in turbo mode (in-process fast path) · hook + stream: registers a hook before one step, which exits turbo mode (dispatch path) · 1020 steps: 1020 trivial sequential steps; STSO is measured between consecutive steps in the given step ranges, and WO is the whole-run overhead outside step bodies · Promise.all(100 steps): 100 trivial no-op steps started together in a single Promise.all; Fan-out TTFS is the first of them to complete and Fan-out TTLS the last, both from the in-deployment clientStart, so their gap is the spread the runtime adds across the fan-out

🔴 marks a percentile over its target (within target is left unmarked). Targets (p75/p90/p99, ms) — TTFS 200/300/600

All timestamps are deployment-side; runs are triggered in-deployment, so the CI runner and api.vercel.com sit outside every measured window. TTFS = start() → first step body (includes dispatch + any cold start); Fan-out TTFS/TTLS = first/last step completion of one Promise.all from the same anchor (the gap is the runtime’s fan-out spread); STSO/WO between step bodies. Streaming delivery performance is measured in durabench.

Cold starts stay in the numbers (real bursty-workload latency, inflates P75+); Best is the warm floor.

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Sim World

Simulated world deterministic testing for races. Traces

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

Full trace: world-sim.txt

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor
Framework Flow route Step reg. Framework output
hono 306.2 KiB (±0) 124.0 KiB (±0) 2.39 MiB (±0)
nextjs-turbopack 397.8 KiB (±0) 491 B (±0) 1.13 MiB (±0)
About these numbers

Sizes are gzip; parentheses show the change against main.
Flow route and Step reg. gate this job, on raw bytes rather than the gzip shown, at max(2%, 50.0 KiB). Framework output is informational.

0d42e1c · run

@mitul-s
mitul-s marked this pull request as ready for review November 17, 2026 22:32
@mitul-s
mitul-s requested a review from a team as a code owner November 17, 2026 22:32
@mitul-s
mitul-s enabled auto-merge (squash) November 17, 2026 22:43
@mitul-s
mitul-s merged commit 8fb5ba8 into main Nov 17, 2026
199 checks passed
@mitul-s
mitul-s deleted the web-shared/delete-dead-code branch November 17, 2026 22:45
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 8fb5ba8 (AI decision).

This is a dead-code cleanup and refactor of @workflow/web-shared, not a fix for a defect. It also removes public exports and the @workflow/web-shared/components entry point (e.g. hydrateResourceIOWithKey, MenuDropdown, the materialize* helpers), which would be a breaking API change for consumers on the maintenance line.

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

8fb5ba8ad56f4ec0dc668f114ebe4cc065da6901

@github-actions github-actions Bot mentioned this pull request Nov 17, 2026
mitul-s added a commit that referenced this pull request Nov 17, 2026
…s on Button (#5522)

### What

The observability UI's loading buttons and spinners now render through a
single `Button` and a single `Spinner`. Their sizes, slots, focus ring
and loading state match the design system's button pixel for pixel.
`LoadMoreButton` and the `tiny` size are gone.

### Why

`LoadMoreButton` and `DecryptButton` each built their own secondary
button out of injected `<style>` tags, and spinners were drawn three
different ways. As a result, heights, hover fills, disabled styles and
focus rings all varied. With one `Button`, those details live in one
place.

### Preview

[Observability UI
preview](https://workflow-web-git-web-shared-button-variants.labs.vercel.dev)

1. Tab to **Health Check**. A 2px focus ring replaces the border, with a
2px gap.
2. Click **Health Check**. The spinner takes the icon's slot and the
label stays put.
3. Select runs. **Re-enqueue** and **Cancel** show the same spinner
while working.
4. On a run with more than one page of events, open **Events**. **Load
more** shows the spinner while loading.

### Changes

- **`Button`**
- The label has its own span with 6px of padding, which truncates when
the button is squeezed. It sits between a 20px prefix slot and a suffix
slot, and `asChild` gets the same structure.
- `loading` disables the button, sets `aria-busy`, and swaps the prefix
for a spinner sized to the button: 12px at small, 16px at medium, 20px
at large.
  - Slot icons are 14px, and labels use a 1.5× line height.
  - Keyboard focus draws `--ds-focus-ring` in place of the border.
  - Disabled `tertiary` keeps its text colour, at 50% opacity.
  - `tiny` is removed.
- **`Spinner`** takes named sizes from `sm` to `4xl`, defaulting to `lg`
(20px). It's sized with classes and drawn from one table of line sizes,
angles, delays and durations. It paints with `currentColor`, and its
keyframes live in `styles.css`.
- **`LoadMoreButton`** is removed. The Events list renders a secondary
`Button` with `loading` instead.
- **`DecryptButton`** is a small secondary `Button` with a
`Lock`/`LockOpen` prefix.
- **Call sites**
- Icons go in `prefix`/`suffix`: Replay, Cancel, Newest, Previous/Next,
Docs, Health Check, and the bulk actions.
  - The Refresh buttons use `loading`.
  - Icon-only buttons use `shape="square"`.
  - Buttons that used `tiny` are now `small`.
- **`IconButton`** drops `muted`, which was the same as the default.
- **Comments** in `styles.css` and `runs-table.tsx` describe this code
on its own terms.

**Public API:**
- `Button`'s `size="tiny"` is removed.
- `Spinner` drops pixel sizes and the `color` prop, and defaults to
20px.

`LoadMoreButton` and `IconButton` were already removed from the
package's exports on `main` (#5542).

### How did you test your changes?

- **Rendered comparison** against the reference implementation, in light
and dark, at rest, on hover and with keyboard focus. It covered 132
button cases (every variant, size and content, including a long label
that truncates), all 7 spinner sizes, and the load-more button.
- Computed styles, element positions and screenshots all match. This
revision ran in Chromium; WebKit matched on the previous one.
  - The only differences aren't visual:
    - loading buttons set `aria-busy`;
    - buttons default to `type="button"`;
- the spinner is a `<span>`, because a `<div>` isn't valid inside a
button.
- Under the standalone app's stylesheet, the extra differences come from
app tokens, not `Button`: the page doesn't set the `ss11`/`calt` font
features, and `--ds-focus-color` is a shade off.
- **In the app:** Health Check, Newest, Refresh and Docs measure the
same as the reference.
- `pnpm turbo typecheck test build --filter=@workflow/web-shared
--filter=@workflow/web`: 12 of 12 tasks passed. web-shared passed 281
tests and web passed 160.
- `test/button.test.ts` covers loading, idle and `asChild` rendering,
and the spinner size for each button size.
- `pnpm biome check`: no errors on the changed files.

### PR Checklist - Required to merge

- [x] 📦 `pnpm changeset` was run to create a changelog for this PR
- [x] 🔒 DCO sign-off passes (run `git commit --signoff` on your commits)
- [ ] 📝 Ping `@vercel/workflow` in a comment once the PR is ready, and
the above checklist is complete

_Written by Claude Opus 5.5_

---------

Signed-off-by: mitul-s <[email protected]>
Co-authored-by: vercel-v[bot] <353008837+vercel-v[bot]@users.noreply.github.com>
mitul-s added a commit that referenced this pull request Dec 1, 2026
### What

Deletes dead code in `@workflow/web`: unused components, hooks, server
actions, styles and dependencies. This is the web half of #5529. The
`@workflow/web-shared` half is in #5542, and the two PRs don't depend on
each other.

### Why

Nothing runs this code, but it still has to be maintained and reviewed.
#5529 is split into one PR per package so each one can be reviewed and
land on its own.

### Preview

[workflow-web
preview](https://workflow-web-git-web-delete-dead-code.labs.vercel.dev/?tab=workflows)

1. On the Workflows tab, open a workflow's graph and check that loop,
conditional (diamond) and self-loop nodes still render.
2. Open a run, go to `?tab=graph`, and check the execution graph the
same way.
3. On the run page, check that the run actions (replay, wake up, cancel)
still work.

#### Deleted files

- `display-utils/side-panel.tsx`,
`display-utils/page-size-dropdown.tsx`, `display-utils/rerun-button.tsx`
- `ui/input.tsx`, `ui/label.tsx`, `ui/switch.tsx`
- `lib/config-world.server.ts`, `lib/known-worlds.ts`

#### Other removals

- `useLazyEvents` in `run-actions.tsx`.
- Eight URL-state hooks (`useSidebarState`, `useThemeState`,
`useTabState`, `useHookIdState`, `useStepIdState`, `useEventIdState`,
`useStreamIdState`, `useWorkflowIdState`) and the `useUrlParam` helper
they shared.
- `readStreamServerAction`, which the `/api/stream/:streamId` route
replaced.
- Unused re-exports in the `workflow-api-client.ts` barrel.
- Dropped `export` from flow-graph helpers that only
`workflow-graph-viewer.tsx` uses.
- The unused `@keyframes gradient` in `app/globals.css`.
- Dependencies nothing imports: `shiki`, `@radix-ui/react-label`,
`@radix-ui/react-switch` and `cross-env`. The lockfile diff only deletes
lines.

The changeset is a `patch` because nothing here is part of a public API.

#### Differences from #5529

#5529's sync with `main` took `main`'s copies of conflicting files. That
brought back `ui/input.tsx`, `ui/label.tsx` and `ui/switch.tsx`, the
flow-graph `export`s, `@keyframes gradient` and the four dependencies.
All of them are still unused on `main`, so this PR removes them again.
The `workflow-graph-viewer.tsx` conflict keeps `main`'s lucide icons
from #5537.

### How did you test your changes?

- `pnpm turbo test build --filter=@workflow/web`: 10/10 tasks passed.
`web` has no `typecheck` script.
- `pnpm vitest run` in `packages/web`: 24 files, 160 tests passed.
- `react-router typegen && tsc --noEmit` in `packages/web` (CI doesn't
run it): 19 errors. Every one is also on `main`, and none is in a file
this PR touches.
- `pnpm biome check packages/web`: no errors.
- Merged with #5542 locally: no conflicts, and `pnpm install
--lockfile-only` leaves the combined lockfile unchanged.
- Visuals were not rendered. Nothing deleted here was imported or
referenced by code that runs.

### PR Checklist - Required to merge

- [x] 📦 `pnpm changeset` was run to create a changelog for this PR
- Use the correct semver bump type: `patch` for bug fixes, `minor` for
new features, `major` for breaking changes.
- Use `pnpm changeset --empty` if you are changing documentation or
workbench apps
- [x] 🔒 DCO sign-off passes (run `git commit --signoff` on your commits)
- [ ] 📝 Ping `@vercel/workflow` in a comment once the PR is ready, and
the above checklist is complete

_Written by fx_

Signed-off-by: mitul-s <[email protected]>
Co-authored-by: mitul-s <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – workflow-docs — 0d42e1cf Deployed Nov 17, 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