Skip to content

Conversation

@VaguelySerious
Copy link
Member

@VaguelySerious VaguelySerious commented Jan 9, 2026

This polishes and publishes the Chat Session Modeling page, which includes examples on how to do multi-turn chat session with message injection via hook.

It polishes but does not publish the Queueing Messages page, which still still needs some testing.

There's a sister-PR for the flight booking app (vercel/workflow-examples#25) which implements multi-turn messages as the default pattern for the flight booking app.

@vercel
Copy link
Contributor

vercel bot commented Jan 9, 2026

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

Project Deployment Review Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Jan 16, 2026 6:41pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Jan 16, 2026 6:41pm
example-workflow Ready Ready Preview, Comment Jan 16, 2026 6:41pm
workbench-astro-workflow Ready Ready Preview, Comment Jan 16, 2026 6:41pm
workbench-express-workflow Ready Ready Preview, Comment Jan 16, 2026 6:41pm
workbench-fastify-workflow Ready Ready Preview, Comment Jan 16, 2026 6:41pm
workbench-hono-workflow Ready Ready Preview, Comment Jan 16, 2026 6:41pm
workbench-nitro-workflow Ready Ready Preview, Comment Jan 16, 2026 6:41pm
workbench-nuxt-workflow Ready Ready Preview, Comment Jan 16, 2026 6:41pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Jan 16, 2026 6:41pm
workbench-vite-workflow Ready Ready Preview, Comment Jan 16, 2026 6:41pm
workflow-docs Ready Ready Preview, Comment Jan 16, 2026 6:41pm

@changeset-bot
Copy link

changeset-bot bot commented Jan 9, 2026

⚠️ No Changeset found

Latest commit: 8bff7da

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 424 0 38 462
✅ 💻 Local Development 388 0 32 420
✅ 📦 Local Production 388 0 32 420
✅ 🐘 Local Postgres 388 0 32 420
✅ 🪟 Windows 42 0 0 42
❌ 🌍 Community Worlds 159 21 0 180
Total 1789 21 134 1944

❌ Failed Tests

🌍 Community Worlds (21 failed)

mongodb (1 failed):

  • webhookWorkflow

redis (1 failed):

  • webhookWorkflow

starter (18 failed):

  • addTenWorkflow
  • addTenWorkflow
  • 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 catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • 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()

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 38 0 4
✅ example 38 0 4
✅ express 38 0 4
✅ fastify 38 0 4
✅ hono 38 0 4
✅ nextjs-turbopack 41 0 1
✅ nextjs-webpack 41 0 1
✅ nitro 38 0 4
✅ nuxt 38 0 4
✅ sveltekit 38 0 4
✅ vite 38 0 4
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 38 0 4
✅ express-stable 38 0 4
✅ fastify-stable 38 0 4
✅ hono-stable 38 0 4
✅ nextjs-turbopack-stable 42 0 0
✅ nextjs-webpack-stable 42 0 0
✅ nitro-stable 38 0 4
✅ nuxt-stable 38 0 4
✅ sveltekit-stable 38 0 4
✅ vite-stable 38 0 4
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 38 0 4
✅ express-stable 38 0 4
✅ fastify-stable 38 0 4
✅ hono-stable 38 0 4
✅ nextjs-turbopack-stable 42 0 0
✅ nextjs-webpack-stable 42 0 0
✅ nitro-stable 38 0 4
✅ nuxt-stable 38 0 4
✅ sveltekit-stable 38 0 4
✅ vite-stable 38 0 4
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 38 0 4
✅ express-stable 38 0 4
✅ fastify-stable 38 0 4
✅ hono-stable 38 0 4
✅ nextjs-turbopack-stable 42 0 0
✅ nextjs-webpack-stable 42 0 0
✅ nitro-stable 38 0 4
✅ nuxt-stable 38 0 4
✅ sveltekit-stable 38 0 4
✅ vite-stable 38 0 4
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 42 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 0
❌ mongodb 41 1 0
✅ redis-dev 3 0 0
❌ redis 41 1 0
✅ starter-dev 3 0 0
❌ starter 24 18 0
✅ turso-dev 3 0 0
❌ turso 41 1 0

📋 View full workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 0.042s (+2.7%) 1.016s (~) 0.975s 10 1.00x
🌐 Starter Next.js (Turbopack) 0.042s (+8.0% 🔺) 1.015s (~) 0.973s 10 1.00x
💻 Local Express 0.043s (-3.6%) 1.007s (~) 0.964s 10 1.03x
🌐 Redis Next.js (Turbopack) 0.043s (+2.9%) 1.018s (~) 0.974s 10 1.04x
💻 Local Nitro 0.049s (+11.4% 🔺) 1.010s (~) 0.961s 10 1.17x
🌐 MongoDB Next.js (Turbopack) 0.089s (+55.3% 🔺) 1.016s (~) 0.927s 10 2.12x
🌐 Turso Next.js (Turbopack) 0.112s (+5.0%) 1.014s (~) 0.902s 10 2.68x
🐘 Postgres Next.js (Turbopack) 0.138s (-62.1% 🟢) 1.023s (~) 0.885s 10 3.30x
🐘 Postgres Nitro 0.288s (+6.3% 🔺) 1.028s (+1.5%) 0.740s 10 6.89x
🐘 Postgres Express 0.350s (+10.2% 🔺) 1.012s (~) 0.662s 10 8.37x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 0.589s (+8.0% 🔺) 1.564s (~) 0.974s 10 1.00x
▲ Vercel Next.js (Turbopack) 0.624s (-9.4% 🟢) 1.593s (-1.7%) 0.969s 10 1.06x
▲ Vercel Express 0.705s (+23.3% 🔺) 1.645s (+13.6% 🔺) 0.940s 10 1.20x

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

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Starter 🥇 Next.js (Turbopack) 1.096s (~) 2.009s (~) 0.913s 10 1.00x
💻 Local Next.js (Turbopack) 1.100s (~) 2.011s (~) 0.911s 10 1.00x
🌐 Redis Next.js (Turbopack) 1.112s (~) 2.013s (~) 0.900s 10 1.01x
💻 Local Express 1.113s (~) 2.007s (~) 0.894s 10 1.02x
💻 Local Nitro 1.114s (~) 2.006s (~) 0.892s 10 1.02x
🌐 Turso Next.js (Turbopack) 1.286s (-1.1%) 2.014s (~) 0.727s 10 1.17x
🌐 MongoDB Next.js (Turbopack) 1.315s (+1.4%) 2.013s (~) 0.697s 10 1.20x
🐘 Postgres Next.js (Turbopack) 1.888s (+8.2% 🔺) 2.019s (~) 0.131s 10 1.72x
🐘 Postgres Express 2.208s (+3.6%) 3.013s (~) 0.805s 10 2.01x
🐘 Postgres Nitro 2.437s (+15.4% 🔺) 3.012s (~) 0.575s 10 2.22x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.837s (-1.5%) 3.532s (-1.3%) 0.694s 10 1.00x
▲ Vercel Next.js (Turbopack) 2.855s (-2.1%) 3.762s (+1.4%) 0.906s 10 1.01x
▲ Vercel Nitro 2.878s (-14.8% 🟢) 3.684s (-12.2% 🟢) 0.805s 10 1.01x

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

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Starter 🥇 Next.js (Turbopack) 10.602s (~) 11.014s (~) 0.411s 5 1.00x
💻 Local Next.js (Turbopack) 10.668s (~) 11.018s (~) 0.350s 5 1.01x
🌐 Redis Next.js (Turbopack) 10.700s (~) 11.020s (~) 0.320s 5 1.01x
💻 Local Express 10.788s (~) 11.012s (~) 0.224s 5 1.02x
💻 Local Nitro 10.791s (~) 11.013s (~) 0.222s 5 1.02x
🌐 Turso Next.js (Turbopack) 12.222s (~) 13.024s (~) 0.803s 5 1.15x
🌐 MongoDB Next.js (Turbopack) 12.242s (~) 13.024s (~) 0.782s 5 1.15x
🐘 Postgres Next.js (Turbopack) 14.850s (-2.5%) 15.244s (-3.8%) 0.394s 5 1.40x
🐘 Postgres Express 15.536s (-24.1% 🟢) 16.035s (-23.8% 🟢) 0.499s 5 1.47x
🐘 Postgres Nitro 20.373s (~) 21.032s (~) 0.660s 5 1.92x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 22.043s (-8.1% 🟢) 22.759s (-8.4% 🟢) 0.716s 5 1.00x
▲ Vercel Nitro 22.468s (~) 23.164s (-2.1%) 0.696s 5 1.02x
▲ Vercel Express 22.749s (~) 23.941s (+1.6%) 1.192s 5 1.03x

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

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Starter 🥇 Next.js (Turbopack) 1.359s (+1.1%) 2.008s (~) 0.650s 15 1.00x
🌐 Redis Next.js (Turbopack) 1.367s (+0.6%) 2.011s (~) 0.644s 15 1.01x
💻 Local Next.js (Turbopack) 1.394s (+0.9%) 2.013s (~) 0.619s 15 1.03x
💻 Local Express 1.406s (~) 2.007s (~) 0.601s 15 1.03x
💻 Local Nitro 1.422s (+0.9%) 2.007s (~) 0.585s 15 1.05x
🐘 Postgres Next.js (Turbopack) 1.667s (-14.7% 🟢) 2.016s (-13.4% 🟢) 0.350s 15 1.23x
🌐 MongoDB Next.js (Turbopack) 2.138s (-0.9%) 3.013s (~) 0.875s 10 1.57x
🌐 Turso Next.js (Turbopack) 2.215s (+0.6%) 3.012s (~) 0.797s 10 1.63x
🐘 Postgres Express 2.401s (+2.4%) 3.012s (~) 0.611s 10 1.77x
🐘 Postgres Nitro 2.509s (+6.1% 🔺) 3.015s (~) 0.505s 10 1.85x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.890s (-1.8%) 3.831s (+3.4%) 0.941s 8 1.00x
▲ Vercel Next.js (Turbopack) 2.946s (-14.0% 🟢) 3.838s (-10.5% 🟢) 0.892s 9 1.02x
▲ Vercel Express 11.736s (+269.3% 🔺) 12.517s (+215.5% 🔺) 0.780s 4 4.06x

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

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 2.140s (-3.3%) 3.056s (-3.5%) 0.916s 10 1.00x
💻 Local Express 2.209s (-0.9%) 3.155s (-0.6%) 0.946s 10 1.03x
💻 Local Nitro 2.270s (+2.3%) 3.219s (+2.4%) 0.949s 10 1.06x
🌐 Starter Next.js (Turbopack) 2.478s (+1.1%) 3.021s (~) 0.542s 10 1.16x
🌐 Redis Next.js (Turbopack) 2.490s (~) 3.012s (~) 0.521s 10 1.16x
🐘 Postgres Next.js (Turbopack) 2.635s (-0.8%) 3.052s (+0.8%) 0.416s 10 1.23x
🐘 Postgres Express 2.917s (-6.2% 🟢) 3.346s (-14.5% 🟢) 0.429s 9 1.36x
🐘 Postgres Nitro 3.295s (+10.2% 🔺) 3.906s (+12.5% 🔺) 0.610s 8 1.54x
🌐 MongoDB Next.js (Turbopack) 4.650s (-1.8%) 5.182s (~) 0.532s 6 2.17x
🌐 Turso Next.js (Turbopack) 4.721s (+1.4%) 5.183s (~) 0.462s 6 2.21x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.243s (-7.4% 🟢) 3.802s (-9.4% 🟢) 0.559s 8 1.00x
▲ Vercel Next.js (Turbopack) 3.246s (-4.6%) 3.967s (-2.0%) 0.721s 8 1.00x
▲ Vercel Nitro 3.889s (+6.1% 🔺) 4.569s (+9.5% 🔺) 0.680s 7 1.20x

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

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Starter 🥇 Next.js (Turbopack) 1.368s (+2.6%) 2.008s (~) 0.639s 15 1.00x
🌐 Redis Next.js (Turbopack) 1.382s (-1.1%) 2.012s (~) 0.630s 15 1.01x
💻 Local Next.js (Turbopack) 1.385s (-1.9%) 2.012s (~) 0.628s 15 1.01x
💻 Local Express 1.427s (-0.5%) 2.006s (~) 0.580s 15 1.04x
💻 Local Nitro 1.433s (~) 2.006s (~) 0.573s 15 1.05x
🐘 Postgres Next.js (Turbopack) 1.806s (+6.5% 🔺) 2.016s (~) 0.210s 15 1.32x
🐘 Postgres Nitro 1.888s (-2.9%) 2.154s (+3.7%) 0.265s 14 1.38x
🐘 Postgres Express 2.010s (-12.7% 🟢) 2.328s (-10.3% 🟢) 0.318s 13 1.47x
🌐 MongoDB Next.js (Turbopack) 2.148s (+1.0%) 3.014s (~) 0.865s 10 1.57x
🌐 Turso Next.js (Turbopack) 2.227s (~) 3.012s (~) 0.785s 10 1.63x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.800s (-6.5% 🟢) 3.703s (~) 0.903s 9 1.00x
▲ Vercel Express 2.837s (-7.5% 🟢) 3.625s (-4.1%) 0.788s 9 1.01x
▲ Vercel Next.js (Turbopack) 3.738s (+20.9% 🔺) 4.691s (+23.7% 🔺) 0.953s 7 1.34x

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

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 2.015s (-7.2% 🟢) 2.783s (-6.7% 🟢) 0.767s 11 1.00x
💻 Local Express 2.253s (-1.3%) 3.199s (~) 0.946s 10 1.12x
💻 Local Nitro 2.347s (-2.1%) 3.267s (~) 0.921s 10 1.16x
🌐 Starter Next.js (Turbopack) 2.476s (+1.5%) 3.008s (~) 0.532s 10 1.23x
🌐 Redis Next.js (Turbopack) 2.485s (~) 3.014s (~) 0.529s 10 1.23x
🐘 Postgres Next.js (Turbopack) 2.610s (+0.7%) 3.023s (~) 0.413s 10 1.30x
🐘 Postgres Nitro 2.712s (+3.2%) 3.025s (~) 0.313s 10 1.35x
🐘 Postgres Express 2.768s (-4.7%) 3.014s (~) 0.246s 10 1.37x
🌐 Turso Next.js (Turbopack) 4.742s (+1.5%) 5.181s (~) 0.439s 6 2.35x
🌐 MongoDB Next.js (Turbopack) 4.750s (~) 5.181s (~) 0.431s 6 2.36x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 3.268s (-1.8%) 3.904s (~) 0.636s 8 1.00x
▲ Vercel Express 3.425s (-4.9%) 4.252s (~) 0.828s 8 1.05x
▲ Vercel Nitro 3.654s (+7.4% 🔺) 4.220s (+8.6% 🔺) 0.566s 8 1.12x

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

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🌐 Starter 🥇 Next.js (Turbopack) 0.131s (+4.1%) 1.006s (~) 0.000s (NaN%) 1.012s (~) 0.881s 10 1.00x
💻 Local Next.js (Turbopack) 0.139s (-2.0%) 1.003s (~) 0.017s (+1.2%) 1.028s (~) 0.889s 10 1.06x
🌐 Redis Next.js (Turbopack) 0.152s (+2.2%) 1.004s (~) 0.000s (+100.0% 🔺) 1.014s (~) 0.862s 10 1.16x
💻 Local Express 0.173s (~) 0.992s (~) 0.016s (-0.6%) 1.023s (~) 0.850s 10 1.32x
💻 Local Nitro 0.177s (~) 0.992s (~) 0.017s (-1.2%) 1.023s (~) 0.846s 10 1.35x
🌐 MongoDB Next.js (Turbopack) 0.466s (-10.6% 🟢) 0.981s (+5.4% 🔺) 0.000s (+Infinity% 🔺) 1.012s (~) 0.547s 10 3.55x
🌐 Turso Next.js (Turbopack) 0.495s (-8.4% 🟢) 0.954s (+5.1% 🔺) 0.000s (+Infinity% 🔺) 1.013s (~) 0.518s 10 3.78x
🐘 Postgres Next.js (Turbopack) 0.771s (-39.9% 🟢) 0.838s (-52.5% 🟢) 0.009s (+Infinity% 🔺) 1.028s (-49.1% 🟢) 0.257s 10 5.88x
🐘 Postgres Express 1.326s (-41.2% 🟢) 1.718s (-38.5% 🟢) 0.000s (NaN%) 2.015s (-33.2% 🟢) 0.689s 10 10.12x
🐘 Postgres Nitro 2.183s (-4.8%) 2.861s (+4.0%) 0.000s (~) 3.015s (~) 0.832s 10 16.67x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.841s (-6.6% 🟢) 3.292s (~) 0.425s (-45.4% 🟢) 4.209s (-6.7% 🟢) 1.369s 10 1.00x
▲ Vercel Express 2.949s (-2.0%) 3.194s (-4.7%) 0.666s (-39.4% 🟢) 4.322s (-12.7% 🟢) 1.373s 10 1.04x
▲ Vercel Nitro 3.169s (~) 3.458s (+4.2%) 0.539s (-44.8% 🟢) 4.462s (-6.5% 🟢) 1.293s 10 1.12x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Next.js (Turbopack) 8/8
🐘 Postgres Next.js (Turbopack) 8/8
▲ Vercel Nitro 3/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 💻 Local 8/8
Next.js (Turbopack) 🌐 Starter 5/8
Nitro 💻 Local 8/8
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

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Missing || operator between two conditions in if statement causes invalid JavaScript syntax in documentation code example

Fix on Vercel

Create a typed hook with a Zod schema for validation:

```typescript title="workflow/steps/tools.ts" lineNumbers
```typescript title="workflow/hooks/booking-approval.ts" lineNumbers
Copy link
Contributor

@vercel vercel bot Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File path title uses singular "workflow" but import path and other workflow paths use plural "workflows", causing inconsistency in documentation

Fix on Vercel

VaguelySerious and others added 12 commits January 9, 2026 19:39
Signed-off-by: Peter Wielander <[email protected]>
* feat: add queue-based health check to bypass Deployment Protection

- Add HealthCheckPayloadSchema and HEALTH_CHECK_STREAM_PREFIX to @workflow/world
- Add healthCheck() method to Queue interface
- Update workflow and step handlers to detect and respond to health check messages
- Implement healthCheck() in world-local, world-vercel, and world-postgres

The queue-based health check sends a message through the queue pipeline,
which bypasses Vercel's Deployment Protection. The handler writes a response
to a stream that the caller reads to confirm health.

This complements the existing HTTP-based ?__health approach which still works
for local development and when bypass headers are available.

* refactor: move healthCheck to core package as utility function

Instead of adding healthCheck to the World interface (which duplicated
the same implementation across all worlds), this is now a utility function
in @workflow/core that takes the World as a parameter.

Usage:
  import { healthCheck } from '@workflow/core';
  const result = await healthCheck(world, 'workflow');

This is cleaner because:
- Single implementation instead of 3 identical ones
- World implementations remain simple
- No changes needed to the World interface

* .

* refactor: move health check types from world to core

Health check types (HealthCheckPayloadSchema, HealthCheckResult, etc.)
are now defined in @workflow/core since that's where they're used.

The HealthCheckPayloadSchema is still part of QueuePayloadSchema in
world (so the queue accepts health check messages), but it's not
exported from the public API.

* .

* Refactor health check implementation based on code review feedback (#746)

* Initial plan

* Address PR review comments: export types, fix race condition, improve error handling

Co-authored-by: TooTallNate <[email protected]>

* Add queue-based health check test and document security considerations

Co-authored-by: TooTallNate <[email protected]>

* Replace 'any' type with proper type guards for health check response

Co-authored-by: TooTallNate <[email protected]>

* Extract health check queue names as constants and improve type guards

Co-authored-by: TooTallNate <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: TooTallNate <[email protected]>

* .

* Fix e2e test

* .

* .

* .

* fix(ai): preserve providerMetadata as providerOptions in multi-turn tool calls (#733)

When tool calls are added to the conversation history, map providerMetadata
to providerOptions following the AI SDK convention. This fixes Gemini thinking
models that require thoughtSignature to be preserved across multi-turn tool calls,
preventing the error 'function call is missing a thought_signature'.

Fixes #727

* Local ui cli flag (#744)

* [web] Increase contrast on attribute items in sidebar (#736)

Signed-off-by: Peter Wielander <[email protected]>

* [world] Remove pause and resume events, actions and states (#751)

* Version Packages (beta) (#735)

* .

* .

* Update turbo inputs to include shared config (#752)

* Update turbo inputs to include shared config

* Apply suggestions from code review

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>

---------

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>

* feat(web): add self-hosted mode for world configuration (#747)

* feat(web): add self-hosted mode for world configuration

When WORKFLOW_TARGET_WORLD env var is set, the web UI operates in
self-hosted mode where the world configuration is locked to server-side
environment variables and cannot be changed via query params or UI.

- Add getHardcodedConfig server action to detect self-hosted mode
- Modify getWorldFromEnv to use server env vars in hardcoded mode
- Create WorldConfigContext to provide config state app-wide
- Update settings sidebar to show locked state with disabled inputs
- Update connection status to show PostgreSQL backend info
- Mask sensitive values (postgres URL) in hardcoded mode UI

* fix: address PR review feedback

- Remove unused ConfigMode type export
- Fix postgres substring to undefined (tooltip has details)
- Extract buildEnvMapFromProcessEnv helper to reduce duplication
- Remove unused EnvMap import from layout-client
- Import HardcodedConfig from web-shared/server instead of re-defining

* Fix: PostgreSQL URL parameter missing from configParsers, causing loss of postgres URL configuration on page reload in dynamic mode

* fix(cli): clear WORKFLOW_TARGET_WORLD when spawning web server

The CLI sets WORKFLOW_TARGET_WORLD as an env var, which the spawned
Next.js server inherits. This caused the web UI to enter self-hosted
mode even when launched via CLI.

Now we explicitly clear WORKFLOW_TARGET_WORLD from the server's
environment so it starts in dynamic mode where config comes from
query params as intended.

* refactor(web): use server-side env vars for world config

BREAKING CHANGE: The web UI no longer supports configuring the world
backend via URL query parameters. Configuration is now read exclusively
from server-side environment variables.

Changes:
- Remove query param parsing from @workflow/web config.ts
- Add ServerConfig interface with non-sensitive display info
- Update all components to use useServerConfig() hook
- Settings sidebar is now read-only
- CLI passes env vars to spawned web server instead of query params
- Server actions use process.env directly (envMap param reserved for future use)

This simplifies the architecture and improves security by never sending
sensitive data (connection strings, auth tokens) to the client.

* fix(web): fix settings sidebar overflow and shorten data dir path

- Add truncate/overflow handling to settings sidebar config values
- Add shortenPath() helper to abbreviate long file paths:
  - Replaces home directory with ~
  - Shows .../last-two-segments if still too long
- Add title attributes for full path on hover

* Update changeest

---------

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>

* Version Packages (beta) (#755)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update packages/world/src/queue.ts

Co-authored-by: Pranay Prakash <[email protected]>

* [web] Tidy wake-up and re-enqueue buttons (#737)


---------

Signed-off-by: Peter Wielander <[email protected]>

* [cli] Use dotenv to resolve .env and .env.local files on startup (#765)

* Use temporary workflow-server deployment URL

* feat: add queue-based health check to bypass Deployment Protection

- Add HealthCheckPayloadSchema and HEALTH_CHECK_STREAM_PREFIX to @workflow/world
- Add healthCheck() method to Queue interface
- Update workflow and step handlers to detect and respond to health check messages
- Implement healthCheck() in world-local, world-vercel, and world-postgres

The queue-based health check sends a message through the queue pipeline,
which bypasses Vercel's Deployment Protection. The handler writes a response
to a stream that the caller reads to confirm health.

This complements the existing HTTP-based ?__health approach which still works
for local development and when bypass headers are available.

* refactor: move healthCheck to core package as utility function

Instead of adding healthCheck to the World interface (which duplicated
the same implementation across all worlds), this is now a utility function
in @workflow/core that takes the World as a parameter.

Usage:
  import { healthCheck } from '@workflow/core';
  const result = await healthCheck(world, 'workflow');

This is cleaner because:
- Single implementation instead of 3 identical ones
- World implementations remain simple
- No changes needed to the World interface

* .

* refactor: move health check types from world to core

Health check types (HealthCheckPayloadSchema, HealthCheckResult, etc.)
are now defined in @workflow/core since that's where they're used.

The HealthCheckPayloadSchema is still part of QueuePayloadSchema in
world (so the queue accepts health check messages), but it's not
exported from the public API.

* .

* Refactor health check implementation based on code review feedback (#746)

* Initial plan

* Address PR review comments: export types, fix race condition, improve error handling

Co-authored-by: TooTallNate <[email protected]>

* Add queue-based health check test and document security considerations

Co-authored-by: TooTallNate <[email protected]>

* Replace 'any' type with proper type guards for health check response

Co-authored-by: TooTallNate <[email protected]>

* Extract health check queue names as constants and improve type guards

Co-authored-by: TooTallNate <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: TooTallNate <[email protected]>

* .

* Fix e2e test

* .

* .

* .

* .

* .

* Update packages/world/src/queue.ts

Co-authored-by: Pranay Prakash <[email protected]>

* Use temporary workflow-server deployment URL

* .

* .

---------

Signed-off-by: Peter Wielander <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: TooTallNate <[email protected]>
Co-authored-by: Pranay Prakash <[email protected]>
Co-authored-by: Peter Wielander <[email protected]>
Co-authored-by: Vercel Release Bot <[email protected]>
Co-authored-by: JJ Kasper <[email protected]>
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix: add TypeScript decorator support to SWC transform

  Enable decorator parsing in SWC configuration to support codebases using
  TypeScript decorators (TypeORM, NestJS, class-validator, custom decorators).

  Without this fix, projects importing files with decorators fail with:
  "Unexpected token `@`. Expected identifier..." syntax errors.

  Changes:
  - Add `decorators: true` to parser options for TypeScript and ECMAScript
  - Add `legacyDecorator: true` for TypeScript's experimentalDecorators
  - Add `decoratorMetadata: true` for emitDecoratorMetadata support

* fix: conditionally enable decorators based on tsconfig compilerOptions

  Read experimentalDecorators and emitDecoratorMetadata from tsconfig.json
  to match Next.js behavior. Decorators are now only enabled when explicitly
  configured in the project's tsconfig.

  - Add getDecoratorOptionsForDirectory() to read tsconfig settings
  - Update applySwcTransform and Next.js loader to use tsconfig options
  - Handle JSONC format (comments, trailing commas) in tsconfig parsing

* fix: use json5 for parsing tsconfig in decorator options

  Replace manual regex-based JSONC parsing with json5 library for more
  robust handling of comments and trailing commas in tsconfig.json files.

* bump

* apply fix

* DCO Remediation Commit for JJ Kasper <[email protected]>

I, JJ Kasper <[email protected]>, hereby add my Signed-off-by to this commit: aa1dc36
I, JJ Kasper <[email protected]>, hereby add my Signed-off-by to this commit: e25f174

Signed-off-by: JJ Kasper <[email protected]>

* DCO Remediation Commit for Rishabh <[email protected]>

I, Rishabh <[email protected]>, hereby add my Signed-off-by to this commit: e2f9304
I, Rishabh <[email protected]>, hereby add my Signed-off-by to this commit: 3faee5d
I, Rishabh <[email protected]>, hereby add my Signed-off-by to this commit: 9dbbda6

Signed-off-by: Rishabh <[email protected]>

---------

Signed-off-by: JJ Kasper <[email protected]>
Signed-off-by: Rishabh <[email protected]>
Co-authored-by: JJ Kasper <[email protected]>
* fix(core): always write step to queue even if step already exists

This fixes a race condition where:
1. Step is written to workflow database
2. Process crashes/times out before queue write completes
3. Upstream retry occurs
4. Step already exists (409), so queue write was skipped
5. Step sits pending forever with 0 attempts

The queue write already uses an idempotency key (correlation ID),
so duplicate writes are safely deduplicated by the queue service.

* chore: add changeset for step queue idempotency fix

* chore(core): remove dead ops array code from processStep

The ops array was leftover from a previous refactor that used to collect
promises for parallel execution. Nothing was ever pushed to it, making
the waitUntil(Promise.all(ops)) a no-op.

* DCO Remediation Commit for Cursor Agent <[email protected]>

I, Cursor Agent <[email protected]>, hereby add my Signed-off-by to this commit: 6e510f7
I, Cursor Agent <[email protected]>, hereby add my Signed-off-by to this commit: 5394d49
I, Cursor Agent <[email protected]>, hereby add my Signed-off-by to this commit: 23424ff

Signed-off-by: Cursor Agent <[email protected]>

---------

Signed-off-by: Cursor Agent <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The SWC compiler plugin had logic to walk through class static methods
with "use step" / "use workflow", but no actual transformation was being
applied. This fixes that.
Signed-off-by: Peter Wielander <[email protected]>
Signed-off-by: Peter Wielander <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants