Skip to content

Fix step functions nested multiple levels deep in an object - #923

Merged
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object
Feb 7, 2026
Merged

Fix step functions nested multiple levels deep in an object#923
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
Member

Fixed a bug where step functions nested multiple levels deep in an object weren't being properly transformed.

What changed?

  • Enhanced the SWC plugin to recursively process nested objects to find step functions
  • Added support for step functions defined inside deeply nested object properties, including function call arguments
  • Implemented proper path handling for nested step IDs, using compound paths (e.g., vade/tools/VercelRequest/execute)
  • Fixed variable name generation by replacing slashes with $ to create valid JavaScript identifiers
  • Updated documentation with examples of nested object property step functions
  • Added test cases for deeply nested step functions and agent tool steps

How to test?

Test with code that has step functions nested multiple levels deep in objects:

exportconstconfig=createConfig({level1: {level2: {level3: {myStep: async(input)=>{"use step";returninput*2;},},},},});

Or with agent tools:

exportconstvade=agent({tools: {VercelRequest: {execute: async(input,ctx)=>{"use step";return1+1;},},},});

Why make this change?

This fix ensures that step functions can be properly identified and transformed regardless of how deeply they are nested in object structures. This is particularly important for complex configurations like agent tools where step functions might be several levels deep in the object hierarchy.

@changeset-bot

changeset-botBot commented Feb 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8cee6a5

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-2.7%)1.006s (~)0.974s101.00x
💻 LocalExpress0.033s (+2.8%)1.007s (~)0.975s101.02x
💻 LocalNext.js (Turbopack)0.047s1.008s0.961s101.47x
🐘 PostgresNitro0.104s (-77.0% 🟢)1.011s (~)0.907s103.23x
🐘 PostgresExpress0.190s (+6.5% 🔺)1.012s (~)0.822s105.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.720s (-14.3% 🟢)2.100s (-1.8%)1.380s101.00x
▲ VercelNext.js (Turbopack)0.872s (+5.5% 🔺)2.245s (+2.7%)1.373s101.21x
▲ VercelNitro0.924s (-23.1% 🟢)2.246s (-17.3% 🟢)1.322s101.28x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s2.006s0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.901s101.00x
💻 LocalExpress1.106s (~)2.005s (~)0.899s101.00x
🐘 PostgresExpress2.195s (-4.4%)3.013s (~)0.818s101.99x
🐘 PostgresNitro2.477s (+4.4%)3.014s (~)0.536s102.24x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.688s (-1.7%)3.788s (+1.7%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.695s (-1.8%)3.701s (+3.1%)1.006s101.00x
▲ VercelExpress2.712s (-0.8%)3.651s (-8.6% 🟢)0.939s101.01x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.744s11.021s0.276s31.00x
💻 LocalNitro10.818s (~)11.020s (~)0.202s31.01x
💻 LocalExpress10.830s (~)11.022s (~)0.192s31.01x
🐘 PostgresNitro20.329s (~)21.059s (~)0.729s21.89x
🐘 PostgresExpress20.413s (~)21.055s (~)0.642s21.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.535s (-2.0%)20.698s (-0.8%)1.163s21.00x
▲ VercelNitro20.051s (+1.1%)20.989s (-2.8%)0.938s21.03x
▲ VercelNext.js (Turbopack)20.418s (+0.8%)21.251s (-2.0%)0.833s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.274s28.039s0.766s31.00x
💻 LocalNitro27.457s (~)28.043s (~)0.586s31.01x
💻 LocalExpress27.478s (~)28.040s (~)0.563s31.01x
🐘 PostgresExpress38.264s (-23.8% 🟢)38.589s (-24.5% 🟢)0.325s21.40x
🐘 PostgresNitro50.351s (~)51.122s (~)0.771s21.85x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express48.803s (-1.9%)50.129s (-1.3%)1.327s21.00x
▲ VercelNitro49.538s (+0.5%)51.129s (+1.6%)1.591s21.02x
▲ VercelNext.js (Turbopack)49.987s (-2.2%)50.996s (-2.1%)1.009s21.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.733s57.102s0.369s21.00x
💻 LocalExpress57.158s (~)58.101s (~)0.943s21.01x
💻 LocalNitro57.184s (~)58.098s (+1.8%)0.913s21.01x
🐘 PostgresNitro75.221s (-25.0% 🟢)75.662s (-25.3% 🟢)0.441s21.33x
🐘 PostgresExpress76.508s (-23.8% 🟢)77.174s (-23.8% 🟢)0.665s21.35x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro104.207s (-1.1%)105.570s (-1.1%)1.363s11.00x
▲ VercelExpress105.439s (+0.8%)106.653s (~)1.214s11.01x
▲ VercelNext.js (Turbopack)108.473s (-1.0%)109.290s (-1.7%)0.817s11.04x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.402s (~)2.005s (~)0.603s151.00x
💻 LocalNext.js (Turbopack)1.419s2.005s0.586s151.01x
💻 LocalExpress1.420s (~)2.005s (~)0.585s151.01x
🐘 PostgresNitro2.016s (-16.2% 🟢)2.597s (-13.8% 🟢)0.581s121.44x
🐘 PostgresExpress2.174s (-10.9% 🟢)2.830s (-6.1% 🟢)0.656s111.55x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.060s (+18.2% 🔺)4.116s (+17.4% 🔺)1.056s81.00x
▲ VercelExpress3.177s (+11.1% 🔺)4.376s (+16.7% 🔺)1.200s71.04x
▲ VercelNext.js (Turbopack)3.420s (+13.9% 🔺)4.504s (+12.8% 🔺)1.084s71.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.512s (-4.9%)3.007s (~)0.495s101.00x
💻 LocalNitro2.577s (+0.8%)3.007s (~)0.430s101.03x
💻 LocalNext.js (Turbopack)2.607s3.007s0.400s101.04x
🐘 PostgresNitro9.381s (+9.1% 🔺)10.044s (+11.3% 🔺)0.663s33.73x
🐘 PostgresExpress9.787s (+24.2% 🔺)10.364s (+25.2% 🔺)0.577s33.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.157s (~)4.259s (-2.0%)1.102s81.00x
▲ VercelNitro3.461s (+6.1% 🔺)4.544s (+4.2%)1.084s71.10x
▲ VercelNext.js (Turbopack)3.836s (+21.2% 🔺)5.322s (+29.0% 🔺)1.486s61.22x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express7.270s (-4.6%)8.027s (~)0.757s41.00x
💻 LocalNitro7.447s (+3.9%)8.019s (~)0.572s41.02x
💻 LocalNext.js (Turbopack)7.728s8.267s0.540s41.06x
🐘 PostgresExpress50.987s (+4.0%)51.106s (+4.0%)0.119s17.01x
🐘 PostgresNitro51.006s (+3.7%)51.113s (+2.0%)0.107s17.02x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.405s (+64.4% 🔺)6.849s (+47.2% 🔺)1.444s51.00x
▲ VercelNext.js (Turbopack)7.246s (+91.6% 🔺)8.526s (+68.3% 🔺)1.280s41.34x
▲ VercelNitro7.717s (+105.8% 🔺)9.157s (+73.5% 🔺)1.440s41.43x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.419s2.004s0.586s151.00x
💻 LocalNitro1.420s (~)2.005s (~)0.585s151.00x
💻 LocalExpress1.422s (~)2.005s (~)0.582s151.00x
🐘 PostgresNitro2.102s (+2.9%)2.513s (-8.3% 🟢)0.410s121.48x
🐘 PostgresExpress2.117s (+12.1% 🔺)2.740s (+5.6% 🔺)0.623s111.49x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.754s (-4.4%)3.694s (-6.8% 🟢)0.940s91.00x
▲ VercelExpress2.882s (+5.7% 🔺)3.859s (+6.8% 🔺)0.977s91.05x
▲ VercelNitro3.001s (+13.7% 🔺)4.203s (+14.4% 🔺)1.202s81.09x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.625s3.007s0.382s101.00x
💻 LocalNitro2.660s (~)3.007s (~)0.347s101.01x
💻 LocalExpress2.676s (-1.0%)3.007s (~)0.331s101.02x
🐘 PostgresNitro12.026s (+2.3%)12.705s (+5.6% 🔺)0.680s34.58x
🐘 PostgresExpress12.034s (+15.0% 🔺)12.697s (+15.1% 🔺)0.663s34.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.854s (-11.2% 🟢)3.994s (-22.6% 🟢)1.140s81.00x
▲ VercelNext.js (Turbopack)3.073s (-5.4% 🟢)4.361s (+0.8%)1.288s71.08x
▲ VercelNitro3.077s (~)4.475s (-14.4% 🟢)1.399s71.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro7.662s (-4.5%)8.020s (-5.9% 🟢)0.358s41.00x
💻 LocalExpress7.846s (~)8.269s (+3.0%)0.423s41.02x
💻 LocalNext.js (Turbopack)8.075s8.517s0.442s41.05x
🐘 PostgresExpress51.742s (~)52.140s (~)0.398s16.75x
🐘 PostgresNitro54.465s (~)55.111s (~)0.646s17.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.344s (-2.8%)4.576s (-2.8%)1.233s71.00x
▲ VercelNitro3.719s (+4.5%)5.147s (~)1.428s71.11x
▲ VercelNext.js (Turbopack)3.739s (~)5.245s (+1.2%)1.507s61.12x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.144s1.001s0.010s1.015s0.871s101.00x
💻 LocalNitro0.170s (-0.9%)1.002s (~)0.010s (-2.9%)1.015s (~)0.846s101.17x
💻 LocalExpress0.172s (+1.2%)1.002s (~)0.010s (-1.0%)1.015s (~)0.843s101.19x
🐘 PostgresExpress1.169s (-51.3% 🟢)1.938s (-26.6% 🟢)0.001s (+16.7% 🔺)2.013s (-33.2% 🟢)0.844s108.10x
🐘 PostgresNitro1.272s (-48.1% 🟢)1.768s (-31.7% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.741s108.81x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.446s (-4.5%)2.871s (-3.9%)0.172s (-30.1% 🟢)3.732s (-5.5% 🟢)1.285s101.00x
▲ VercelExpress2.625s (+2.2%)3.197s (+14.0% 🔺)0.181s (-19.8% 🟢)3.998s (+7.1% 🔺)1.374s101.07x
▲ VercelNext.js (Turbopack)2.700s (~)3.167s (+5.2% 🔺)0.295s (+7.2% 🔺)4.153s (+5.1% 🔺)1.453s101.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)7/12
🐘 PostgresNitro7/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local11/12
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development408062470
✅ 📦 Local Production408062470
✅ 🐘 Local Postgres408062470
✅ 🪟 Windows440347
❌ 🌍 Community Worlds3115712200
✅ 📋 Other120021141
Total18981572602315

❌ Failed Tests

🌍 Community Worlds (157 failed)

mongodb (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4403
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5393
✅ redis-dev300
❌ redis5393
✅ starter-dev300
❌ starter4403
✅ turso-dev300
❌ turso5393
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4007
✅ e2e-local-postgres-nest-stable4007
✅ e2e-local-prod-nest-stable4007

📋 View full workflow run

@vercel

vercelBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackErrorErrorFeb 7, 2026 8:51am
example-nextjs-workflow-webpackErrorErrorFeb 7, 2026 8:51am
example-workflowErrorErrorFeb 7, 2026 8:51am
workbench-astro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-express-workflowErrorErrorFeb 7, 2026 8:51am
workbench-fastify-workflowErrorErrorFeb 7, 2026 8:51am
workbench-hono-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nitro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nuxt-workflowErrorErrorFeb 7, 2026 8:51am
workbench-sveltekit-workflowErrorErrorFeb 7, 2026 8:51am
workbench-vite-workflowErrorErrorFeb 7, 2026 8:51am
workflow-docsErrorErrorFeb 7, 2026 8:51am
workflow-nestErrorErrorFeb 7, 2026 8:51am
workflow-swc-playgroundErrorErrorFeb 7, 2026 8:51am

@TooTallNateGraphite App

TooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
MemberAuthor

- Add test fixture for shorthand method syntax (async execute() { ... }) in nested object properties
- Fix bug where slash characters weren't being replaced with $ in variable references for shorthand methods
- Update spec.md to document shorthand method syntax support
This addresses the PR review comment asking about non-arrow functions in nested object step properties.
Sign up for freeto 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.

4 participants

@TooTallNate@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Fix step functions nested multiple levels deep in an object by TooTallNate · Pull Request #923 · vercel/workflow · GitHub
Skip to content

Fix step functions nested multiple levels deep in an object - #923

Merged
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object
Feb 7, 2026
Merged

Fix step functions nested multiple levels deep in an object#923
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
Member

Fixed a bug where step functions nested multiple levels deep in an object weren't being properly transformed.

What changed?

  • Enhanced the SWC plugin to recursively process nested objects to find step functions
  • Added support for step functions defined inside deeply nested object properties, including function call arguments
  • Implemented proper path handling for nested step IDs, using compound paths (e.g., vade/tools/VercelRequest/execute)
  • Fixed variable name generation by replacing slashes with $ to create valid JavaScript identifiers
  • Updated documentation with examples of nested object property step functions
  • Added test cases for deeply nested step functions and agent tool steps

How to test?

Test with code that has step functions nested multiple levels deep in objects:

exportconstconfig=createConfig({level1: {level2: {level3: {myStep: async(input)=>{"use step";returninput*2;},},},},});

Or with agent tools:

exportconstvade=agent({tools: {VercelRequest: {execute: async(input,ctx)=>{"use step";return1+1;},},},});

Why make this change?

This fix ensures that step functions can be properly identified and transformed regardless of how deeply they are nested in object structures. This is particularly important for complex configurations like agent tools where step functions might be several levels deep in the object hierarchy.

@changeset-bot

changeset-botBot commented Feb 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8cee6a5

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-2.7%)1.006s (~)0.974s101.00x
💻 LocalExpress0.033s (+2.8%)1.007s (~)0.975s101.02x
💻 LocalNext.js (Turbopack)0.047s1.008s0.961s101.47x
🐘 PostgresNitro0.104s (-77.0% 🟢)1.011s (~)0.907s103.23x
🐘 PostgresExpress0.190s (+6.5% 🔺)1.012s (~)0.822s105.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.720s (-14.3% 🟢)2.100s (-1.8%)1.380s101.00x
▲ VercelNext.js (Turbopack)0.872s (+5.5% 🔺)2.245s (+2.7%)1.373s101.21x
▲ VercelNitro0.924s (-23.1% 🟢)2.246s (-17.3% 🟢)1.322s101.28x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s2.006s0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.901s101.00x
💻 LocalExpress1.106s (~)2.005s (~)0.899s101.00x
🐘 PostgresExpress2.195s (-4.4%)3.013s (~)0.818s101.99x
🐘 PostgresNitro2.477s (+4.4%)3.014s (~)0.536s102.24x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.688s (-1.7%)3.788s (+1.7%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.695s (-1.8%)3.701s (+3.1%)1.006s101.00x
▲ VercelExpress2.712s (-0.8%)3.651s (-8.6% 🟢)0.939s101.01x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.744s11.021s0.276s31.00x
💻 LocalNitro10.818s (~)11.020s (~)0.202s31.01x
💻 LocalExpress10.830s (~)11.022s (~)0.192s31.01x
🐘 PostgresNitro20.329s (~)21.059s (~)0.729s21.89x
🐘 PostgresExpress20.413s (~)21.055s (~)0.642s21.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.535s (-2.0%)20.698s (-0.8%)1.163s21.00x
▲ VercelNitro20.051s (+1.1%)20.989s (-2.8%)0.938s21.03x
▲ VercelNext.js (Turbopack)20.418s (+0.8%)21.251s (-2.0%)0.833s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.274s28.039s0.766s31.00x
💻 LocalNitro27.457s (~)28.043s (~)0.586s31.01x
💻 LocalExpress27.478s (~)28.040s (~)0.563s31.01x
🐘 PostgresExpress38.264s (-23.8% 🟢)38.589s (-24.5% 🟢)0.325s21.40x
🐘 PostgresNitro50.351s (~)51.122s (~)0.771s21.85x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express48.803s (-1.9%)50.129s (-1.3%)1.327s21.00x
▲ VercelNitro49.538s (+0.5%)51.129s (+1.6%)1.591s21.02x
▲ VercelNext.js (Turbopack)49.987s (-2.2%)50.996s (-2.1%)1.009s21.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.733s57.102s0.369s21.00x
💻 LocalExpress57.158s (~)58.101s (~)0.943s21.01x
💻 LocalNitro57.184s (~)58.098s (+1.8%)0.913s21.01x
🐘 PostgresNitro75.221s (-25.0% 🟢)75.662s (-25.3% 🟢)0.441s21.33x
🐘 PostgresExpress76.508s (-23.8% 🟢)77.174s (-23.8% 🟢)0.665s21.35x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro104.207s (-1.1%)105.570s (-1.1%)1.363s11.00x
▲ VercelExpress105.439s (+0.8%)106.653s (~)1.214s11.01x
▲ VercelNext.js (Turbopack)108.473s (-1.0%)109.290s (-1.7%)0.817s11.04x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.402s (~)2.005s (~)0.603s151.00x
💻 LocalNext.js (Turbopack)1.419s2.005s0.586s151.01x
💻 LocalExpress1.420s (~)2.005s (~)0.585s151.01x
🐘 PostgresNitro2.016s (-16.2% 🟢)2.597s (-13.8% 🟢)0.581s121.44x
🐘 PostgresExpress2.174s (-10.9% 🟢)2.830s (-6.1% 🟢)0.656s111.55x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.060s (+18.2% 🔺)4.116s (+17.4% 🔺)1.056s81.00x
▲ VercelExpress3.177s (+11.1% 🔺)4.376s (+16.7% 🔺)1.200s71.04x
▲ VercelNext.js (Turbopack)3.420s (+13.9% 🔺)4.504s (+12.8% 🔺)1.084s71.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.512s (-4.9%)3.007s (~)0.495s101.00x
💻 LocalNitro2.577s (+0.8%)3.007s (~)0.430s101.03x
💻 LocalNext.js (Turbopack)2.607s3.007s0.400s101.04x
🐘 PostgresNitro9.381s (+9.1% 🔺)10.044s (+11.3% 🔺)0.663s33.73x
🐘 PostgresExpress9.787s (+24.2% 🔺)10.364s (+25.2% 🔺)0.577s33.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.157s (~)4.259s (-2.0%)1.102s81.00x
▲ VercelNitro3.461s (+6.1% 🔺)4.544s (+4.2%)1.084s71.10x
▲ VercelNext.js (Turbopack)3.836s (+21.2% 🔺)5.322s (+29.0% 🔺)1.486s61.22x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express7.270s (-4.6%)8.027s (~)0.757s41.00x
💻 LocalNitro7.447s (+3.9%)8.019s (~)0.572s41.02x
💻 LocalNext.js (Turbopack)7.728s8.267s0.540s41.06x
🐘 PostgresExpress50.987s (+4.0%)51.106s (+4.0%)0.119s17.01x
🐘 PostgresNitro51.006s (+3.7%)51.113s (+2.0%)0.107s17.02x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.405s (+64.4% 🔺)6.849s (+47.2% 🔺)1.444s51.00x
▲ VercelNext.js (Turbopack)7.246s (+91.6% 🔺)8.526s (+68.3% 🔺)1.280s41.34x
▲ VercelNitro7.717s (+105.8% 🔺)9.157s (+73.5% 🔺)1.440s41.43x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.419s2.004s0.586s151.00x
💻 LocalNitro1.420s (~)2.005s (~)0.585s151.00x
💻 LocalExpress1.422s (~)2.005s (~)0.582s151.00x
🐘 PostgresNitro2.102s (+2.9%)2.513s (-8.3% 🟢)0.410s121.48x
🐘 PostgresExpress2.117s (+12.1% 🔺)2.740s (+5.6% 🔺)0.623s111.49x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.754s (-4.4%)3.694s (-6.8% 🟢)0.940s91.00x
▲ VercelExpress2.882s (+5.7% 🔺)3.859s (+6.8% 🔺)0.977s91.05x
▲ VercelNitro3.001s (+13.7% 🔺)4.203s (+14.4% 🔺)1.202s81.09x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.625s3.007s0.382s101.00x
💻 LocalNitro2.660s (~)3.007s (~)0.347s101.01x
💻 LocalExpress2.676s (-1.0%)3.007s (~)0.331s101.02x
🐘 PostgresNitro12.026s (+2.3%)12.705s (+5.6% 🔺)0.680s34.58x
🐘 PostgresExpress12.034s (+15.0% 🔺)12.697s (+15.1% 🔺)0.663s34.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.854s (-11.2% 🟢)3.994s (-22.6% 🟢)1.140s81.00x
▲ VercelNext.js (Turbopack)3.073s (-5.4% 🟢)4.361s (+0.8%)1.288s71.08x
▲ VercelNitro3.077s (~)4.475s (-14.4% 🟢)1.399s71.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro7.662s (-4.5%)8.020s (-5.9% 🟢)0.358s41.00x
💻 LocalExpress7.846s (~)8.269s (+3.0%)0.423s41.02x
💻 LocalNext.js (Turbopack)8.075s8.517s0.442s41.05x
🐘 PostgresExpress51.742s (~)52.140s (~)0.398s16.75x
🐘 PostgresNitro54.465s (~)55.111s (~)0.646s17.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.344s (-2.8%)4.576s (-2.8%)1.233s71.00x
▲ VercelNitro3.719s (+4.5%)5.147s (~)1.428s71.11x
▲ VercelNext.js (Turbopack)3.739s (~)5.245s (+1.2%)1.507s61.12x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.144s1.001s0.010s1.015s0.871s101.00x
💻 LocalNitro0.170s (-0.9%)1.002s (~)0.010s (-2.9%)1.015s (~)0.846s101.17x
💻 LocalExpress0.172s (+1.2%)1.002s (~)0.010s (-1.0%)1.015s (~)0.843s101.19x
🐘 PostgresExpress1.169s (-51.3% 🟢)1.938s (-26.6% 🟢)0.001s (+16.7% 🔺)2.013s (-33.2% 🟢)0.844s108.10x
🐘 PostgresNitro1.272s (-48.1% 🟢)1.768s (-31.7% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.741s108.81x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.446s (-4.5%)2.871s (-3.9%)0.172s (-30.1% 🟢)3.732s (-5.5% 🟢)1.285s101.00x
▲ VercelExpress2.625s (+2.2%)3.197s (+14.0% 🔺)0.181s (-19.8% 🟢)3.998s (+7.1% 🔺)1.374s101.07x
▲ VercelNext.js (Turbopack)2.700s (~)3.167s (+5.2% 🔺)0.295s (+7.2% 🔺)4.153s (+5.1% 🔺)1.453s101.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)7/12
🐘 PostgresNitro7/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local11/12
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development408062470
✅ 📦 Local Production408062470
✅ 🐘 Local Postgres408062470
✅ 🪟 Windows440347
❌ 🌍 Community Worlds3115712200
✅ 📋 Other120021141
Total18981572602315

❌ Failed Tests

🌍 Community Worlds (157 failed)

mongodb (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4403
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5393
✅ redis-dev300
❌ redis5393
✅ starter-dev300
❌ starter4403
✅ turso-dev300
❌ turso5393
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4007
✅ e2e-local-postgres-nest-stable4007
✅ e2e-local-prod-nest-stable4007

📋 View full workflow run

@vercel

vercelBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackErrorErrorFeb 7, 2026 8:51am
example-nextjs-workflow-webpackErrorErrorFeb 7, 2026 8:51am
example-workflowErrorErrorFeb 7, 2026 8:51am
workbench-astro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-express-workflowErrorErrorFeb 7, 2026 8:51am
workbench-fastify-workflowErrorErrorFeb 7, 2026 8:51am
workbench-hono-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nitro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nuxt-workflowErrorErrorFeb 7, 2026 8:51am
workbench-sveltekit-workflowErrorErrorFeb 7, 2026 8:51am
workbench-vite-workflowErrorErrorFeb 7, 2026 8:51am
workflow-docsErrorErrorFeb 7, 2026 8:51am
workflow-nestErrorErrorFeb 7, 2026 8:51am
workflow-swc-playgroundErrorErrorFeb 7, 2026 8:51am

@TooTallNateGraphite App

TooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
MemberAuthor

- Add test fixture for shorthand method syntax (async execute() { ... }) in nested object properties
- Fix bug where slash characters weren't being replaced with $ in variable references for shorthand methods
- Update spec.md to document shorthand method syntax support
This addresses the PR review comment asking about non-arrow functions in nested object step properties.
Sign up for freeto 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.

4 participants

@TooTallNate@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Fix step functions nested multiple levels deep in an object by TooTallNate · Pull Request #923 · vercel/workflow · GitHub
Skip to content

Fix step functions nested multiple levels deep in an object - #923

Merged
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object
Feb 7, 2026
Merged

Fix step functions nested multiple levels deep in an object#923
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
Member

Fixed a bug where step functions nested multiple levels deep in an object weren't being properly transformed.

What changed?

  • Enhanced the SWC plugin to recursively process nested objects to find step functions
  • Added support for step functions defined inside deeply nested object properties, including function call arguments
  • Implemented proper path handling for nested step IDs, using compound paths (e.g., vade/tools/VercelRequest/execute)
  • Fixed variable name generation by replacing slashes with $ to create valid JavaScript identifiers
  • Updated documentation with examples of nested object property step functions
  • Added test cases for deeply nested step functions and agent tool steps

How to test?

Test with code that has step functions nested multiple levels deep in objects:

exportconstconfig=createConfig({level1: {level2: {level3: {myStep: async(input)=>{"use step";returninput*2;},},},},});

Or with agent tools:

exportconstvade=agent({tools: {VercelRequest: {execute: async(input,ctx)=>{"use step";return1+1;},},},});

Why make this change?

This fix ensures that step functions can be properly identified and transformed regardless of how deeply they are nested in object structures. This is particularly important for complex configurations like agent tools where step functions might be several levels deep in the object hierarchy.

@changeset-bot

changeset-botBot commented Feb 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8cee6a5

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-2.7%)1.006s (~)0.974s101.00x
💻 LocalExpress0.033s (+2.8%)1.007s (~)0.975s101.02x
💻 LocalNext.js (Turbopack)0.047s1.008s0.961s101.47x
🐘 PostgresNitro0.104s (-77.0% 🟢)1.011s (~)0.907s103.23x
🐘 PostgresExpress0.190s (+6.5% 🔺)1.012s (~)0.822s105.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.720s (-14.3% 🟢)2.100s (-1.8%)1.380s101.00x
▲ VercelNext.js (Turbopack)0.872s (+5.5% 🔺)2.245s (+2.7%)1.373s101.21x
▲ VercelNitro0.924s (-23.1% 🟢)2.246s (-17.3% 🟢)1.322s101.28x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s2.006s0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.901s101.00x
💻 LocalExpress1.106s (~)2.005s (~)0.899s101.00x
🐘 PostgresExpress2.195s (-4.4%)3.013s (~)0.818s101.99x
🐘 PostgresNitro2.477s (+4.4%)3.014s (~)0.536s102.24x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.688s (-1.7%)3.788s (+1.7%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.695s (-1.8%)3.701s (+3.1%)1.006s101.00x
▲ VercelExpress2.712s (-0.8%)3.651s (-8.6% 🟢)0.939s101.01x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.744s11.021s0.276s31.00x
💻 LocalNitro10.818s (~)11.020s (~)0.202s31.01x
💻 LocalExpress10.830s (~)11.022s (~)0.192s31.01x
🐘 PostgresNitro20.329s (~)21.059s (~)0.729s21.89x
🐘 PostgresExpress20.413s (~)21.055s (~)0.642s21.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.535s (-2.0%)20.698s (-0.8%)1.163s21.00x
▲ VercelNitro20.051s (+1.1%)20.989s (-2.8%)0.938s21.03x
▲ VercelNext.js (Turbopack)20.418s (+0.8%)21.251s (-2.0%)0.833s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.274s28.039s0.766s31.00x
💻 LocalNitro27.457s (~)28.043s (~)0.586s31.01x
💻 LocalExpress27.478s (~)28.040s (~)0.563s31.01x
🐘 PostgresExpress38.264s (-23.8% 🟢)38.589s (-24.5% 🟢)0.325s21.40x
🐘 PostgresNitro50.351s (~)51.122s (~)0.771s21.85x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express48.803s (-1.9%)50.129s (-1.3%)1.327s21.00x
▲ VercelNitro49.538s (+0.5%)51.129s (+1.6%)1.591s21.02x
▲ VercelNext.js (Turbopack)49.987s (-2.2%)50.996s (-2.1%)1.009s21.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.733s57.102s0.369s21.00x
💻 LocalExpress57.158s (~)58.101s (~)0.943s21.01x
💻 LocalNitro57.184s (~)58.098s (+1.8%)0.913s21.01x
🐘 PostgresNitro75.221s (-25.0% 🟢)75.662s (-25.3% 🟢)0.441s21.33x
🐘 PostgresExpress76.508s (-23.8% 🟢)77.174s (-23.8% 🟢)0.665s21.35x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro104.207s (-1.1%)105.570s (-1.1%)1.363s11.00x
▲ VercelExpress105.439s (+0.8%)106.653s (~)1.214s11.01x
▲ VercelNext.js (Turbopack)108.473s (-1.0%)109.290s (-1.7%)0.817s11.04x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.402s (~)2.005s (~)0.603s151.00x
💻 LocalNext.js (Turbopack)1.419s2.005s0.586s151.01x
💻 LocalExpress1.420s (~)2.005s (~)0.585s151.01x
🐘 PostgresNitro2.016s (-16.2% 🟢)2.597s (-13.8% 🟢)0.581s121.44x
🐘 PostgresExpress2.174s (-10.9% 🟢)2.830s (-6.1% 🟢)0.656s111.55x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.060s (+18.2% 🔺)4.116s (+17.4% 🔺)1.056s81.00x
▲ VercelExpress3.177s (+11.1% 🔺)4.376s (+16.7% 🔺)1.200s71.04x
▲ VercelNext.js (Turbopack)3.420s (+13.9% 🔺)4.504s (+12.8% 🔺)1.084s71.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.512s (-4.9%)3.007s (~)0.495s101.00x
💻 LocalNitro2.577s (+0.8%)3.007s (~)0.430s101.03x
💻 LocalNext.js (Turbopack)2.607s3.007s0.400s101.04x
🐘 PostgresNitro9.381s (+9.1% 🔺)10.044s (+11.3% 🔺)0.663s33.73x
🐘 PostgresExpress9.787s (+24.2% 🔺)10.364s (+25.2% 🔺)0.577s33.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.157s (~)4.259s (-2.0%)1.102s81.00x
▲ VercelNitro3.461s (+6.1% 🔺)4.544s (+4.2%)1.084s71.10x
▲ VercelNext.js (Turbopack)3.836s (+21.2% 🔺)5.322s (+29.0% 🔺)1.486s61.22x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express7.270s (-4.6%)8.027s (~)0.757s41.00x
💻 LocalNitro7.447s (+3.9%)8.019s (~)0.572s41.02x
💻 LocalNext.js (Turbopack)7.728s8.267s0.540s41.06x
🐘 PostgresExpress50.987s (+4.0%)51.106s (+4.0%)0.119s17.01x
🐘 PostgresNitro51.006s (+3.7%)51.113s (+2.0%)0.107s17.02x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.405s (+64.4% 🔺)6.849s (+47.2% 🔺)1.444s51.00x
▲ VercelNext.js (Turbopack)7.246s (+91.6% 🔺)8.526s (+68.3% 🔺)1.280s41.34x
▲ VercelNitro7.717s (+105.8% 🔺)9.157s (+73.5% 🔺)1.440s41.43x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.419s2.004s0.586s151.00x
💻 LocalNitro1.420s (~)2.005s (~)0.585s151.00x
💻 LocalExpress1.422s (~)2.005s (~)0.582s151.00x
🐘 PostgresNitro2.102s (+2.9%)2.513s (-8.3% 🟢)0.410s121.48x
🐘 PostgresExpress2.117s (+12.1% 🔺)2.740s (+5.6% 🔺)0.623s111.49x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.754s (-4.4%)3.694s (-6.8% 🟢)0.940s91.00x
▲ VercelExpress2.882s (+5.7% 🔺)3.859s (+6.8% 🔺)0.977s91.05x
▲ VercelNitro3.001s (+13.7% 🔺)4.203s (+14.4% 🔺)1.202s81.09x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.625s3.007s0.382s101.00x
💻 LocalNitro2.660s (~)3.007s (~)0.347s101.01x
💻 LocalExpress2.676s (-1.0%)3.007s (~)0.331s101.02x
🐘 PostgresNitro12.026s (+2.3%)12.705s (+5.6% 🔺)0.680s34.58x
🐘 PostgresExpress12.034s (+15.0% 🔺)12.697s (+15.1% 🔺)0.663s34.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.854s (-11.2% 🟢)3.994s (-22.6% 🟢)1.140s81.00x
▲ VercelNext.js (Turbopack)3.073s (-5.4% 🟢)4.361s (+0.8%)1.288s71.08x
▲ VercelNitro3.077s (~)4.475s (-14.4% 🟢)1.399s71.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro7.662s (-4.5%)8.020s (-5.9% 🟢)0.358s41.00x
💻 LocalExpress7.846s (~)8.269s (+3.0%)0.423s41.02x
💻 LocalNext.js (Turbopack)8.075s8.517s0.442s41.05x
🐘 PostgresExpress51.742s (~)52.140s (~)0.398s16.75x
🐘 PostgresNitro54.465s (~)55.111s (~)0.646s17.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.344s (-2.8%)4.576s (-2.8%)1.233s71.00x
▲ VercelNitro3.719s (+4.5%)5.147s (~)1.428s71.11x
▲ VercelNext.js (Turbopack)3.739s (~)5.245s (+1.2%)1.507s61.12x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.144s1.001s0.010s1.015s0.871s101.00x
💻 LocalNitro0.170s (-0.9%)1.002s (~)0.010s (-2.9%)1.015s (~)0.846s101.17x
💻 LocalExpress0.172s (+1.2%)1.002s (~)0.010s (-1.0%)1.015s (~)0.843s101.19x
🐘 PostgresExpress1.169s (-51.3% 🟢)1.938s (-26.6% 🟢)0.001s (+16.7% 🔺)2.013s (-33.2% 🟢)0.844s108.10x
🐘 PostgresNitro1.272s (-48.1% 🟢)1.768s (-31.7% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.741s108.81x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.446s (-4.5%)2.871s (-3.9%)0.172s (-30.1% 🟢)3.732s (-5.5% 🟢)1.285s101.00x
▲ VercelExpress2.625s (+2.2%)3.197s (+14.0% 🔺)0.181s (-19.8% 🟢)3.998s (+7.1% 🔺)1.374s101.07x
▲ VercelNext.js (Turbopack)2.700s (~)3.167s (+5.2% 🔺)0.295s (+7.2% 🔺)4.153s (+5.1% 🔺)1.453s101.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)7/12
🐘 PostgresNitro7/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local11/12
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development408062470
✅ 📦 Local Production408062470
✅ 🐘 Local Postgres408062470
✅ 🪟 Windows440347
❌ 🌍 Community Worlds3115712200
✅ 📋 Other120021141
Total18981572602315

❌ Failed Tests

🌍 Community Worlds (157 failed)

mongodb (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4403
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5393
✅ redis-dev300
❌ redis5393
✅ starter-dev300
❌ starter4403
✅ turso-dev300
❌ turso5393
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4007
✅ e2e-local-postgres-nest-stable4007
✅ e2e-local-prod-nest-stable4007

📋 View full workflow run

@vercel

vercelBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackErrorErrorFeb 7, 2026 8:51am
example-nextjs-workflow-webpackErrorErrorFeb 7, 2026 8:51am
example-workflowErrorErrorFeb 7, 2026 8:51am
workbench-astro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-express-workflowErrorErrorFeb 7, 2026 8:51am
workbench-fastify-workflowErrorErrorFeb 7, 2026 8:51am
workbench-hono-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nitro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nuxt-workflowErrorErrorFeb 7, 2026 8:51am
workbench-sveltekit-workflowErrorErrorFeb 7, 2026 8:51am
workbench-vite-workflowErrorErrorFeb 7, 2026 8:51am
workflow-docsErrorErrorFeb 7, 2026 8:51am
workflow-nestErrorErrorFeb 7, 2026 8:51am
workflow-swc-playgroundErrorErrorFeb 7, 2026 8:51am

@TooTallNateGraphite App

TooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
MemberAuthor

- Add test fixture for shorthand method syntax (async execute() { ... }) in nested object properties
- Fix bug where slash characters weren't being replaced with $ in variable references for shorthand methods
- Update spec.md to document shorthand method syntax support
This addresses the PR review comment asking about non-arrow functions in nested object step properties.
Sign up for freeto 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.

4 participants

@TooTallNate@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Fix step functions nested multiple levels deep in an object by TooTallNate · Pull Request #923 · vercel/workflow · GitHub
Skip to content

Fix step functions nested multiple levels deep in an object - #923

Merged
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object
Feb 7, 2026
Merged

Fix step functions nested multiple levels deep in an object#923
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
Member

Fixed a bug where step functions nested multiple levels deep in an object weren't being properly transformed.

What changed?

  • Enhanced the SWC plugin to recursively process nested objects to find step functions
  • Added support for step functions defined inside deeply nested object properties, including function call arguments
  • Implemented proper path handling for nested step IDs, using compound paths (e.g., vade/tools/VercelRequest/execute)
  • Fixed variable name generation by replacing slashes with $ to create valid JavaScript identifiers
  • Updated documentation with examples of nested object property step functions
  • Added test cases for deeply nested step functions and agent tool steps

How to test?

Test with code that has step functions nested multiple levels deep in objects:

exportconstconfig=createConfig({level1: {level2: {level3: {myStep: async(input)=>{"use step";returninput*2;},},},},});

Or with agent tools:

exportconstvade=agent({tools: {VercelRequest: {execute: async(input,ctx)=>{"use step";return1+1;},},},});

Why make this change?

This fix ensures that step functions can be properly identified and transformed regardless of how deeply they are nested in object structures. This is particularly important for complex configurations like agent tools where step functions might be several levels deep in the object hierarchy.

@changeset-bot

changeset-botBot commented Feb 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8cee6a5

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-2.7%)1.006s (~)0.974s101.00x
💻 LocalExpress0.033s (+2.8%)1.007s (~)0.975s101.02x
💻 LocalNext.js (Turbopack)0.047s1.008s0.961s101.47x
🐘 PostgresNitro0.104s (-77.0% 🟢)1.011s (~)0.907s103.23x
🐘 PostgresExpress0.190s (+6.5% 🔺)1.012s (~)0.822s105.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.720s (-14.3% 🟢)2.100s (-1.8%)1.380s101.00x
▲ VercelNext.js (Turbopack)0.872s (+5.5% 🔺)2.245s (+2.7%)1.373s101.21x
▲ VercelNitro0.924s (-23.1% 🟢)2.246s (-17.3% 🟢)1.322s101.28x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s2.006s0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.901s101.00x
💻 LocalExpress1.106s (~)2.005s (~)0.899s101.00x
🐘 PostgresExpress2.195s (-4.4%)3.013s (~)0.818s101.99x
🐘 PostgresNitro2.477s (+4.4%)3.014s (~)0.536s102.24x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.688s (-1.7%)3.788s (+1.7%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.695s (-1.8%)3.701s (+3.1%)1.006s101.00x
▲ VercelExpress2.712s (-0.8%)3.651s (-8.6% 🟢)0.939s101.01x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.744s11.021s0.276s31.00x
💻 LocalNitro10.818s (~)11.020s (~)0.202s31.01x
💻 LocalExpress10.830s (~)11.022s (~)0.192s31.01x
🐘 PostgresNitro20.329s (~)21.059s (~)0.729s21.89x
🐘 PostgresExpress20.413s (~)21.055s (~)0.642s21.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.535s (-2.0%)20.698s (-0.8%)1.163s21.00x
▲ VercelNitro20.051s (+1.1%)20.989s (-2.8%)0.938s21.03x
▲ VercelNext.js (Turbopack)20.418s (+0.8%)21.251s (-2.0%)0.833s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.274s28.039s0.766s31.00x
💻 LocalNitro27.457s (~)28.043s (~)0.586s31.01x
💻 LocalExpress27.478s (~)28.040s (~)0.563s31.01x
🐘 PostgresExpress38.264s (-23.8% 🟢)38.589s (-24.5% 🟢)0.325s21.40x
🐘 PostgresNitro50.351s (~)51.122s (~)0.771s21.85x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express48.803s (-1.9%)50.129s (-1.3%)1.327s21.00x
▲ VercelNitro49.538s (+0.5%)51.129s (+1.6%)1.591s21.02x
▲ VercelNext.js (Turbopack)49.987s (-2.2%)50.996s (-2.1%)1.009s21.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.733s57.102s0.369s21.00x
💻 LocalExpress57.158s (~)58.101s (~)0.943s21.01x
💻 LocalNitro57.184s (~)58.098s (+1.8%)0.913s21.01x
🐘 PostgresNitro75.221s (-25.0% 🟢)75.662s (-25.3% 🟢)0.441s21.33x
🐘 PostgresExpress76.508s (-23.8% 🟢)77.174s (-23.8% 🟢)0.665s21.35x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro104.207s (-1.1%)105.570s (-1.1%)1.363s11.00x
▲ VercelExpress105.439s (+0.8%)106.653s (~)1.214s11.01x
▲ VercelNext.js (Turbopack)108.473s (-1.0%)109.290s (-1.7%)0.817s11.04x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.402s (~)2.005s (~)0.603s151.00x
💻 LocalNext.js (Turbopack)1.419s2.005s0.586s151.01x
💻 LocalExpress1.420s (~)2.005s (~)0.585s151.01x
🐘 PostgresNitro2.016s (-16.2% 🟢)2.597s (-13.8% 🟢)0.581s121.44x
🐘 PostgresExpress2.174s (-10.9% 🟢)2.830s (-6.1% 🟢)0.656s111.55x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.060s (+18.2% 🔺)4.116s (+17.4% 🔺)1.056s81.00x
▲ VercelExpress3.177s (+11.1% 🔺)4.376s (+16.7% 🔺)1.200s71.04x
▲ VercelNext.js (Turbopack)3.420s (+13.9% 🔺)4.504s (+12.8% 🔺)1.084s71.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.512s (-4.9%)3.007s (~)0.495s101.00x
💻 LocalNitro2.577s (+0.8%)3.007s (~)0.430s101.03x
💻 LocalNext.js (Turbopack)2.607s3.007s0.400s101.04x
🐘 PostgresNitro9.381s (+9.1% 🔺)10.044s (+11.3% 🔺)0.663s33.73x
🐘 PostgresExpress9.787s (+24.2% 🔺)10.364s (+25.2% 🔺)0.577s33.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.157s (~)4.259s (-2.0%)1.102s81.00x
▲ VercelNitro3.461s (+6.1% 🔺)4.544s (+4.2%)1.084s71.10x
▲ VercelNext.js (Turbopack)3.836s (+21.2% 🔺)5.322s (+29.0% 🔺)1.486s61.22x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express7.270s (-4.6%)8.027s (~)0.757s41.00x
💻 LocalNitro7.447s (+3.9%)8.019s (~)0.572s41.02x
💻 LocalNext.js (Turbopack)7.728s8.267s0.540s41.06x
🐘 PostgresExpress50.987s (+4.0%)51.106s (+4.0%)0.119s17.01x
🐘 PostgresNitro51.006s (+3.7%)51.113s (+2.0%)0.107s17.02x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.405s (+64.4% 🔺)6.849s (+47.2% 🔺)1.444s51.00x
▲ VercelNext.js (Turbopack)7.246s (+91.6% 🔺)8.526s (+68.3% 🔺)1.280s41.34x
▲ VercelNitro7.717s (+105.8% 🔺)9.157s (+73.5% 🔺)1.440s41.43x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.419s2.004s0.586s151.00x
💻 LocalNitro1.420s (~)2.005s (~)0.585s151.00x
💻 LocalExpress1.422s (~)2.005s (~)0.582s151.00x
🐘 PostgresNitro2.102s (+2.9%)2.513s (-8.3% 🟢)0.410s121.48x
🐘 PostgresExpress2.117s (+12.1% 🔺)2.740s (+5.6% 🔺)0.623s111.49x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.754s (-4.4%)3.694s (-6.8% 🟢)0.940s91.00x
▲ VercelExpress2.882s (+5.7% 🔺)3.859s (+6.8% 🔺)0.977s91.05x
▲ VercelNitro3.001s (+13.7% 🔺)4.203s (+14.4% 🔺)1.202s81.09x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.625s3.007s0.382s101.00x
💻 LocalNitro2.660s (~)3.007s (~)0.347s101.01x
💻 LocalExpress2.676s (-1.0%)3.007s (~)0.331s101.02x
🐘 PostgresNitro12.026s (+2.3%)12.705s (+5.6% 🔺)0.680s34.58x
🐘 PostgresExpress12.034s (+15.0% 🔺)12.697s (+15.1% 🔺)0.663s34.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.854s (-11.2% 🟢)3.994s (-22.6% 🟢)1.140s81.00x
▲ VercelNext.js (Turbopack)3.073s (-5.4% 🟢)4.361s (+0.8%)1.288s71.08x
▲ VercelNitro3.077s (~)4.475s (-14.4% 🟢)1.399s71.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro7.662s (-4.5%)8.020s (-5.9% 🟢)0.358s41.00x
💻 LocalExpress7.846s (~)8.269s (+3.0%)0.423s41.02x
💻 LocalNext.js (Turbopack)8.075s8.517s0.442s41.05x
🐘 PostgresExpress51.742s (~)52.140s (~)0.398s16.75x
🐘 PostgresNitro54.465s (~)55.111s (~)0.646s17.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.344s (-2.8%)4.576s (-2.8%)1.233s71.00x
▲ VercelNitro3.719s (+4.5%)5.147s (~)1.428s71.11x
▲ VercelNext.js (Turbopack)3.739s (~)5.245s (+1.2%)1.507s61.12x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.144s1.001s0.010s1.015s0.871s101.00x
💻 LocalNitro0.170s (-0.9%)1.002s (~)0.010s (-2.9%)1.015s (~)0.846s101.17x
💻 LocalExpress0.172s (+1.2%)1.002s (~)0.010s (-1.0%)1.015s (~)0.843s101.19x
🐘 PostgresExpress1.169s (-51.3% 🟢)1.938s (-26.6% 🟢)0.001s (+16.7% 🔺)2.013s (-33.2% 🟢)0.844s108.10x
🐘 PostgresNitro1.272s (-48.1% 🟢)1.768s (-31.7% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.741s108.81x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.446s (-4.5%)2.871s (-3.9%)0.172s (-30.1% 🟢)3.732s (-5.5% 🟢)1.285s101.00x
▲ VercelExpress2.625s (+2.2%)3.197s (+14.0% 🔺)0.181s (-19.8% 🟢)3.998s (+7.1% 🔺)1.374s101.07x
▲ VercelNext.js (Turbopack)2.700s (~)3.167s (+5.2% 🔺)0.295s (+7.2% 🔺)4.153s (+5.1% 🔺)1.453s101.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)7/12
🐘 PostgresNitro7/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local11/12
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development408062470
✅ 📦 Local Production408062470
✅ 🐘 Local Postgres408062470
✅ 🪟 Windows440347
❌ 🌍 Community Worlds3115712200
✅ 📋 Other120021141
Total18981572602315

❌ Failed Tests

🌍 Community Worlds (157 failed)

mongodb (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4403
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5393
✅ redis-dev300
❌ redis5393
✅ starter-dev300
❌ starter4403
✅ turso-dev300
❌ turso5393
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4007
✅ e2e-local-postgres-nest-stable4007
✅ e2e-local-prod-nest-stable4007

📋 View full workflow run

@vercel

vercelBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackErrorErrorFeb 7, 2026 8:51am
example-nextjs-workflow-webpackErrorErrorFeb 7, 2026 8:51am
example-workflowErrorErrorFeb 7, 2026 8:51am
workbench-astro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-express-workflowErrorErrorFeb 7, 2026 8:51am
workbench-fastify-workflowErrorErrorFeb 7, 2026 8:51am
workbench-hono-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nitro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nuxt-workflowErrorErrorFeb 7, 2026 8:51am
workbench-sveltekit-workflowErrorErrorFeb 7, 2026 8:51am
workbench-vite-workflowErrorErrorFeb 7, 2026 8:51am
workflow-docsErrorErrorFeb 7, 2026 8:51am
workflow-nestErrorErrorFeb 7, 2026 8:51am
workflow-swc-playgroundErrorErrorFeb 7, 2026 8:51am

@TooTallNateGraphite App

TooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
MemberAuthor

- Add test fixture for shorthand method syntax (async execute() { ... }) in nested object properties
- Fix bug where slash characters weren't being replaced with $ in variable references for shorthand methods
- Update spec.md to document shorthand method syntax support
This addresses the PR review comment asking about non-arrow functions in nested object step properties.
Sign up for freeto 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.

4 participants

@TooTallNate@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' Fix step functions nested multiple levels deep in an object by TooTallNate · Pull Request #923 · vercel/workflow · GitHub
Skip to content

Fix step functions nested multiple levels deep in an object - #923

Merged
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object
Feb 7, 2026
Merged

Fix step functions nested multiple levels deep in an object#923
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
Member

Fixed a bug where step functions nested multiple levels deep in an object weren't being properly transformed.

What changed?

  • Enhanced the SWC plugin to recursively process nested objects to find step functions
  • Added support for step functions defined inside deeply nested object properties, including function call arguments
  • Implemented proper path handling for nested step IDs, using compound paths (e.g., vade/tools/VercelRequest/execute)
  • Fixed variable name generation by replacing slashes with $ to create valid JavaScript identifiers
  • Updated documentation with examples of nested object property step functions
  • Added test cases for deeply nested step functions and agent tool steps

How to test?

Test with code that has step functions nested multiple levels deep in objects:

exportconstconfig=createConfig({level1: {level2: {level3: {myStep: async(input)=>{"use step";returninput*2;},},},},});

Or with agent tools:

exportconstvade=agent({tools: {VercelRequest: {execute: async(input,ctx)=>{"use step";return1+1;},},},});

Why make this change?

This fix ensures that step functions can be properly identified and transformed regardless of how deeply they are nested in object structures. This is particularly important for complex configurations like agent tools where step functions might be several levels deep in the object hierarchy.

@changeset-bot

changeset-botBot commented Feb 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8cee6a5

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-2.7%)1.006s (~)0.974s101.00x
💻 LocalExpress0.033s (+2.8%)1.007s (~)0.975s101.02x
💻 LocalNext.js (Turbopack)0.047s1.008s0.961s101.47x
🐘 PostgresNitro0.104s (-77.0% 🟢)1.011s (~)0.907s103.23x
🐘 PostgresExpress0.190s (+6.5% 🔺)1.012s (~)0.822s105.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.720s (-14.3% 🟢)2.100s (-1.8%)1.380s101.00x
▲ VercelNext.js (Turbopack)0.872s (+5.5% 🔺)2.245s (+2.7%)1.373s101.21x
▲ VercelNitro0.924s (-23.1% 🟢)2.246s (-17.3% 🟢)1.322s101.28x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s2.006s0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.901s101.00x
💻 LocalExpress1.106s (~)2.005s (~)0.899s101.00x
🐘 PostgresExpress2.195s (-4.4%)3.013s (~)0.818s101.99x
🐘 PostgresNitro2.477s (+4.4%)3.014s (~)0.536s102.24x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.688s (-1.7%)3.788s (+1.7%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.695s (-1.8%)3.701s (+3.1%)1.006s101.00x
▲ VercelExpress2.712s (-0.8%)3.651s (-8.6% 🟢)0.939s101.01x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.744s11.021s0.276s31.00x
💻 LocalNitro10.818s (~)11.020s (~)0.202s31.01x
💻 LocalExpress10.830s (~)11.022s (~)0.192s31.01x
🐘 PostgresNitro20.329s (~)21.059s (~)0.729s21.89x
🐘 PostgresExpress20.413s (~)21.055s (~)0.642s21.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.535s (-2.0%)20.698s (-0.8%)1.163s21.00x
▲ VercelNitro20.051s (+1.1%)20.989s (-2.8%)0.938s21.03x
▲ VercelNext.js (Turbopack)20.418s (+0.8%)21.251s (-2.0%)0.833s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.274s28.039s0.766s31.00x
💻 LocalNitro27.457s (~)28.043s (~)0.586s31.01x
💻 LocalExpress27.478s (~)28.040s (~)0.563s31.01x
🐘 PostgresExpress38.264s (-23.8% 🟢)38.589s (-24.5% 🟢)0.325s21.40x
🐘 PostgresNitro50.351s (~)51.122s (~)0.771s21.85x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express48.803s (-1.9%)50.129s (-1.3%)1.327s21.00x
▲ VercelNitro49.538s (+0.5%)51.129s (+1.6%)1.591s21.02x
▲ VercelNext.js (Turbopack)49.987s (-2.2%)50.996s (-2.1%)1.009s21.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.733s57.102s0.369s21.00x
💻 LocalExpress57.158s (~)58.101s (~)0.943s21.01x
💻 LocalNitro57.184s (~)58.098s (+1.8%)0.913s21.01x
🐘 PostgresNitro75.221s (-25.0% 🟢)75.662s (-25.3% 🟢)0.441s21.33x
🐘 PostgresExpress76.508s (-23.8% 🟢)77.174s (-23.8% 🟢)0.665s21.35x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro104.207s (-1.1%)105.570s (-1.1%)1.363s11.00x
▲ VercelExpress105.439s (+0.8%)106.653s (~)1.214s11.01x
▲ VercelNext.js (Turbopack)108.473s (-1.0%)109.290s (-1.7%)0.817s11.04x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.402s (~)2.005s (~)0.603s151.00x
💻 LocalNext.js (Turbopack)1.419s2.005s0.586s151.01x
💻 LocalExpress1.420s (~)2.005s (~)0.585s151.01x
🐘 PostgresNitro2.016s (-16.2% 🟢)2.597s (-13.8% 🟢)0.581s121.44x
🐘 PostgresExpress2.174s (-10.9% 🟢)2.830s (-6.1% 🟢)0.656s111.55x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.060s (+18.2% 🔺)4.116s (+17.4% 🔺)1.056s81.00x
▲ VercelExpress3.177s (+11.1% 🔺)4.376s (+16.7% 🔺)1.200s71.04x
▲ VercelNext.js (Turbopack)3.420s (+13.9% 🔺)4.504s (+12.8% 🔺)1.084s71.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.512s (-4.9%)3.007s (~)0.495s101.00x
💻 LocalNitro2.577s (+0.8%)3.007s (~)0.430s101.03x
💻 LocalNext.js (Turbopack)2.607s3.007s0.400s101.04x
🐘 PostgresNitro9.381s (+9.1% 🔺)10.044s (+11.3% 🔺)0.663s33.73x
🐘 PostgresExpress9.787s (+24.2% 🔺)10.364s (+25.2% 🔺)0.577s33.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.157s (~)4.259s (-2.0%)1.102s81.00x
▲ VercelNitro3.461s (+6.1% 🔺)4.544s (+4.2%)1.084s71.10x
▲ VercelNext.js (Turbopack)3.836s (+21.2% 🔺)5.322s (+29.0% 🔺)1.486s61.22x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express7.270s (-4.6%)8.027s (~)0.757s41.00x
💻 LocalNitro7.447s (+3.9%)8.019s (~)0.572s41.02x
💻 LocalNext.js (Turbopack)7.728s8.267s0.540s41.06x
🐘 PostgresExpress50.987s (+4.0%)51.106s (+4.0%)0.119s17.01x
🐘 PostgresNitro51.006s (+3.7%)51.113s (+2.0%)0.107s17.02x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.405s (+64.4% 🔺)6.849s (+47.2% 🔺)1.444s51.00x
▲ VercelNext.js (Turbopack)7.246s (+91.6% 🔺)8.526s (+68.3% 🔺)1.280s41.34x
▲ VercelNitro7.717s (+105.8% 🔺)9.157s (+73.5% 🔺)1.440s41.43x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.419s2.004s0.586s151.00x
💻 LocalNitro1.420s (~)2.005s (~)0.585s151.00x
💻 LocalExpress1.422s (~)2.005s (~)0.582s151.00x
🐘 PostgresNitro2.102s (+2.9%)2.513s (-8.3% 🟢)0.410s121.48x
🐘 PostgresExpress2.117s (+12.1% 🔺)2.740s (+5.6% 🔺)0.623s111.49x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.754s (-4.4%)3.694s (-6.8% 🟢)0.940s91.00x
▲ VercelExpress2.882s (+5.7% 🔺)3.859s (+6.8% 🔺)0.977s91.05x
▲ VercelNitro3.001s (+13.7% 🔺)4.203s (+14.4% 🔺)1.202s81.09x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.625s3.007s0.382s101.00x
💻 LocalNitro2.660s (~)3.007s (~)0.347s101.01x
💻 LocalExpress2.676s (-1.0%)3.007s (~)0.331s101.02x
🐘 PostgresNitro12.026s (+2.3%)12.705s (+5.6% 🔺)0.680s34.58x
🐘 PostgresExpress12.034s (+15.0% 🔺)12.697s (+15.1% 🔺)0.663s34.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.854s (-11.2% 🟢)3.994s (-22.6% 🟢)1.140s81.00x
▲ VercelNext.js (Turbopack)3.073s (-5.4% 🟢)4.361s (+0.8%)1.288s71.08x
▲ VercelNitro3.077s (~)4.475s (-14.4% 🟢)1.399s71.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro7.662s (-4.5%)8.020s (-5.9% 🟢)0.358s41.00x
💻 LocalExpress7.846s (~)8.269s (+3.0%)0.423s41.02x
💻 LocalNext.js (Turbopack)8.075s8.517s0.442s41.05x
🐘 PostgresExpress51.742s (~)52.140s (~)0.398s16.75x
🐘 PostgresNitro54.465s (~)55.111s (~)0.646s17.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.344s (-2.8%)4.576s (-2.8%)1.233s71.00x
▲ VercelNitro3.719s (+4.5%)5.147s (~)1.428s71.11x
▲ VercelNext.js (Turbopack)3.739s (~)5.245s (+1.2%)1.507s61.12x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.144s1.001s0.010s1.015s0.871s101.00x
💻 LocalNitro0.170s (-0.9%)1.002s (~)0.010s (-2.9%)1.015s (~)0.846s101.17x
💻 LocalExpress0.172s (+1.2%)1.002s (~)0.010s (-1.0%)1.015s (~)0.843s101.19x
🐘 PostgresExpress1.169s (-51.3% 🟢)1.938s (-26.6% 🟢)0.001s (+16.7% 🔺)2.013s (-33.2% 🟢)0.844s108.10x
🐘 PostgresNitro1.272s (-48.1% 🟢)1.768s (-31.7% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.741s108.81x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.446s (-4.5%)2.871s (-3.9%)0.172s (-30.1% 🟢)3.732s (-5.5% 🟢)1.285s101.00x
▲ VercelExpress2.625s (+2.2%)3.197s (+14.0% 🔺)0.181s (-19.8% 🟢)3.998s (+7.1% 🔺)1.374s101.07x
▲ VercelNext.js (Turbopack)2.700s (~)3.167s (+5.2% 🔺)0.295s (+7.2% 🔺)4.153s (+5.1% 🔺)1.453s101.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)7/12
🐘 PostgresNitro7/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local11/12
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development408062470
✅ 📦 Local Production408062470
✅ 🐘 Local Postgres408062470
✅ 🪟 Windows440347
❌ 🌍 Community Worlds3115712200
✅ 📋 Other120021141
Total18981572602315

❌ Failed Tests

🌍 Community Worlds (157 failed)

mongodb (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4403
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5393
✅ redis-dev300
❌ redis5393
✅ starter-dev300
❌ starter4403
✅ turso-dev300
❌ turso5393
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4007
✅ e2e-local-postgres-nest-stable4007
✅ e2e-local-prod-nest-stable4007

📋 View full workflow run

@vercel

vercelBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackErrorErrorFeb 7, 2026 8:51am
example-nextjs-workflow-webpackErrorErrorFeb 7, 2026 8:51am
example-workflowErrorErrorFeb 7, 2026 8:51am
workbench-astro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-express-workflowErrorErrorFeb 7, 2026 8:51am
workbench-fastify-workflowErrorErrorFeb 7, 2026 8:51am
workbench-hono-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nitro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nuxt-workflowErrorErrorFeb 7, 2026 8:51am
workbench-sveltekit-workflowErrorErrorFeb 7, 2026 8:51am
workbench-vite-workflowErrorErrorFeb 7, 2026 8:51am
workflow-docsErrorErrorFeb 7, 2026 8:51am
workflow-nestErrorErrorFeb 7, 2026 8:51am
workflow-swc-playgroundErrorErrorFeb 7, 2026 8:51am

@TooTallNateGraphite App

TooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
MemberAuthor

- Add test fixture for shorthand method syntax (async execute() { ... }) in nested object properties
- Fix bug where slash characters weren't being replaced with $ in variable references for shorthand methods
- Update spec.md to document shorthand method syntax support
This addresses the PR review comment asking about non-arrow functions in nested object step properties.
Sign up for freeto 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.

4 participants

@TooTallNate@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Fix step functions nested multiple levels deep in an object by TooTallNate · Pull Request #923 · vercel/workflow · GitHub
Skip to content

Fix step functions nested multiple levels deep in an object - #923

Merged
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object
Feb 7, 2026
Merged

Fix step functions nested multiple levels deep in an object#923
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
Member

Fixed a bug where step functions nested multiple levels deep in an object weren't being properly transformed.

What changed?

  • Enhanced the SWC plugin to recursively process nested objects to find step functions
  • Added support for step functions defined inside deeply nested object properties, including function call arguments
  • Implemented proper path handling for nested step IDs, using compound paths (e.g., vade/tools/VercelRequest/execute)
  • Fixed variable name generation by replacing slashes with $ to create valid JavaScript identifiers
  • Updated documentation with examples of nested object property step functions
  • Added test cases for deeply nested step functions and agent tool steps

How to test?

Test with code that has step functions nested multiple levels deep in objects:

exportconstconfig=createConfig({level1: {level2: {level3: {myStep: async(input)=>{"use step";returninput*2;},},},},});

Or with agent tools:

exportconstvade=agent({tools: {VercelRequest: {execute: async(input,ctx)=>{"use step";return1+1;},},},});

Why make this change?

This fix ensures that step functions can be properly identified and transformed regardless of how deeply they are nested in object structures. This is particularly important for complex configurations like agent tools where step functions might be several levels deep in the object hierarchy.

@changeset-bot

changeset-botBot commented Feb 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8cee6a5

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-2.7%)1.006s (~)0.974s101.00x
💻 LocalExpress0.033s (+2.8%)1.007s (~)0.975s101.02x
💻 LocalNext.js (Turbopack)0.047s1.008s0.961s101.47x
🐘 PostgresNitro0.104s (-77.0% 🟢)1.011s (~)0.907s103.23x
🐘 PostgresExpress0.190s (+6.5% 🔺)1.012s (~)0.822s105.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.720s (-14.3% 🟢)2.100s (-1.8%)1.380s101.00x
▲ VercelNext.js (Turbopack)0.872s (+5.5% 🔺)2.245s (+2.7%)1.373s101.21x
▲ VercelNitro0.924s (-23.1% 🟢)2.246s (-17.3% 🟢)1.322s101.28x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s2.006s0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.901s101.00x
💻 LocalExpress1.106s (~)2.005s (~)0.899s101.00x
🐘 PostgresExpress2.195s (-4.4%)3.013s (~)0.818s101.99x
🐘 PostgresNitro2.477s (+4.4%)3.014s (~)0.536s102.24x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.688s (-1.7%)3.788s (+1.7%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.695s (-1.8%)3.701s (+3.1%)1.006s101.00x
▲ VercelExpress2.712s (-0.8%)3.651s (-8.6% 🟢)0.939s101.01x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.744s11.021s0.276s31.00x
💻 LocalNitro10.818s (~)11.020s (~)0.202s31.01x
💻 LocalExpress10.830s (~)11.022s (~)0.192s31.01x
🐘 PostgresNitro20.329s (~)21.059s (~)0.729s21.89x
🐘 PostgresExpress20.413s (~)21.055s (~)0.642s21.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.535s (-2.0%)20.698s (-0.8%)1.163s21.00x
▲ VercelNitro20.051s (+1.1%)20.989s (-2.8%)0.938s21.03x
▲ VercelNext.js (Turbopack)20.418s (+0.8%)21.251s (-2.0%)0.833s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.274s28.039s0.766s31.00x
💻 LocalNitro27.457s (~)28.043s (~)0.586s31.01x
💻 LocalExpress27.478s (~)28.040s (~)0.563s31.01x
🐘 PostgresExpress38.264s (-23.8% 🟢)38.589s (-24.5% 🟢)0.325s21.40x
🐘 PostgresNitro50.351s (~)51.122s (~)0.771s21.85x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express48.803s (-1.9%)50.129s (-1.3%)1.327s21.00x
▲ VercelNitro49.538s (+0.5%)51.129s (+1.6%)1.591s21.02x
▲ VercelNext.js (Turbopack)49.987s (-2.2%)50.996s (-2.1%)1.009s21.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.733s57.102s0.369s21.00x
💻 LocalExpress57.158s (~)58.101s (~)0.943s21.01x
💻 LocalNitro57.184s (~)58.098s (+1.8%)0.913s21.01x
🐘 PostgresNitro75.221s (-25.0% 🟢)75.662s (-25.3% 🟢)0.441s21.33x
🐘 PostgresExpress76.508s (-23.8% 🟢)77.174s (-23.8% 🟢)0.665s21.35x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro104.207s (-1.1%)105.570s (-1.1%)1.363s11.00x
▲ VercelExpress105.439s (+0.8%)106.653s (~)1.214s11.01x
▲ VercelNext.js (Turbopack)108.473s (-1.0%)109.290s (-1.7%)0.817s11.04x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.402s (~)2.005s (~)0.603s151.00x
💻 LocalNext.js (Turbopack)1.419s2.005s0.586s151.01x
💻 LocalExpress1.420s (~)2.005s (~)0.585s151.01x
🐘 PostgresNitro2.016s (-16.2% 🟢)2.597s (-13.8% 🟢)0.581s121.44x
🐘 PostgresExpress2.174s (-10.9% 🟢)2.830s (-6.1% 🟢)0.656s111.55x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.060s (+18.2% 🔺)4.116s (+17.4% 🔺)1.056s81.00x
▲ VercelExpress3.177s (+11.1% 🔺)4.376s (+16.7% 🔺)1.200s71.04x
▲ VercelNext.js (Turbopack)3.420s (+13.9% 🔺)4.504s (+12.8% 🔺)1.084s71.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.512s (-4.9%)3.007s (~)0.495s101.00x
💻 LocalNitro2.577s (+0.8%)3.007s (~)0.430s101.03x
💻 LocalNext.js (Turbopack)2.607s3.007s0.400s101.04x
🐘 PostgresNitro9.381s (+9.1% 🔺)10.044s (+11.3% 🔺)0.663s33.73x
🐘 PostgresExpress9.787s (+24.2% 🔺)10.364s (+25.2% 🔺)0.577s33.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.157s (~)4.259s (-2.0%)1.102s81.00x
▲ VercelNitro3.461s (+6.1% 🔺)4.544s (+4.2%)1.084s71.10x
▲ VercelNext.js (Turbopack)3.836s (+21.2% 🔺)5.322s (+29.0% 🔺)1.486s61.22x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express7.270s (-4.6%)8.027s (~)0.757s41.00x
💻 LocalNitro7.447s (+3.9%)8.019s (~)0.572s41.02x
💻 LocalNext.js (Turbopack)7.728s8.267s0.540s41.06x
🐘 PostgresExpress50.987s (+4.0%)51.106s (+4.0%)0.119s17.01x
🐘 PostgresNitro51.006s (+3.7%)51.113s (+2.0%)0.107s17.02x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.405s (+64.4% 🔺)6.849s (+47.2% 🔺)1.444s51.00x
▲ VercelNext.js (Turbopack)7.246s (+91.6% 🔺)8.526s (+68.3% 🔺)1.280s41.34x
▲ VercelNitro7.717s (+105.8% 🔺)9.157s (+73.5% 🔺)1.440s41.43x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.419s2.004s0.586s151.00x
💻 LocalNitro1.420s (~)2.005s (~)0.585s151.00x
💻 LocalExpress1.422s (~)2.005s (~)0.582s151.00x
🐘 PostgresNitro2.102s (+2.9%)2.513s (-8.3% 🟢)0.410s121.48x
🐘 PostgresExpress2.117s (+12.1% 🔺)2.740s (+5.6% 🔺)0.623s111.49x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.754s (-4.4%)3.694s (-6.8% 🟢)0.940s91.00x
▲ VercelExpress2.882s (+5.7% 🔺)3.859s (+6.8% 🔺)0.977s91.05x
▲ VercelNitro3.001s (+13.7% 🔺)4.203s (+14.4% 🔺)1.202s81.09x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.625s3.007s0.382s101.00x
💻 LocalNitro2.660s (~)3.007s (~)0.347s101.01x
💻 LocalExpress2.676s (-1.0%)3.007s (~)0.331s101.02x
🐘 PostgresNitro12.026s (+2.3%)12.705s (+5.6% 🔺)0.680s34.58x
🐘 PostgresExpress12.034s (+15.0% 🔺)12.697s (+15.1% 🔺)0.663s34.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.854s (-11.2% 🟢)3.994s (-22.6% 🟢)1.140s81.00x
▲ VercelNext.js (Turbopack)3.073s (-5.4% 🟢)4.361s (+0.8%)1.288s71.08x
▲ VercelNitro3.077s (~)4.475s (-14.4% 🟢)1.399s71.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro7.662s (-4.5%)8.020s (-5.9% 🟢)0.358s41.00x
💻 LocalExpress7.846s (~)8.269s (+3.0%)0.423s41.02x
💻 LocalNext.js (Turbopack)8.075s8.517s0.442s41.05x
🐘 PostgresExpress51.742s (~)52.140s (~)0.398s16.75x
🐘 PostgresNitro54.465s (~)55.111s (~)0.646s17.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.344s (-2.8%)4.576s (-2.8%)1.233s71.00x
▲ VercelNitro3.719s (+4.5%)5.147s (~)1.428s71.11x
▲ VercelNext.js (Turbopack)3.739s (~)5.245s (+1.2%)1.507s61.12x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.144s1.001s0.010s1.015s0.871s101.00x
💻 LocalNitro0.170s (-0.9%)1.002s (~)0.010s (-2.9%)1.015s (~)0.846s101.17x
💻 LocalExpress0.172s (+1.2%)1.002s (~)0.010s (-1.0%)1.015s (~)0.843s101.19x
🐘 PostgresExpress1.169s (-51.3% 🟢)1.938s (-26.6% 🟢)0.001s (+16.7% 🔺)2.013s (-33.2% 🟢)0.844s108.10x
🐘 PostgresNitro1.272s (-48.1% 🟢)1.768s (-31.7% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.741s108.81x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.446s (-4.5%)2.871s (-3.9%)0.172s (-30.1% 🟢)3.732s (-5.5% 🟢)1.285s101.00x
▲ VercelExpress2.625s (+2.2%)3.197s (+14.0% 🔺)0.181s (-19.8% 🟢)3.998s (+7.1% 🔺)1.374s101.07x
▲ VercelNext.js (Turbopack)2.700s (~)3.167s (+5.2% 🔺)0.295s (+7.2% 🔺)4.153s (+5.1% 🔺)1.453s101.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)7/12
🐘 PostgresNitro7/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local11/12
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development408062470
✅ 📦 Local Production408062470
✅ 🐘 Local Postgres408062470
✅ 🪟 Windows440347
❌ 🌍 Community Worlds3115712200
✅ 📋 Other120021141
Total18981572602315

❌ Failed Tests

🌍 Community Worlds (157 failed)

mongodb (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4403
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5393
✅ redis-dev300
❌ redis5393
✅ starter-dev300
❌ starter4403
✅ turso-dev300
❌ turso5393
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4007
✅ e2e-local-postgres-nest-stable4007
✅ e2e-local-prod-nest-stable4007

📋 View full workflow run

@vercel

vercelBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackErrorErrorFeb 7, 2026 8:51am
example-nextjs-workflow-webpackErrorErrorFeb 7, 2026 8:51am
example-workflowErrorErrorFeb 7, 2026 8:51am
workbench-astro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-express-workflowErrorErrorFeb 7, 2026 8:51am
workbench-fastify-workflowErrorErrorFeb 7, 2026 8:51am
workbench-hono-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nitro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nuxt-workflowErrorErrorFeb 7, 2026 8:51am
workbench-sveltekit-workflowErrorErrorFeb 7, 2026 8:51am
workbench-vite-workflowErrorErrorFeb 7, 2026 8:51am
workflow-docsErrorErrorFeb 7, 2026 8:51am
workflow-nestErrorErrorFeb 7, 2026 8:51am
workflow-swc-playgroundErrorErrorFeb 7, 2026 8:51am

@TooTallNateGraphite App

TooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
MemberAuthor

- Add test fixture for shorthand method syntax (async execute() { ... }) in nested object properties
- Fix bug where slash characters weren't being replaced with $ in variable references for shorthand methods
- Update spec.md to document shorthand method syntax support
This addresses the PR review comment asking about non-arrow functions in nested object step properties.
Sign up for freeto 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.

4 participants

@TooTallNate@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Fix step functions nested multiple levels deep in an object by TooTallNate · Pull Request #923 · vercel/workflow · GitHub
Skip to content

Fix step functions nested multiple levels deep in an object - #923

Merged
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object
Feb 7, 2026
Merged

Fix step functions nested multiple levels deep in an object#923
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
Member

Fixed a bug where step functions nested multiple levels deep in an object weren't being properly transformed.

What changed?

  • Enhanced the SWC plugin to recursively process nested objects to find step functions
  • Added support for step functions defined inside deeply nested object properties, including function call arguments
  • Implemented proper path handling for nested step IDs, using compound paths (e.g., vade/tools/VercelRequest/execute)
  • Fixed variable name generation by replacing slashes with $ to create valid JavaScript identifiers
  • Updated documentation with examples of nested object property step functions
  • Added test cases for deeply nested step functions and agent tool steps

How to test?

Test with code that has step functions nested multiple levels deep in objects:

exportconstconfig=createConfig({level1: {level2: {level3: {myStep: async(input)=>{"use step";returninput*2;},},},},});

Or with agent tools:

exportconstvade=agent({tools: {VercelRequest: {execute: async(input,ctx)=>{"use step";return1+1;},},},});

Why make this change?

This fix ensures that step functions can be properly identified and transformed regardless of how deeply they are nested in object structures. This is particularly important for complex configurations like agent tools where step functions might be several levels deep in the object hierarchy.

@changeset-bot

changeset-botBot commented Feb 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8cee6a5

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-2.7%)1.006s (~)0.974s101.00x
💻 LocalExpress0.033s (+2.8%)1.007s (~)0.975s101.02x
💻 LocalNext.js (Turbopack)0.047s1.008s0.961s101.47x
🐘 PostgresNitro0.104s (-77.0% 🟢)1.011s (~)0.907s103.23x
🐘 PostgresExpress0.190s (+6.5% 🔺)1.012s (~)0.822s105.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.720s (-14.3% 🟢)2.100s (-1.8%)1.380s101.00x
▲ VercelNext.js (Turbopack)0.872s (+5.5% 🔺)2.245s (+2.7%)1.373s101.21x
▲ VercelNitro0.924s (-23.1% 🟢)2.246s (-17.3% 🟢)1.322s101.28x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s2.006s0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.901s101.00x
💻 LocalExpress1.106s (~)2.005s (~)0.899s101.00x
🐘 PostgresExpress2.195s (-4.4%)3.013s (~)0.818s101.99x
🐘 PostgresNitro2.477s (+4.4%)3.014s (~)0.536s102.24x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.688s (-1.7%)3.788s (+1.7%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.695s (-1.8%)3.701s (+3.1%)1.006s101.00x
▲ VercelExpress2.712s (-0.8%)3.651s (-8.6% 🟢)0.939s101.01x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.744s11.021s0.276s31.00x
💻 LocalNitro10.818s (~)11.020s (~)0.202s31.01x
💻 LocalExpress10.830s (~)11.022s (~)0.192s31.01x
🐘 PostgresNitro20.329s (~)21.059s (~)0.729s21.89x
🐘 PostgresExpress20.413s (~)21.055s (~)0.642s21.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.535s (-2.0%)20.698s (-0.8%)1.163s21.00x
▲ VercelNitro20.051s (+1.1%)20.989s (-2.8%)0.938s21.03x
▲ VercelNext.js (Turbopack)20.418s (+0.8%)21.251s (-2.0%)0.833s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.274s28.039s0.766s31.00x
💻 LocalNitro27.457s (~)28.043s (~)0.586s31.01x
💻 LocalExpress27.478s (~)28.040s (~)0.563s31.01x
🐘 PostgresExpress38.264s (-23.8% 🟢)38.589s (-24.5% 🟢)0.325s21.40x
🐘 PostgresNitro50.351s (~)51.122s (~)0.771s21.85x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express48.803s (-1.9%)50.129s (-1.3%)1.327s21.00x
▲ VercelNitro49.538s (+0.5%)51.129s (+1.6%)1.591s21.02x
▲ VercelNext.js (Turbopack)49.987s (-2.2%)50.996s (-2.1%)1.009s21.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.733s57.102s0.369s21.00x
💻 LocalExpress57.158s (~)58.101s (~)0.943s21.01x
💻 LocalNitro57.184s (~)58.098s (+1.8%)0.913s21.01x
🐘 PostgresNitro75.221s (-25.0% 🟢)75.662s (-25.3% 🟢)0.441s21.33x
🐘 PostgresExpress76.508s (-23.8% 🟢)77.174s (-23.8% 🟢)0.665s21.35x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro104.207s (-1.1%)105.570s (-1.1%)1.363s11.00x
▲ VercelExpress105.439s (+0.8%)106.653s (~)1.214s11.01x
▲ VercelNext.js (Turbopack)108.473s (-1.0%)109.290s (-1.7%)0.817s11.04x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.402s (~)2.005s (~)0.603s151.00x
💻 LocalNext.js (Turbopack)1.419s2.005s0.586s151.01x
💻 LocalExpress1.420s (~)2.005s (~)0.585s151.01x
🐘 PostgresNitro2.016s (-16.2% 🟢)2.597s (-13.8% 🟢)0.581s121.44x
🐘 PostgresExpress2.174s (-10.9% 🟢)2.830s (-6.1% 🟢)0.656s111.55x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.060s (+18.2% 🔺)4.116s (+17.4% 🔺)1.056s81.00x
▲ VercelExpress3.177s (+11.1% 🔺)4.376s (+16.7% 🔺)1.200s71.04x
▲ VercelNext.js (Turbopack)3.420s (+13.9% 🔺)4.504s (+12.8% 🔺)1.084s71.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.512s (-4.9%)3.007s (~)0.495s101.00x
💻 LocalNitro2.577s (+0.8%)3.007s (~)0.430s101.03x
💻 LocalNext.js (Turbopack)2.607s3.007s0.400s101.04x
🐘 PostgresNitro9.381s (+9.1% 🔺)10.044s (+11.3% 🔺)0.663s33.73x
🐘 PostgresExpress9.787s (+24.2% 🔺)10.364s (+25.2% 🔺)0.577s33.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.157s (~)4.259s (-2.0%)1.102s81.00x
▲ VercelNitro3.461s (+6.1% 🔺)4.544s (+4.2%)1.084s71.10x
▲ VercelNext.js (Turbopack)3.836s (+21.2% 🔺)5.322s (+29.0% 🔺)1.486s61.22x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express7.270s (-4.6%)8.027s (~)0.757s41.00x
💻 LocalNitro7.447s (+3.9%)8.019s (~)0.572s41.02x
💻 LocalNext.js (Turbopack)7.728s8.267s0.540s41.06x
🐘 PostgresExpress50.987s (+4.0%)51.106s (+4.0%)0.119s17.01x
🐘 PostgresNitro51.006s (+3.7%)51.113s (+2.0%)0.107s17.02x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.405s (+64.4% 🔺)6.849s (+47.2% 🔺)1.444s51.00x
▲ VercelNext.js (Turbopack)7.246s (+91.6% 🔺)8.526s (+68.3% 🔺)1.280s41.34x
▲ VercelNitro7.717s (+105.8% 🔺)9.157s (+73.5% 🔺)1.440s41.43x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.419s2.004s0.586s151.00x
💻 LocalNitro1.420s (~)2.005s (~)0.585s151.00x
💻 LocalExpress1.422s (~)2.005s (~)0.582s151.00x
🐘 PostgresNitro2.102s (+2.9%)2.513s (-8.3% 🟢)0.410s121.48x
🐘 PostgresExpress2.117s (+12.1% 🔺)2.740s (+5.6% 🔺)0.623s111.49x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.754s (-4.4%)3.694s (-6.8% 🟢)0.940s91.00x
▲ VercelExpress2.882s (+5.7% 🔺)3.859s (+6.8% 🔺)0.977s91.05x
▲ VercelNitro3.001s (+13.7% 🔺)4.203s (+14.4% 🔺)1.202s81.09x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.625s3.007s0.382s101.00x
💻 LocalNitro2.660s (~)3.007s (~)0.347s101.01x
💻 LocalExpress2.676s (-1.0%)3.007s (~)0.331s101.02x
🐘 PostgresNitro12.026s (+2.3%)12.705s (+5.6% 🔺)0.680s34.58x
🐘 PostgresExpress12.034s (+15.0% 🔺)12.697s (+15.1% 🔺)0.663s34.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.854s (-11.2% 🟢)3.994s (-22.6% 🟢)1.140s81.00x
▲ VercelNext.js (Turbopack)3.073s (-5.4% 🟢)4.361s (+0.8%)1.288s71.08x
▲ VercelNitro3.077s (~)4.475s (-14.4% 🟢)1.399s71.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro7.662s (-4.5%)8.020s (-5.9% 🟢)0.358s41.00x
💻 LocalExpress7.846s (~)8.269s (+3.0%)0.423s41.02x
💻 LocalNext.js (Turbopack)8.075s8.517s0.442s41.05x
🐘 PostgresExpress51.742s (~)52.140s (~)0.398s16.75x
🐘 PostgresNitro54.465s (~)55.111s (~)0.646s17.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.344s (-2.8%)4.576s (-2.8%)1.233s71.00x
▲ VercelNitro3.719s (+4.5%)5.147s (~)1.428s71.11x
▲ VercelNext.js (Turbopack)3.739s (~)5.245s (+1.2%)1.507s61.12x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.144s1.001s0.010s1.015s0.871s101.00x
💻 LocalNitro0.170s (-0.9%)1.002s (~)0.010s (-2.9%)1.015s (~)0.846s101.17x
💻 LocalExpress0.172s (+1.2%)1.002s (~)0.010s (-1.0%)1.015s (~)0.843s101.19x
🐘 PostgresExpress1.169s (-51.3% 🟢)1.938s (-26.6% 🟢)0.001s (+16.7% 🔺)2.013s (-33.2% 🟢)0.844s108.10x
🐘 PostgresNitro1.272s (-48.1% 🟢)1.768s (-31.7% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.741s108.81x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.446s (-4.5%)2.871s (-3.9%)0.172s (-30.1% 🟢)3.732s (-5.5% 🟢)1.285s101.00x
▲ VercelExpress2.625s (+2.2%)3.197s (+14.0% 🔺)0.181s (-19.8% 🟢)3.998s (+7.1% 🔺)1.374s101.07x
▲ VercelNext.js (Turbopack)2.700s (~)3.167s (+5.2% 🔺)0.295s (+7.2% 🔺)4.153s (+5.1% 🔺)1.453s101.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)7/12
🐘 PostgresNitro7/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local11/12
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development408062470
✅ 📦 Local Production408062470
✅ 🐘 Local Postgres408062470
✅ 🪟 Windows440347
❌ 🌍 Community Worlds3115712200
✅ 📋 Other120021141
Total18981572602315

❌ Failed Tests

🌍 Community Worlds (157 failed)

mongodb (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4403
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5393
✅ redis-dev300
❌ redis5393
✅ starter-dev300
❌ starter4403
✅ turso-dev300
❌ turso5393
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4007
✅ e2e-local-postgres-nest-stable4007
✅ e2e-local-prod-nest-stable4007

📋 View full workflow run

@vercel

vercelBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackErrorErrorFeb 7, 2026 8:51am
example-nextjs-workflow-webpackErrorErrorFeb 7, 2026 8:51am
example-workflowErrorErrorFeb 7, 2026 8:51am
workbench-astro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-express-workflowErrorErrorFeb 7, 2026 8:51am
workbench-fastify-workflowErrorErrorFeb 7, 2026 8:51am
workbench-hono-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nitro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nuxt-workflowErrorErrorFeb 7, 2026 8:51am
workbench-sveltekit-workflowErrorErrorFeb 7, 2026 8:51am
workbench-vite-workflowErrorErrorFeb 7, 2026 8:51am
workflow-docsErrorErrorFeb 7, 2026 8:51am
workflow-nestErrorErrorFeb 7, 2026 8:51am
workflow-swc-playgroundErrorErrorFeb 7, 2026 8:51am

@TooTallNateGraphite App

TooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
MemberAuthor

- Add test fixture for shorthand method syntax (async execute() { ... }) in nested object properties
- Fix bug where slash characters weren't being replaced with $ in variable references for shorthand methods
- Update spec.md to document shorthand method syntax support
This addresses the PR review comment asking about non-arrow functions in nested object step properties.
Sign up for freeto 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.

4 participants

@TooTallNate@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Universal Dark Mode - works on any site (function() { var enabled = true; function applyDarkMode() { if (!enabled) return; // Create style element if it doesn't exist var style = document.getElementById('universal-dark-mode-style'); if (!style) { style = document.createElement('style'); style.id = 'universal-dark-mode-style'; document.head.appendChild(style); } // Dark mode CSS - inverts colors but preserves images/video style.textContent = ' /* Invert everything except media */ html { filter: invert(1) hue-rotate(180deg) !important; background: #1a1a2e !important; } /* Restore images, videos, iframes, canvas */ img, video, iframe, canvas, svg, picture, [style*="background-image"] { filter: invert(1) hue-rotate(180deg) !important; } /* Preserve specific elements that should not be inverted */ .no-dark-mode, .no-dark-mode *, [data-theme="light"], [data-theme="light"], .ace_editor, .ace_editor *, .CodeMirror, .CodeMirror *, .monaco-editor, .monaco-editor *, .markdown-body pre, .markdown-body pre *, .highlight, .highlight *, pre code, pre code * { filter: none !important; } /* Fix common UI elements */ .modal, .popup, .dropdown-menu, .tooltip, .popover { filter: invert(1) hue-rotate(180deg) !important; background: #2d2d44 !important; border-color: #444 !important; } /* Scrollbars */ ::-webkit-scrollbar { background: #1a1a2e !important; } ::-webkit-scrollbar-thumb { background: #444 !important; } ::-webkit-scrollbar-thumb:hover { background: #555 !important; } /* Selection */ ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; } ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; } '; } function removeDarkMode() { var style = document.getElementById('universal-dark-mode-style'); if (style) style.remove(); } // Toggle with Alt+Shift+D document.addEventListener('keydown', function(e) { if (e.altKey && e.shiftKey && e.key === 'D') { e.preventDefault(); enabled = !enabled; if (enabled) { applyDarkMode(); console.log('[Universal Dark Mode] Enabled'); } else { removeDarkMode(); console.log('[Universal Dark Mode] Disabled'); } } }); // Apply on load applyDarkMode(); // Re-apply on dynamic content var observer = new MutationObserver(function(mutations) { if (enabled && !document.getElementById('universal-dark-mode-style')) { applyDarkMode(); } }); observer.observe(document.head, { childList: true }); console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle'); })(); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })(); Fix step functions nested multiple levels deep in an object by TooTallNate · Pull Request #923 · vercel/workflow · GitHub
Skip to content

Fix step functions nested multiple levels deep in an object - #923

Merged
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object
Feb 7, 2026
Merged

Fix step functions nested multiple levels deep in an object#923
TooTallNate merged 4 commits into
mainfrom
02-03-fix_step_functions_nested_multiple_levels_deep_in_an_object

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
Member

Fixed a bug where step functions nested multiple levels deep in an object weren't being properly transformed.

What changed?

  • Enhanced the SWC plugin to recursively process nested objects to find step functions
  • Added support for step functions defined inside deeply nested object properties, including function call arguments
  • Implemented proper path handling for nested step IDs, using compound paths (e.g., vade/tools/VercelRequest/execute)
  • Fixed variable name generation by replacing slashes with $ to create valid JavaScript identifiers
  • Updated documentation with examples of nested object property step functions
  • Added test cases for deeply nested step functions and agent tool steps

How to test?

Test with code that has step functions nested multiple levels deep in objects:

exportconstconfig=createConfig({level1: {level2: {level3: {myStep: async(input)=>{"use step";returninput*2;},},},},});

Or with agent tools:

exportconstvade=agent({tools: {VercelRequest: {execute: async(input,ctx)=>{"use step";return1+1;},},},});

Why make this change?

This fix ensures that step functions can be properly identified and transformed regardless of how deeply they are nested in object structures. This is particularly important for complex configurations like agent tools where step functions might be several levels deep in the object hierarchy.

@changeset-bot

changeset-botBot commented Feb 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8cee6a5

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-2.7%)1.006s (~)0.974s101.00x
💻 LocalExpress0.033s (+2.8%)1.007s (~)0.975s101.02x
💻 LocalNext.js (Turbopack)0.047s1.008s0.961s101.47x
🐘 PostgresNitro0.104s (-77.0% 🟢)1.011s (~)0.907s103.23x
🐘 PostgresExpress0.190s (+6.5% 🔺)1.012s (~)0.822s105.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.720s (-14.3% 🟢)2.100s (-1.8%)1.380s101.00x
▲ VercelNext.js (Turbopack)0.872s (+5.5% 🔺)2.245s (+2.7%)1.373s101.21x
▲ VercelNitro0.924s (-23.1% 🟢)2.246s (-17.3% 🟢)1.322s101.28x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s2.006s0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.901s101.00x
💻 LocalExpress1.106s (~)2.005s (~)0.899s101.00x
🐘 PostgresExpress2.195s (-4.4%)3.013s (~)0.818s101.99x
🐘 PostgresNitro2.477s (+4.4%)3.014s (~)0.536s102.24x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.688s (-1.7%)3.788s (+1.7%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.695s (-1.8%)3.701s (+3.1%)1.006s101.00x
▲ VercelExpress2.712s (-0.8%)3.651s (-8.6% 🟢)0.939s101.01x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.744s11.021s0.276s31.00x
💻 LocalNitro10.818s (~)11.020s (~)0.202s31.01x
💻 LocalExpress10.830s (~)11.022s (~)0.192s31.01x
🐘 PostgresNitro20.329s (~)21.059s (~)0.729s21.89x
🐘 PostgresExpress20.413s (~)21.055s (~)0.642s21.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.535s (-2.0%)20.698s (-0.8%)1.163s21.00x
▲ VercelNitro20.051s (+1.1%)20.989s (-2.8%)0.938s21.03x
▲ VercelNext.js (Turbopack)20.418s (+0.8%)21.251s (-2.0%)0.833s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.274s28.039s0.766s31.00x
💻 LocalNitro27.457s (~)28.043s (~)0.586s31.01x
💻 LocalExpress27.478s (~)28.040s (~)0.563s31.01x
🐘 PostgresExpress38.264s (-23.8% 🟢)38.589s (-24.5% 🟢)0.325s21.40x
🐘 PostgresNitro50.351s (~)51.122s (~)0.771s21.85x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express48.803s (-1.9%)50.129s (-1.3%)1.327s21.00x
▲ VercelNitro49.538s (+0.5%)51.129s (+1.6%)1.591s21.02x
▲ VercelNext.js (Turbopack)49.987s (-2.2%)50.996s (-2.1%)1.009s21.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.733s57.102s0.369s21.00x
💻 LocalExpress57.158s (~)58.101s (~)0.943s21.01x
💻 LocalNitro57.184s (~)58.098s (+1.8%)0.913s21.01x
🐘 PostgresNitro75.221s (-25.0% 🟢)75.662s (-25.3% 🟢)0.441s21.33x
🐘 PostgresExpress76.508s (-23.8% 🟢)77.174s (-23.8% 🟢)0.665s21.35x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro104.207s (-1.1%)105.570s (-1.1%)1.363s11.00x
▲ VercelExpress105.439s (+0.8%)106.653s (~)1.214s11.01x
▲ VercelNext.js (Turbopack)108.473s (-1.0%)109.290s (-1.7%)0.817s11.04x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.402s (~)2.005s (~)0.603s151.00x
💻 LocalNext.js (Turbopack)1.419s2.005s0.586s151.01x
💻 LocalExpress1.420s (~)2.005s (~)0.585s151.01x
🐘 PostgresNitro2.016s (-16.2% 🟢)2.597s (-13.8% 🟢)0.581s121.44x
🐘 PostgresExpress2.174s (-10.9% 🟢)2.830s (-6.1% 🟢)0.656s111.55x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.060s (+18.2% 🔺)4.116s (+17.4% 🔺)1.056s81.00x
▲ VercelExpress3.177s (+11.1% 🔺)4.376s (+16.7% 🔺)1.200s71.04x
▲ VercelNext.js (Turbopack)3.420s (+13.9% 🔺)4.504s (+12.8% 🔺)1.084s71.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.512s (-4.9%)3.007s (~)0.495s101.00x
💻 LocalNitro2.577s (+0.8%)3.007s (~)0.430s101.03x
💻 LocalNext.js (Turbopack)2.607s3.007s0.400s101.04x
🐘 PostgresNitro9.381s (+9.1% 🔺)10.044s (+11.3% 🔺)0.663s33.73x
🐘 PostgresExpress9.787s (+24.2% 🔺)10.364s (+25.2% 🔺)0.577s33.90x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.157s (~)4.259s (-2.0%)1.102s81.00x
▲ VercelNitro3.461s (+6.1% 🔺)4.544s (+4.2%)1.084s71.10x
▲ VercelNext.js (Turbopack)3.836s (+21.2% 🔺)5.322s (+29.0% 🔺)1.486s61.22x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express7.270s (-4.6%)8.027s (~)0.757s41.00x
💻 LocalNitro7.447s (+3.9%)8.019s (~)0.572s41.02x
💻 LocalNext.js (Turbopack)7.728s8.267s0.540s41.06x
🐘 PostgresExpress50.987s (+4.0%)51.106s (+4.0%)0.119s17.01x
🐘 PostgresNitro51.006s (+3.7%)51.113s (+2.0%)0.107s17.02x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.405s (+64.4% 🔺)6.849s (+47.2% 🔺)1.444s51.00x
▲ VercelNext.js (Turbopack)7.246s (+91.6% 🔺)8.526s (+68.3% 🔺)1.280s41.34x
▲ VercelNitro7.717s (+105.8% 🔺)9.157s (+73.5% 🔺)1.440s41.43x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.419s2.004s0.586s151.00x
💻 LocalNitro1.420s (~)2.005s (~)0.585s151.00x
💻 LocalExpress1.422s (~)2.005s (~)0.582s151.00x
🐘 PostgresNitro2.102s (+2.9%)2.513s (-8.3% 🟢)0.410s121.48x
🐘 PostgresExpress2.117s (+12.1% 🔺)2.740s (+5.6% 🔺)0.623s111.49x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.754s (-4.4%)3.694s (-6.8% 🟢)0.940s91.00x
▲ VercelExpress2.882s (+5.7% 🔺)3.859s (+6.8% 🔺)0.977s91.05x
▲ VercelNitro3.001s (+13.7% 🔺)4.203s (+14.4% 🔺)1.202s81.09x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.625s3.007s0.382s101.00x
💻 LocalNitro2.660s (~)3.007s (~)0.347s101.01x
💻 LocalExpress2.676s (-1.0%)3.007s (~)0.331s101.02x
🐘 PostgresNitro12.026s (+2.3%)12.705s (+5.6% 🔺)0.680s34.58x
🐘 PostgresExpress12.034s (+15.0% 🔺)12.697s (+15.1% 🔺)0.663s34.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.854s (-11.2% 🟢)3.994s (-22.6% 🟢)1.140s81.00x
▲ VercelNext.js (Turbopack)3.073s (-5.4% 🟢)4.361s (+0.8%)1.288s71.08x
▲ VercelNitro3.077s (~)4.475s (-14.4% 🟢)1.399s71.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro7.662s (-4.5%)8.020s (-5.9% 🟢)0.358s41.00x
💻 LocalExpress7.846s (~)8.269s (+3.0%)0.423s41.02x
💻 LocalNext.js (Turbopack)8.075s8.517s0.442s41.05x
🐘 PostgresExpress51.742s (~)52.140s (~)0.398s16.75x
🐘 PostgresNitro54.465s (~)55.111s (~)0.646s17.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.344s (-2.8%)4.576s (-2.8%)1.233s71.00x
▲ VercelNitro3.719s (+4.5%)5.147s (~)1.428s71.11x
▲ VercelNext.js (Turbopack)3.739s (~)5.245s (+1.2%)1.507s61.12x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.144s1.001s0.010s1.015s0.871s101.00x
💻 LocalNitro0.170s (-0.9%)1.002s (~)0.010s (-2.9%)1.015s (~)0.846s101.17x
💻 LocalExpress0.172s (+1.2%)1.002s (~)0.010s (-1.0%)1.015s (~)0.843s101.19x
🐘 PostgresExpress1.169s (-51.3% 🟢)1.938s (-26.6% 🟢)0.001s (+16.7% 🔺)2.013s (-33.2% 🟢)0.844s108.10x
🐘 PostgresNitro1.272s (-48.1% 🟢)1.768s (-31.7% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.741s108.81x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.446s (-4.5%)2.871s (-3.9%)0.172s (-30.1% 🟢)3.732s (-5.5% 🟢)1.285s101.00x
▲ VercelExpress2.625s (+2.2%)3.197s (+14.0% 🔺)0.181s (-19.8% 🟢)3.998s (+7.1% 🔺)1.374s101.07x
▲ VercelNext.js (Turbopack)2.700s (~)3.167s (+5.2% 🔺)0.295s (+7.2% 🔺)4.153s (+5.1% 🔺)1.453s101.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)7/12
🐘 PostgresNitro7/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local11/12
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development408062470
✅ 📦 Local Production408062470
✅ 🐘 Local Postgres408062470
✅ 🪟 Windows440347
❌ 🌍 Community Worlds3115712200
✅ 📋 Other120021141
Total18981572602315

❌ Failed Tests

🌍 Community Worlds (157 failed)

mongodb (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (39 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4007
✅ express-stable4007
✅ fastify-stable4007
✅ hono-stable4007
✅ nextjs-turbopack-stable4403
✅ nextjs-webpack-stable4403
✅ nitro-stable4007
✅ nuxt-stable4007
✅ sveltekit-stable4007
✅ vite-stable4007
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4403
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5393
✅ redis-dev300
❌ redis5393
✅ starter-dev300
❌ starter4403
✅ turso-dev300
❌ turso5393
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4007
✅ e2e-local-postgres-nest-stable4007
✅ e2e-local-prod-nest-stable4007

📋 View full workflow run

@vercel

vercelBot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackErrorErrorFeb 7, 2026 8:51am
example-nextjs-workflow-webpackErrorErrorFeb 7, 2026 8:51am
example-workflowErrorErrorFeb 7, 2026 8:51am
workbench-astro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-express-workflowErrorErrorFeb 7, 2026 8:51am
workbench-fastify-workflowErrorErrorFeb 7, 2026 8:51am
workbench-hono-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nitro-workflowErrorErrorFeb 7, 2026 8:51am
workbench-nuxt-workflowErrorErrorFeb 7, 2026 8:51am
workbench-sveltekit-workflowErrorErrorFeb 7, 2026 8:51am
workbench-vite-workflowErrorErrorFeb 7, 2026 8:51am
workflow-docsErrorErrorFeb 7, 2026 8:51am
workflow-nestErrorErrorFeb 7, 2026 8:51am
workflow-swc-playgroundErrorErrorFeb 7, 2026 8:51am

@TooTallNateGraphite App

TooTallNate commented Feb 3, 2026

Copy link
Copy Markdown
MemberAuthor

- Add test fixture for shorthand method syntax (async execute() { ... }) in nested object properties
- Fix bug where slash characters weren't being replaced with $ in variable references for shorthand methods
- Update spec.md to document shorthand method syntax support
This addresses the PR review comment asking about non-arrow functions in nested object step properties.
Sign up for freeto 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.

4 participants

@TooTallNate@pranaygp@VaguelySerious