[ai] Fix collectUiMessages option by accumulating chunks in a separate step call - #784

Merged
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages
Jan 16, 2026
Merged

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call#784
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 15, 2026

Copy link
Copy Markdown
Member

This is a refactor of #768 which moves the accumulation logic to a step. The test harness I was using to test #768 didn't correctly account for the workflow transformation, so collectUiMessages didn't actually work as intended before (also reported in issue #739).

This PR moves the final accumulation call to a "use step" at the end of the agent.stream call. The actual logic still uses AI SDK's readUIMessageStream internally, just like before.

I alternatively considered pre-creating a stream in a setup step, then double piping to that stream, before passing it to the final step that can call readUIMessageStream on it. In a non-workflow world, this would result in a performance improvement (native stream use), but since we are awaiting step boundaries anyway, it would not help in this case, and it would make the content less observable.

I tested this in flight-booking-app. See the final step it makes here that gets the chunks and returns the uiMessages:
image

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6d2df7d

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

This PR includes changesets to release 2 packages
NameType
@workflow/aiPatch
@workflow/docs-typecheckPatch

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

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

@vercel

vercelBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-astro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-express-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-fastify-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-hono-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nitro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-vite-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workflow-docsReadyReadyPreview, CommentJan 16, 2026 10:24am

@github-actions

github-actionsBot commented Jan 15, 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
🌐 Starter🥇 Next.js (Turbopack)0.037s (-5.7% 🟢)1.016s (~)0.980s101.00x
💻 LocalNext.js (Turbopack)0.039s (-3.4%)1.017s (~)0.978s101.07x
🌐 RedisNext.js (Turbopack)0.044s (+3.8%)1.018s (~)0.975s101.19x
💻 LocalExpress0.044s (-0.9%)1.008s (~)0.963s101.21x
💻 LocalNitro0.046s (+4.5%)1.006s (~)0.960s101.26x
🌐 TursoNext.js (Turbopack)0.116s (+8.8% 🔺)1.015s (~)0.899s103.17x
🌐 MongoDBNext.js (Turbopack)0.124s (+117.9% 🔺)1.014s (~)0.890s103.40x
🐘 PostgresNext.js (Turbopack)0.198s (-45.6% 🟢)1.022s (~)0.824s105.42x
🐘 PostgresNitro0.293s (+8.0% 🔺)1.018s (+0.5%)0.725s108.00x
🐘 PostgresExpress0.310s (-2.2%)1.013s (~)0.703s108.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.592s (+3.5%)1.549s (+7.0% 🔺)0.957s101.00x
▲ VercelNitro0.611s (+12.0% 🔺)1.515s (-3.3%)0.904s101.03x
▲ VercelNext.js (Turbopack)0.651s (-5.5% 🟢)1.605s (-1.0%)0.954s101.10x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.3%)2.011s (~)0.935s101.00x
💻 LocalNext.js (Turbopack)1.099s (~)2.011s (~)0.912s101.02x
🌐 RedisNext.js (Turbopack)1.108s (~)2.012s (~)0.904s101.03x
💻 LocalNitro1.114s (~)2.007s (~)0.892s101.04x
💻 LocalExpress1.115s (~)2.007s (~)0.892s101.04x
🌐 TursoNext.js (Turbopack)1.303s (~)2.013s (~)0.710s101.21x
🌐 MongoDBNext.js (Turbopack)1.305s (+0.6%)2.013s (~)0.708s101.21x
🐘 PostgresNext.js (Turbopack)1.963s (+12.5% 🔺)2.423s (+19.9% 🔺)0.460s101.82x
🐘 PostgresNitro2.152s (+1.9%)3.016s (~)0.864s102.00x
🐘 PostgresExpress2.159s (+1.3%)3.014s (~)0.855s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.790s (-4.4%)3.689s (-0.5%)0.899s101.00x
▲ VercelExpress2.857s (-0.9%)3.664s (+2.4%)0.806s101.02x
▲ VercelNitro2.951s (-12.7% 🟢)3.652s (-12.9% 🟢)0.701s101.06x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.504s (-0.8%)11.012s (~)0.509s51.00x
💻 LocalNext.js (Turbopack)10.656s (~)11.019s (~)0.363s51.01x
🌐 RedisNext.js (Turbopack)10.694s (~)11.016s (~)0.322s51.02x
💻 LocalExpress10.799s (~)11.014s (~)0.214s51.03x
💻 LocalNitro10.805s (~)11.011s (~)0.206s51.03x
🌐 TursoNext.js (Turbopack)12.201s (~)13.024s (~)0.823s51.16x
🌐 MongoDBNext.js (Turbopack)12.268s (~)13.025s (~)0.757s51.17x
🐘 PostgresNext.js (Turbopack)15.245s (~)16.041s (+1.2%)0.796s51.45x
🐘 PostgresExpress17.720s (-13.4% 🟢)18.233s (-13.3% 🟢)0.512s51.69x
🐘 PostgresNitro20.466s (~)21.034s (~)0.569s51.95x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro23.479s (+4.1%)24.205s (+2.3%)0.726s51.00x
▲ VercelExpress23.561s (+3.8%)24.139s (+2.4%)0.579s51.00x
▲ VercelNext.js (Turbopack)24.209s (+1.0%)24.874s (~)0.665s51.03x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.345s (~)2.009s (~)0.664s151.00x
🌐 RedisNext.js (Turbopack)1.378s (+1.4%)2.011s (~)0.633s151.02x
💻 LocalNext.js (Turbopack)1.388s (~)2.013s (~)0.624s151.03x
💻 LocalExpress1.410s (+0.6%)2.007s (~)0.597s151.05x
💻 LocalNitro1.419s (+0.7%)2.006s (~)0.587s151.05x
🐘 PostgresExpress1.885s (-19.6% 🟢)2.226s (-26.1% 🟢)0.340s141.40x
🐘 PostgresNext.js (Turbopack)1.970s (+0.8%)2.238s (-3.9%)0.268s141.46x
🌐 MongoDBNext.js (Turbopack)2.131s (-1.3%)3.014s (~)0.884s101.58x
🌐 TursoNext.js (Turbopack)2.197s (~)3.017s (~)0.819s101.63x
🐘 PostgresNitro2.364s (~)3.012s (~)0.648s101.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.962s (-6.8% 🟢)3.639s (-8.3% 🟢)0.677s91.00x
▲ VercelNext.js (Turbopack)2.997s (-12.5% 🟢)3.759s (-12.4% 🟢)0.762s81.01x
▲ VercelNitro3.067s (+4.2%)3.853s (+4.0%)0.786s81.04x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.087s (-5.6% 🟢)2.956s (-6.6% 🟢)0.868s111.00x
💻 LocalNitro2.236s (+0.7%)3.155s (~)0.919s101.07x
💻 LocalExpress2.254s (+1.1%)3.198s (+0.7%)0.944s101.08x
🌐 StarterNext.js (Turbopack)2.401s (-2.1%)3.012s (~)0.611s101.15x
🌐 RedisNext.js (Turbopack)2.512s (+0.7%)3.012s (~)0.501s101.20x
🐘 PostgresExpress2.586s (-16.8% 🟢)3.020s (-22.8% 🟢)0.434s101.24x
🐘 PostgresNext.js (Turbopack)2.616s (-1.6%)3.034s (~)0.418s101.25x
🐘 PostgresNitro3.281s (+9.7% 🔺)4.042s (+16.5% 🔺)0.761s81.57x
🌐 MongoDBNext.js (Turbopack)4.688s (-1.0%)5.181s (~)0.493s62.25x
🌐 TursoNext.js (Turbopack)4.774s (+2.5%)5.181s (~)0.407s62.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.210s (+14.9% 🔺)4.836s (+15.9% 🔺)0.625s81.00x
▲ VercelExpress4.416s (+26.1% 🔺)5.221s (+24.4% 🔺)0.805s71.05x
▲ VercelNext.js (Turbopack)4.706s (+38.3% 🔺)5.719s (+41.2% 🔺)1.014s61.12x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.353s (+1.5%)2.009s (~)0.656s151.00x
🌐 RedisNext.js (Turbopack)1.391s (-0.5%)2.010s (~)0.620s151.03x
💻 LocalNext.js (Turbopack)1.394s (-1.2%)2.014s (~)0.619s151.03x
💻 LocalNitro1.425s (~)2.005s (~)0.580s151.05x
💻 LocalExpress1.438s (~)2.006s (~)0.568s151.06x
🐘 PostgresNext.js (Turbopack)1.694s (~)2.013s (~)0.320s151.25x
🐘 PostgresExpress1.739s (-24.5% 🟢)2.011s (-22.5% 🟢)0.272s151.28x
🌐 MongoDBNext.js (Turbopack)2.154s (+1.3%)3.021s (~)0.867s101.59x
🌐 TursoNext.js (Turbopack)2.183s (-2.4%)3.013s (~)0.830s101.61x
🐘 PostgresNitro2.299s (+18.2% 🔺)3.011s (+45.0% 🔺)0.713s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.985s (-3.5%)3.807s (~)0.821s81.00x
▲ VercelExpress3.116s (+1.6%)3.817s (+1.0%)0.701s81.04x
▲ VercelNitro3.357s (+12.1% 🔺)4.006s (+8.0% 🔺)0.649s81.12x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.121s (-2.3%)2.941s (-1.4%)0.820s111.00x
💻 LocalNitro2.309s (-3.7%)3.246s (~)0.937s101.09x
💻 LocalExpress2.311s (+1.2%)3.256s (+1.3%)0.945s101.09x
🌐 StarterNext.js (Turbopack)2.415s (-1.0%)3.013s (~)0.598s101.14x
🌐 RedisNext.js (Turbopack)2.511s (+1.0%)3.013s (~)0.502s101.18x
🐘 PostgresNext.js (Turbopack)2.559s (-1.2%)3.026s (~)0.467s101.21x
🐘 PostgresExpress2.620s (-9.8% 🟢)3.012s (~)0.392s101.23x
🐘 PostgresNitro2.990s (+13.7% 🔺)3.681s (+22.3% 🔺)0.691s91.41x
🌐 MongoDBNext.js (Turbopack)4.700s (-1.1%)5.180s (~)0.480s62.22x
🌐 TursoNext.js (Turbopack)4.769s (+2.1%)5.181s (~)0.411s62.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.392s (~)3.981s (+2.4%)0.589s81.00x
▲ VercelExpress3.506s (-2.6%)4.225s (-1.1%)0.719s81.03x
▲ VercelNext.js (Turbopack)3.913s (+17.6% 🔺)4.813s (+22.7% 🔺)0.899s71.15x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.112s (-11.3% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.013s (~)0.901s101.00x
💻 LocalNext.js (Turbopack)0.139s (-2.3%)1.003s (~)0.016s (-3.0%)1.027s (~)0.888s101.25x
🌐 RedisNext.js (Turbopack)0.154s (+3.8%)1.005s (~)0.000s (-100.0% 🟢)1.015s (~)0.861s101.38x
💻 LocalExpress0.175s (+1.3%)0.991s (~)0.017s (+2.4%)1.023s (~)0.848s101.57x
💻 LocalNitro0.177s (~)0.992s (~)0.014s (-17.8% 🟢)1.020s (~)0.843s101.59x
🌐 TursoNext.js (Turbopack)0.467s (-13.7% 🟢)0.989s (+8.9% 🔺)0.000s (+Infinity% 🔺)1.014s (~)0.548s104.18x
🌐 MongoDBNext.js (Turbopack)0.490s (-5.8% 🟢)0.962s (+3.4%)0.000s (+Infinity% 🔺)1.014s (~)0.523s104.40x
🐘 PostgresNext.js (Turbopack)1.145s (-10.8% 🟢)1.905s (+8.0% 🔺)0.000s (+Infinity% 🔺)2.019s (~)0.875s1010.26x
🐘 PostgresExpress1.151s (-49.0% 🟢)1.312s (-53.0% 🟢)0.000s (NaN%)1.612s (-46.6% 🟢)0.462s1010.31x
🐘 PostgresNitro2.275s (-0.8%)2.768s (+0.6%)0.000s (-100.0% 🟢)3.014s (~)0.739s1020.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.904s (-8.1% 🟢)3.220s (-2.9%)0.413s (-57.6% 🟢)4.110s (-13.9% 🟢)1.205s101.00x
▲ VercelExpress3.012s (~)3.172s (-5.3% 🟢)0.609s (-44.5% 🟢)4.345s (-12.3% 🟢)1.333s101.04x
▲ VercelNext.js (Turbopack)3.170s (+4.3%)3.528s (+7.4% 🔺)0.412s (-47.1% 🟢)4.549s (+0.9%)1.379s101.09x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelNitro4/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/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

@github-actions

github-actionsBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production424038462
✅ 💻 Local Development388032420
✅ 📦 Local Production388032420
✅ 🐘 Local Postgres388032420
✅ 🪟 Windows420042
❌ 🌍 Community Worlds159210180
Total1789211341944

❌ 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
AppPassedFailedSkipped
✅ astro3804
✅ example3804
✅ express3804
✅ fastify3804
✅ hono3804
✅ nextjs-turbopack4101
✅ nextjs-webpack4101
✅ nitro3804
✅ nuxt3804
✅ sveltekit3804
✅ vite3804
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4200
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4110
✅ redis-dev300
❌ redis4110
✅ starter-dev300
❌ starter24180
✅ turso-dev300
❌ turso4110

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's[ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStreamJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStream[ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step callJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step call[ai] Fix collectUiMessages option by accumulating chunks in a separate step callJan 15, 2026
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/ai/src/agent/stream-text-iterator.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
When a step function is invoked, only capture `this` if it has a
`classId` property (indicating it's a class constructor registered
for serialization by the SWC plugin).
This prevents serialization errors when step functions are called as
methods on arbitrary objects (e.g., `tool.execute()`) where the object
has non-serializable properties like Zod schemas.
@VaguelySerious
VaguelySerious changed the base branch from main to peter/fix-step-serializationJanuary 15, 2026 14:04
I, Peter Wielander <mittgfu@gmail.com>, hereby add my Signed-off-by to this commit: 0e8fe8c
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@VaguelySerious
VaguelySerious changed the base branch from peter/fix-step-serialization to mainJanuary 15, 2026 21:33
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
type: 'start',
// Note that if useChat is used client-side, useChat will generate a different
// messageId. It's hard to work around this.
messageId: generateId(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Client-side would do sendStart: false in that case, no?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

the user can decide to do that, but would then have to handle the start themselves, which I think is fine. The ID seems unlikely to cause issues unless message persistence is mixed between client and server side

}) {
const shownCount = issues.length;
const title = `Top ${shownCount} issues (last ${digestIntervalDays}d) in ${repoFullName}`;
const title = `Top issues of last ${digestIntervalDays}d in ${repoFullName}`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unrelated to this PR?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

yes, wasn't worth its own, but can split if you want

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm. surprised that vade didn't leave any comments 🤔

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.

3 participants

@VaguelySerious@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n 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;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call - #784

Merged
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages
Jan 16, 2026
Merged

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call#784
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 15, 2026

Copy link
Copy Markdown
Member

This is a refactor of #768 which moves the accumulation logic to a step. The test harness I was using to test #768 didn't correctly account for the workflow transformation, so collectUiMessages didn't actually work as intended before (also reported in issue #739).

This PR moves the final accumulation call to a "use step" at the end of the agent.stream call. The actual logic still uses AI SDK's readUIMessageStream internally, just like before.

I alternatively considered pre-creating a stream in a setup step, then double piping to that stream, before passing it to the final step that can call readUIMessageStream on it. In a non-workflow world, this would result in a performance improvement (native stream use), but since we are awaiting step boundaries anyway, it would not help in this case, and it would make the content less observable.

I tested this in flight-booking-app. See the final step it makes here that gets the chunks and returns the uiMessages:
image

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6d2df7d

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

This PR includes changesets to release 2 packages
NameType
@workflow/aiPatch
@workflow/docs-typecheckPatch

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

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

@vercel

vercelBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-astro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-express-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-fastify-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-hono-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nitro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-vite-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workflow-docsReadyReadyPreview, CommentJan 16, 2026 10:24am

@github-actions

github-actionsBot commented Jan 15, 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
🌐 Starter🥇 Next.js (Turbopack)0.037s (-5.7% 🟢)1.016s (~)0.980s101.00x
💻 LocalNext.js (Turbopack)0.039s (-3.4%)1.017s (~)0.978s101.07x
🌐 RedisNext.js (Turbopack)0.044s (+3.8%)1.018s (~)0.975s101.19x
💻 LocalExpress0.044s (-0.9%)1.008s (~)0.963s101.21x
💻 LocalNitro0.046s (+4.5%)1.006s (~)0.960s101.26x
🌐 TursoNext.js (Turbopack)0.116s (+8.8% 🔺)1.015s (~)0.899s103.17x
🌐 MongoDBNext.js (Turbopack)0.124s (+117.9% 🔺)1.014s (~)0.890s103.40x
🐘 PostgresNext.js (Turbopack)0.198s (-45.6% 🟢)1.022s (~)0.824s105.42x
🐘 PostgresNitro0.293s (+8.0% 🔺)1.018s (+0.5%)0.725s108.00x
🐘 PostgresExpress0.310s (-2.2%)1.013s (~)0.703s108.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.592s (+3.5%)1.549s (+7.0% 🔺)0.957s101.00x
▲ VercelNitro0.611s (+12.0% 🔺)1.515s (-3.3%)0.904s101.03x
▲ VercelNext.js (Turbopack)0.651s (-5.5% 🟢)1.605s (-1.0%)0.954s101.10x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.3%)2.011s (~)0.935s101.00x
💻 LocalNext.js (Turbopack)1.099s (~)2.011s (~)0.912s101.02x
🌐 RedisNext.js (Turbopack)1.108s (~)2.012s (~)0.904s101.03x
💻 LocalNitro1.114s (~)2.007s (~)0.892s101.04x
💻 LocalExpress1.115s (~)2.007s (~)0.892s101.04x
🌐 TursoNext.js (Turbopack)1.303s (~)2.013s (~)0.710s101.21x
🌐 MongoDBNext.js (Turbopack)1.305s (+0.6%)2.013s (~)0.708s101.21x
🐘 PostgresNext.js (Turbopack)1.963s (+12.5% 🔺)2.423s (+19.9% 🔺)0.460s101.82x
🐘 PostgresNitro2.152s (+1.9%)3.016s (~)0.864s102.00x
🐘 PostgresExpress2.159s (+1.3%)3.014s (~)0.855s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.790s (-4.4%)3.689s (-0.5%)0.899s101.00x
▲ VercelExpress2.857s (-0.9%)3.664s (+2.4%)0.806s101.02x
▲ VercelNitro2.951s (-12.7% 🟢)3.652s (-12.9% 🟢)0.701s101.06x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.504s (-0.8%)11.012s (~)0.509s51.00x
💻 LocalNext.js (Turbopack)10.656s (~)11.019s (~)0.363s51.01x
🌐 RedisNext.js (Turbopack)10.694s (~)11.016s (~)0.322s51.02x
💻 LocalExpress10.799s (~)11.014s (~)0.214s51.03x
💻 LocalNitro10.805s (~)11.011s (~)0.206s51.03x
🌐 TursoNext.js (Turbopack)12.201s (~)13.024s (~)0.823s51.16x
🌐 MongoDBNext.js (Turbopack)12.268s (~)13.025s (~)0.757s51.17x
🐘 PostgresNext.js (Turbopack)15.245s (~)16.041s (+1.2%)0.796s51.45x
🐘 PostgresExpress17.720s (-13.4% 🟢)18.233s (-13.3% 🟢)0.512s51.69x
🐘 PostgresNitro20.466s (~)21.034s (~)0.569s51.95x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro23.479s (+4.1%)24.205s (+2.3%)0.726s51.00x
▲ VercelExpress23.561s (+3.8%)24.139s (+2.4%)0.579s51.00x
▲ VercelNext.js (Turbopack)24.209s (+1.0%)24.874s (~)0.665s51.03x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.345s (~)2.009s (~)0.664s151.00x
🌐 RedisNext.js (Turbopack)1.378s (+1.4%)2.011s (~)0.633s151.02x
💻 LocalNext.js (Turbopack)1.388s (~)2.013s (~)0.624s151.03x
💻 LocalExpress1.410s (+0.6%)2.007s (~)0.597s151.05x
💻 LocalNitro1.419s (+0.7%)2.006s (~)0.587s151.05x
🐘 PostgresExpress1.885s (-19.6% 🟢)2.226s (-26.1% 🟢)0.340s141.40x
🐘 PostgresNext.js (Turbopack)1.970s (+0.8%)2.238s (-3.9%)0.268s141.46x
🌐 MongoDBNext.js (Turbopack)2.131s (-1.3%)3.014s (~)0.884s101.58x
🌐 TursoNext.js (Turbopack)2.197s (~)3.017s (~)0.819s101.63x
🐘 PostgresNitro2.364s (~)3.012s (~)0.648s101.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.962s (-6.8% 🟢)3.639s (-8.3% 🟢)0.677s91.00x
▲ VercelNext.js (Turbopack)2.997s (-12.5% 🟢)3.759s (-12.4% 🟢)0.762s81.01x
▲ VercelNitro3.067s (+4.2%)3.853s (+4.0%)0.786s81.04x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.087s (-5.6% 🟢)2.956s (-6.6% 🟢)0.868s111.00x
💻 LocalNitro2.236s (+0.7%)3.155s (~)0.919s101.07x
💻 LocalExpress2.254s (+1.1%)3.198s (+0.7%)0.944s101.08x
🌐 StarterNext.js (Turbopack)2.401s (-2.1%)3.012s (~)0.611s101.15x
🌐 RedisNext.js (Turbopack)2.512s (+0.7%)3.012s (~)0.501s101.20x
🐘 PostgresExpress2.586s (-16.8% 🟢)3.020s (-22.8% 🟢)0.434s101.24x
🐘 PostgresNext.js (Turbopack)2.616s (-1.6%)3.034s (~)0.418s101.25x
🐘 PostgresNitro3.281s (+9.7% 🔺)4.042s (+16.5% 🔺)0.761s81.57x
🌐 MongoDBNext.js (Turbopack)4.688s (-1.0%)5.181s (~)0.493s62.25x
🌐 TursoNext.js (Turbopack)4.774s (+2.5%)5.181s (~)0.407s62.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.210s (+14.9% 🔺)4.836s (+15.9% 🔺)0.625s81.00x
▲ VercelExpress4.416s (+26.1% 🔺)5.221s (+24.4% 🔺)0.805s71.05x
▲ VercelNext.js (Turbopack)4.706s (+38.3% 🔺)5.719s (+41.2% 🔺)1.014s61.12x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.353s (+1.5%)2.009s (~)0.656s151.00x
🌐 RedisNext.js (Turbopack)1.391s (-0.5%)2.010s (~)0.620s151.03x
💻 LocalNext.js (Turbopack)1.394s (-1.2%)2.014s (~)0.619s151.03x
💻 LocalNitro1.425s (~)2.005s (~)0.580s151.05x
💻 LocalExpress1.438s (~)2.006s (~)0.568s151.06x
🐘 PostgresNext.js (Turbopack)1.694s (~)2.013s (~)0.320s151.25x
🐘 PostgresExpress1.739s (-24.5% 🟢)2.011s (-22.5% 🟢)0.272s151.28x
🌐 MongoDBNext.js (Turbopack)2.154s (+1.3%)3.021s (~)0.867s101.59x
🌐 TursoNext.js (Turbopack)2.183s (-2.4%)3.013s (~)0.830s101.61x
🐘 PostgresNitro2.299s (+18.2% 🔺)3.011s (+45.0% 🔺)0.713s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.985s (-3.5%)3.807s (~)0.821s81.00x
▲ VercelExpress3.116s (+1.6%)3.817s (+1.0%)0.701s81.04x
▲ VercelNitro3.357s (+12.1% 🔺)4.006s (+8.0% 🔺)0.649s81.12x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.121s (-2.3%)2.941s (-1.4%)0.820s111.00x
💻 LocalNitro2.309s (-3.7%)3.246s (~)0.937s101.09x
💻 LocalExpress2.311s (+1.2%)3.256s (+1.3%)0.945s101.09x
🌐 StarterNext.js (Turbopack)2.415s (-1.0%)3.013s (~)0.598s101.14x
🌐 RedisNext.js (Turbopack)2.511s (+1.0%)3.013s (~)0.502s101.18x
🐘 PostgresNext.js (Turbopack)2.559s (-1.2%)3.026s (~)0.467s101.21x
🐘 PostgresExpress2.620s (-9.8% 🟢)3.012s (~)0.392s101.23x
🐘 PostgresNitro2.990s (+13.7% 🔺)3.681s (+22.3% 🔺)0.691s91.41x
🌐 MongoDBNext.js (Turbopack)4.700s (-1.1%)5.180s (~)0.480s62.22x
🌐 TursoNext.js (Turbopack)4.769s (+2.1%)5.181s (~)0.411s62.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.392s (~)3.981s (+2.4%)0.589s81.00x
▲ VercelExpress3.506s (-2.6%)4.225s (-1.1%)0.719s81.03x
▲ VercelNext.js (Turbopack)3.913s (+17.6% 🔺)4.813s (+22.7% 🔺)0.899s71.15x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.112s (-11.3% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.013s (~)0.901s101.00x
💻 LocalNext.js (Turbopack)0.139s (-2.3%)1.003s (~)0.016s (-3.0%)1.027s (~)0.888s101.25x
🌐 RedisNext.js (Turbopack)0.154s (+3.8%)1.005s (~)0.000s (-100.0% 🟢)1.015s (~)0.861s101.38x
💻 LocalExpress0.175s (+1.3%)0.991s (~)0.017s (+2.4%)1.023s (~)0.848s101.57x
💻 LocalNitro0.177s (~)0.992s (~)0.014s (-17.8% 🟢)1.020s (~)0.843s101.59x
🌐 TursoNext.js (Turbopack)0.467s (-13.7% 🟢)0.989s (+8.9% 🔺)0.000s (+Infinity% 🔺)1.014s (~)0.548s104.18x
🌐 MongoDBNext.js (Turbopack)0.490s (-5.8% 🟢)0.962s (+3.4%)0.000s (+Infinity% 🔺)1.014s (~)0.523s104.40x
🐘 PostgresNext.js (Turbopack)1.145s (-10.8% 🟢)1.905s (+8.0% 🔺)0.000s (+Infinity% 🔺)2.019s (~)0.875s1010.26x
🐘 PostgresExpress1.151s (-49.0% 🟢)1.312s (-53.0% 🟢)0.000s (NaN%)1.612s (-46.6% 🟢)0.462s1010.31x
🐘 PostgresNitro2.275s (-0.8%)2.768s (+0.6%)0.000s (-100.0% 🟢)3.014s (~)0.739s1020.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.904s (-8.1% 🟢)3.220s (-2.9%)0.413s (-57.6% 🟢)4.110s (-13.9% 🟢)1.205s101.00x
▲ VercelExpress3.012s (~)3.172s (-5.3% 🟢)0.609s (-44.5% 🟢)4.345s (-12.3% 🟢)1.333s101.04x
▲ VercelNext.js (Turbopack)3.170s (+4.3%)3.528s (+7.4% 🔺)0.412s (-47.1% 🟢)4.549s (+0.9%)1.379s101.09x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelNitro4/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/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

@github-actions

github-actionsBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production424038462
✅ 💻 Local Development388032420
✅ 📦 Local Production388032420
✅ 🐘 Local Postgres388032420
✅ 🪟 Windows420042
❌ 🌍 Community Worlds159210180
Total1789211341944

❌ 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
AppPassedFailedSkipped
✅ astro3804
✅ example3804
✅ express3804
✅ fastify3804
✅ hono3804
✅ nextjs-turbopack4101
✅ nextjs-webpack4101
✅ nitro3804
✅ nuxt3804
✅ sveltekit3804
✅ vite3804
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4200
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4110
✅ redis-dev300
❌ redis4110
✅ starter-dev300
❌ starter24180
✅ turso-dev300
❌ turso4110

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's[ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStreamJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStream[ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step callJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step call[ai] Fix collectUiMessages option by accumulating chunks in a separate step callJan 15, 2026
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/ai/src/agent/stream-text-iterator.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
When a step function is invoked, only capture `this` if it has a
`classId` property (indicating it's a class constructor registered
for serialization by the SWC plugin).
This prevents serialization errors when step functions are called as
methods on arbitrary objects (e.g., `tool.execute()`) where the object
has non-serializable properties like Zod schemas.
@VaguelySerious
VaguelySerious changed the base branch from main to peter/fix-step-serializationJanuary 15, 2026 14:04
I, Peter Wielander <mittgfu@gmail.com>, hereby add my Signed-off-by to this commit: 0e8fe8c
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@VaguelySerious
VaguelySerious changed the base branch from peter/fix-step-serialization to mainJanuary 15, 2026 21:33
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
type: 'start',
// Note that if useChat is used client-side, useChat will generate a different
// messageId. It's hard to work around this.
messageId: generateId(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Client-side would do sendStart: false in that case, no?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

the user can decide to do that, but would then have to handle the start themselves, which I think is fine. The ID seems unlikely to cause issues unless message persistence is mixed between client and server side

}) {
const shownCount = issues.length;
const title = `Top ${shownCount} issues (last ${digestIntervalDays}d) in ${repoFullName}`;
const title = `Top issues of last ${digestIntervalDays}d in ${repoFullName}`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unrelated to this PR?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

yes, wasn't worth its own, but can split if you want

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm. surprised that vade didn't leave any comments 🤔

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.

3 participants

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

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call - #784

Merged
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages
Jan 16, 2026
Merged

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call#784
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 15, 2026

Copy link
Copy Markdown
Member

This is a refactor of #768 which moves the accumulation logic to a step. The test harness I was using to test #768 didn't correctly account for the workflow transformation, so collectUiMessages didn't actually work as intended before (also reported in issue #739).

This PR moves the final accumulation call to a "use step" at the end of the agent.stream call. The actual logic still uses AI SDK's readUIMessageStream internally, just like before.

I alternatively considered pre-creating a stream in a setup step, then double piping to that stream, before passing it to the final step that can call readUIMessageStream on it. In a non-workflow world, this would result in a performance improvement (native stream use), but since we are awaiting step boundaries anyway, it would not help in this case, and it would make the content less observable.

I tested this in flight-booking-app. See the final step it makes here that gets the chunks and returns the uiMessages:
image

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6d2df7d

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

This PR includes changesets to release 2 packages
NameType
@workflow/aiPatch
@workflow/docs-typecheckPatch

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

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

@vercel

vercelBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-astro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-express-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-fastify-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-hono-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nitro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-vite-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workflow-docsReadyReadyPreview, CommentJan 16, 2026 10:24am

@github-actions

github-actionsBot commented Jan 15, 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
🌐 Starter🥇 Next.js (Turbopack)0.037s (-5.7% 🟢)1.016s (~)0.980s101.00x
💻 LocalNext.js (Turbopack)0.039s (-3.4%)1.017s (~)0.978s101.07x
🌐 RedisNext.js (Turbopack)0.044s (+3.8%)1.018s (~)0.975s101.19x
💻 LocalExpress0.044s (-0.9%)1.008s (~)0.963s101.21x
💻 LocalNitro0.046s (+4.5%)1.006s (~)0.960s101.26x
🌐 TursoNext.js (Turbopack)0.116s (+8.8% 🔺)1.015s (~)0.899s103.17x
🌐 MongoDBNext.js (Turbopack)0.124s (+117.9% 🔺)1.014s (~)0.890s103.40x
🐘 PostgresNext.js (Turbopack)0.198s (-45.6% 🟢)1.022s (~)0.824s105.42x
🐘 PostgresNitro0.293s (+8.0% 🔺)1.018s (+0.5%)0.725s108.00x
🐘 PostgresExpress0.310s (-2.2%)1.013s (~)0.703s108.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.592s (+3.5%)1.549s (+7.0% 🔺)0.957s101.00x
▲ VercelNitro0.611s (+12.0% 🔺)1.515s (-3.3%)0.904s101.03x
▲ VercelNext.js (Turbopack)0.651s (-5.5% 🟢)1.605s (-1.0%)0.954s101.10x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.3%)2.011s (~)0.935s101.00x
💻 LocalNext.js (Turbopack)1.099s (~)2.011s (~)0.912s101.02x
🌐 RedisNext.js (Turbopack)1.108s (~)2.012s (~)0.904s101.03x
💻 LocalNitro1.114s (~)2.007s (~)0.892s101.04x
💻 LocalExpress1.115s (~)2.007s (~)0.892s101.04x
🌐 TursoNext.js (Turbopack)1.303s (~)2.013s (~)0.710s101.21x
🌐 MongoDBNext.js (Turbopack)1.305s (+0.6%)2.013s (~)0.708s101.21x
🐘 PostgresNext.js (Turbopack)1.963s (+12.5% 🔺)2.423s (+19.9% 🔺)0.460s101.82x
🐘 PostgresNitro2.152s (+1.9%)3.016s (~)0.864s102.00x
🐘 PostgresExpress2.159s (+1.3%)3.014s (~)0.855s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.790s (-4.4%)3.689s (-0.5%)0.899s101.00x
▲ VercelExpress2.857s (-0.9%)3.664s (+2.4%)0.806s101.02x
▲ VercelNitro2.951s (-12.7% 🟢)3.652s (-12.9% 🟢)0.701s101.06x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.504s (-0.8%)11.012s (~)0.509s51.00x
💻 LocalNext.js (Turbopack)10.656s (~)11.019s (~)0.363s51.01x
🌐 RedisNext.js (Turbopack)10.694s (~)11.016s (~)0.322s51.02x
💻 LocalExpress10.799s (~)11.014s (~)0.214s51.03x
💻 LocalNitro10.805s (~)11.011s (~)0.206s51.03x
🌐 TursoNext.js (Turbopack)12.201s (~)13.024s (~)0.823s51.16x
🌐 MongoDBNext.js (Turbopack)12.268s (~)13.025s (~)0.757s51.17x
🐘 PostgresNext.js (Turbopack)15.245s (~)16.041s (+1.2%)0.796s51.45x
🐘 PostgresExpress17.720s (-13.4% 🟢)18.233s (-13.3% 🟢)0.512s51.69x
🐘 PostgresNitro20.466s (~)21.034s (~)0.569s51.95x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro23.479s (+4.1%)24.205s (+2.3%)0.726s51.00x
▲ VercelExpress23.561s (+3.8%)24.139s (+2.4%)0.579s51.00x
▲ VercelNext.js (Turbopack)24.209s (+1.0%)24.874s (~)0.665s51.03x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.345s (~)2.009s (~)0.664s151.00x
🌐 RedisNext.js (Turbopack)1.378s (+1.4%)2.011s (~)0.633s151.02x
💻 LocalNext.js (Turbopack)1.388s (~)2.013s (~)0.624s151.03x
💻 LocalExpress1.410s (+0.6%)2.007s (~)0.597s151.05x
💻 LocalNitro1.419s (+0.7%)2.006s (~)0.587s151.05x
🐘 PostgresExpress1.885s (-19.6% 🟢)2.226s (-26.1% 🟢)0.340s141.40x
🐘 PostgresNext.js (Turbopack)1.970s (+0.8%)2.238s (-3.9%)0.268s141.46x
🌐 MongoDBNext.js (Turbopack)2.131s (-1.3%)3.014s (~)0.884s101.58x
🌐 TursoNext.js (Turbopack)2.197s (~)3.017s (~)0.819s101.63x
🐘 PostgresNitro2.364s (~)3.012s (~)0.648s101.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.962s (-6.8% 🟢)3.639s (-8.3% 🟢)0.677s91.00x
▲ VercelNext.js (Turbopack)2.997s (-12.5% 🟢)3.759s (-12.4% 🟢)0.762s81.01x
▲ VercelNitro3.067s (+4.2%)3.853s (+4.0%)0.786s81.04x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.087s (-5.6% 🟢)2.956s (-6.6% 🟢)0.868s111.00x
💻 LocalNitro2.236s (+0.7%)3.155s (~)0.919s101.07x
💻 LocalExpress2.254s (+1.1%)3.198s (+0.7%)0.944s101.08x
🌐 StarterNext.js (Turbopack)2.401s (-2.1%)3.012s (~)0.611s101.15x
🌐 RedisNext.js (Turbopack)2.512s (+0.7%)3.012s (~)0.501s101.20x
🐘 PostgresExpress2.586s (-16.8% 🟢)3.020s (-22.8% 🟢)0.434s101.24x
🐘 PostgresNext.js (Turbopack)2.616s (-1.6%)3.034s (~)0.418s101.25x
🐘 PostgresNitro3.281s (+9.7% 🔺)4.042s (+16.5% 🔺)0.761s81.57x
🌐 MongoDBNext.js (Turbopack)4.688s (-1.0%)5.181s (~)0.493s62.25x
🌐 TursoNext.js (Turbopack)4.774s (+2.5%)5.181s (~)0.407s62.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.210s (+14.9% 🔺)4.836s (+15.9% 🔺)0.625s81.00x
▲ VercelExpress4.416s (+26.1% 🔺)5.221s (+24.4% 🔺)0.805s71.05x
▲ VercelNext.js (Turbopack)4.706s (+38.3% 🔺)5.719s (+41.2% 🔺)1.014s61.12x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.353s (+1.5%)2.009s (~)0.656s151.00x
🌐 RedisNext.js (Turbopack)1.391s (-0.5%)2.010s (~)0.620s151.03x
💻 LocalNext.js (Turbopack)1.394s (-1.2%)2.014s (~)0.619s151.03x
💻 LocalNitro1.425s (~)2.005s (~)0.580s151.05x
💻 LocalExpress1.438s (~)2.006s (~)0.568s151.06x
🐘 PostgresNext.js (Turbopack)1.694s (~)2.013s (~)0.320s151.25x
🐘 PostgresExpress1.739s (-24.5% 🟢)2.011s (-22.5% 🟢)0.272s151.28x
🌐 MongoDBNext.js (Turbopack)2.154s (+1.3%)3.021s (~)0.867s101.59x
🌐 TursoNext.js (Turbopack)2.183s (-2.4%)3.013s (~)0.830s101.61x
🐘 PostgresNitro2.299s (+18.2% 🔺)3.011s (+45.0% 🔺)0.713s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.985s (-3.5%)3.807s (~)0.821s81.00x
▲ VercelExpress3.116s (+1.6%)3.817s (+1.0%)0.701s81.04x
▲ VercelNitro3.357s (+12.1% 🔺)4.006s (+8.0% 🔺)0.649s81.12x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.121s (-2.3%)2.941s (-1.4%)0.820s111.00x
💻 LocalNitro2.309s (-3.7%)3.246s (~)0.937s101.09x
💻 LocalExpress2.311s (+1.2%)3.256s (+1.3%)0.945s101.09x
🌐 StarterNext.js (Turbopack)2.415s (-1.0%)3.013s (~)0.598s101.14x
🌐 RedisNext.js (Turbopack)2.511s (+1.0%)3.013s (~)0.502s101.18x
🐘 PostgresNext.js (Turbopack)2.559s (-1.2%)3.026s (~)0.467s101.21x
🐘 PostgresExpress2.620s (-9.8% 🟢)3.012s (~)0.392s101.23x
🐘 PostgresNitro2.990s (+13.7% 🔺)3.681s (+22.3% 🔺)0.691s91.41x
🌐 MongoDBNext.js (Turbopack)4.700s (-1.1%)5.180s (~)0.480s62.22x
🌐 TursoNext.js (Turbopack)4.769s (+2.1%)5.181s (~)0.411s62.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.392s (~)3.981s (+2.4%)0.589s81.00x
▲ VercelExpress3.506s (-2.6%)4.225s (-1.1%)0.719s81.03x
▲ VercelNext.js (Turbopack)3.913s (+17.6% 🔺)4.813s (+22.7% 🔺)0.899s71.15x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.112s (-11.3% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.013s (~)0.901s101.00x
💻 LocalNext.js (Turbopack)0.139s (-2.3%)1.003s (~)0.016s (-3.0%)1.027s (~)0.888s101.25x
🌐 RedisNext.js (Turbopack)0.154s (+3.8%)1.005s (~)0.000s (-100.0% 🟢)1.015s (~)0.861s101.38x
💻 LocalExpress0.175s (+1.3%)0.991s (~)0.017s (+2.4%)1.023s (~)0.848s101.57x
💻 LocalNitro0.177s (~)0.992s (~)0.014s (-17.8% 🟢)1.020s (~)0.843s101.59x
🌐 TursoNext.js (Turbopack)0.467s (-13.7% 🟢)0.989s (+8.9% 🔺)0.000s (+Infinity% 🔺)1.014s (~)0.548s104.18x
🌐 MongoDBNext.js (Turbopack)0.490s (-5.8% 🟢)0.962s (+3.4%)0.000s (+Infinity% 🔺)1.014s (~)0.523s104.40x
🐘 PostgresNext.js (Turbopack)1.145s (-10.8% 🟢)1.905s (+8.0% 🔺)0.000s (+Infinity% 🔺)2.019s (~)0.875s1010.26x
🐘 PostgresExpress1.151s (-49.0% 🟢)1.312s (-53.0% 🟢)0.000s (NaN%)1.612s (-46.6% 🟢)0.462s1010.31x
🐘 PostgresNitro2.275s (-0.8%)2.768s (+0.6%)0.000s (-100.0% 🟢)3.014s (~)0.739s1020.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.904s (-8.1% 🟢)3.220s (-2.9%)0.413s (-57.6% 🟢)4.110s (-13.9% 🟢)1.205s101.00x
▲ VercelExpress3.012s (~)3.172s (-5.3% 🟢)0.609s (-44.5% 🟢)4.345s (-12.3% 🟢)1.333s101.04x
▲ VercelNext.js (Turbopack)3.170s (+4.3%)3.528s (+7.4% 🔺)0.412s (-47.1% 🟢)4.549s (+0.9%)1.379s101.09x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelNitro4/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/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

@github-actions

github-actionsBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production424038462
✅ 💻 Local Development388032420
✅ 📦 Local Production388032420
✅ 🐘 Local Postgres388032420
✅ 🪟 Windows420042
❌ 🌍 Community Worlds159210180
Total1789211341944

❌ 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
AppPassedFailedSkipped
✅ astro3804
✅ example3804
✅ express3804
✅ fastify3804
✅ hono3804
✅ nextjs-turbopack4101
✅ nextjs-webpack4101
✅ nitro3804
✅ nuxt3804
✅ sveltekit3804
✅ vite3804
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4200
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4110
✅ redis-dev300
❌ redis4110
✅ starter-dev300
❌ starter24180
✅ turso-dev300
❌ turso4110

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's[ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStreamJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStream[ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step callJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step call[ai] Fix collectUiMessages option by accumulating chunks in a separate step callJan 15, 2026
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/ai/src/agent/stream-text-iterator.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
When a step function is invoked, only capture `this` if it has a
`classId` property (indicating it's a class constructor registered
for serialization by the SWC plugin).
This prevents serialization errors when step functions are called as
methods on arbitrary objects (e.g., `tool.execute()`) where the object
has non-serializable properties like Zod schemas.
@VaguelySerious
VaguelySerious changed the base branch from main to peter/fix-step-serializationJanuary 15, 2026 14:04
I, Peter Wielander <mittgfu@gmail.com>, hereby add my Signed-off-by to this commit: 0e8fe8c
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@VaguelySerious
VaguelySerious changed the base branch from peter/fix-step-serialization to mainJanuary 15, 2026 21:33
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
type: 'start',
// Note that if useChat is used client-side, useChat will generate a different
// messageId. It's hard to work around this.
messageId: generateId(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Client-side would do sendStart: false in that case, no?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

the user can decide to do that, but would then have to handle the start themselves, which I think is fine. The ID seems unlikely to cause issues unless message persistence is mixed between client and server side

}) {
const shownCount = issues.length;
const title = `Top ${shownCount} issues (last ${digestIntervalDays}d) in ${repoFullName}`;
const title = `Top issues of last ${digestIntervalDays}d in ${repoFullName}`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unrelated to this PR?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

yes, wasn't worth its own, but can split if you want

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm. surprised that vade didn't leave any comments 🤔

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.

3 participants

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

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call - #784

Merged
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages
Jan 16, 2026
Merged

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call#784
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 15, 2026

Copy link
Copy Markdown
Member

This is a refactor of #768 which moves the accumulation logic to a step. The test harness I was using to test #768 didn't correctly account for the workflow transformation, so collectUiMessages didn't actually work as intended before (also reported in issue #739).

This PR moves the final accumulation call to a "use step" at the end of the agent.stream call. The actual logic still uses AI SDK's readUIMessageStream internally, just like before.

I alternatively considered pre-creating a stream in a setup step, then double piping to that stream, before passing it to the final step that can call readUIMessageStream on it. In a non-workflow world, this would result in a performance improvement (native stream use), but since we are awaiting step boundaries anyway, it would not help in this case, and it would make the content less observable.

I tested this in flight-booking-app. See the final step it makes here that gets the chunks and returns the uiMessages:
image

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6d2df7d

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

This PR includes changesets to release 2 packages
NameType
@workflow/aiPatch
@workflow/docs-typecheckPatch

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

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

@vercel

vercelBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-astro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-express-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-fastify-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-hono-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nitro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-vite-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workflow-docsReadyReadyPreview, CommentJan 16, 2026 10:24am

@github-actions

github-actionsBot commented Jan 15, 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
🌐 Starter🥇 Next.js (Turbopack)0.037s (-5.7% 🟢)1.016s (~)0.980s101.00x
💻 LocalNext.js (Turbopack)0.039s (-3.4%)1.017s (~)0.978s101.07x
🌐 RedisNext.js (Turbopack)0.044s (+3.8%)1.018s (~)0.975s101.19x
💻 LocalExpress0.044s (-0.9%)1.008s (~)0.963s101.21x
💻 LocalNitro0.046s (+4.5%)1.006s (~)0.960s101.26x
🌐 TursoNext.js (Turbopack)0.116s (+8.8% 🔺)1.015s (~)0.899s103.17x
🌐 MongoDBNext.js (Turbopack)0.124s (+117.9% 🔺)1.014s (~)0.890s103.40x
🐘 PostgresNext.js (Turbopack)0.198s (-45.6% 🟢)1.022s (~)0.824s105.42x
🐘 PostgresNitro0.293s (+8.0% 🔺)1.018s (+0.5%)0.725s108.00x
🐘 PostgresExpress0.310s (-2.2%)1.013s (~)0.703s108.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.592s (+3.5%)1.549s (+7.0% 🔺)0.957s101.00x
▲ VercelNitro0.611s (+12.0% 🔺)1.515s (-3.3%)0.904s101.03x
▲ VercelNext.js (Turbopack)0.651s (-5.5% 🟢)1.605s (-1.0%)0.954s101.10x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.3%)2.011s (~)0.935s101.00x
💻 LocalNext.js (Turbopack)1.099s (~)2.011s (~)0.912s101.02x
🌐 RedisNext.js (Turbopack)1.108s (~)2.012s (~)0.904s101.03x
💻 LocalNitro1.114s (~)2.007s (~)0.892s101.04x
💻 LocalExpress1.115s (~)2.007s (~)0.892s101.04x
🌐 TursoNext.js (Turbopack)1.303s (~)2.013s (~)0.710s101.21x
🌐 MongoDBNext.js (Turbopack)1.305s (+0.6%)2.013s (~)0.708s101.21x
🐘 PostgresNext.js (Turbopack)1.963s (+12.5% 🔺)2.423s (+19.9% 🔺)0.460s101.82x
🐘 PostgresNitro2.152s (+1.9%)3.016s (~)0.864s102.00x
🐘 PostgresExpress2.159s (+1.3%)3.014s (~)0.855s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.790s (-4.4%)3.689s (-0.5%)0.899s101.00x
▲ VercelExpress2.857s (-0.9%)3.664s (+2.4%)0.806s101.02x
▲ VercelNitro2.951s (-12.7% 🟢)3.652s (-12.9% 🟢)0.701s101.06x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.504s (-0.8%)11.012s (~)0.509s51.00x
💻 LocalNext.js (Turbopack)10.656s (~)11.019s (~)0.363s51.01x
🌐 RedisNext.js (Turbopack)10.694s (~)11.016s (~)0.322s51.02x
💻 LocalExpress10.799s (~)11.014s (~)0.214s51.03x
💻 LocalNitro10.805s (~)11.011s (~)0.206s51.03x
🌐 TursoNext.js (Turbopack)12.201s (~)13.024s (~)0.823s51.16x
🌐 MongoDBNext.js (Turbopack)12.268s (~)13.025s (~)0.757s51.17x
🐘 PostgresNext.js (Turbopack)15.245s (~)16.041s (+1.2%)0.796s51.45x
🐘 PostgresExpress17.720s (-13.4% 🟢)18.233s (-13.3% 🟢)0.512s51.69x
🐘 PostgresNitro20.466s (~)21.034s (~)0.569s51.95x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro23.479s (+4.1%)24.205s (+2.3%)0.726s51.00x
▲ VercelExpress23.561s (+3.8%)24.139s (+2.4%)0.579s51.00x
▲ VercelNext.js (Turbopack)24.209s (+1.0%)24.874s (~)0.665s51.03x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.345s (~)2.009s (~)0.664s151.00x
🌐 RedisNext.js (Turbopack)1.378s (+1.4%)2.011s (~)0.633s151.02x
💻 LocalNext.js (Turbopack)1.388s (~)2.013s (~)0.624s151.03x
💻 LocalExpress1.410s (+0.6%)2.007s (~)0.597s151.05x
💻 LocalNitro1.419s (+0.7%)2.006s (~)0.587s151.05x
🐘 PostgresExpress1.885s (-19.6% 🟢)2.226s (-26.1% 🟢)0.340s141.40x
🐘 PostgresNext.js (Turbopack)1.970s (+0.8%)2.238s (-3.9%)0.268s141.46x
🌐 MongoDBNext.js (Turbopack)2.131s (-1.3%)3.014s (~)0.884s101.58x
🌐 TursoNext.js (Turbopack)2.197s (~)3.017s (~)0.819s101.63x
🐘 PostgresNitro2.364s (~)3.012s (~)0.648s101.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.962s (-6.8% 🟢)3.639s (-8.3% 🟢)0.677s91.00x
▲ VercelNext.js (Turbopack)2.997s (-12.5% 🟢)3.759s (-12.4% 🟢)0.762s81.01x
▲ VercelNitro3.067s (+4.2%)3.853s (+4.0%)0.786s81.04x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.087s (-5.6% 🟢)2.956s (-6.6% 🟢)0.868s111.00x
💻 LocalNitro2.236s (+0.7%)3.155s (~)0.919s101.07x
💻 LocalExpress2.254s (+1.1%)3.198s (+0.7%)0.944s101.08x
🌐 StarterNext.js (Turbopack)2.401s (-2.1%)3.012s (~)0.611s101.15x
🌐 RedisNext.js (Turbopack)2.512s (+0.7%)3.012s (~)0.501s101.20x
🐘 PostgresExpress2.586s (-16.8% 🟢)3.020s (-22.8% 🟢)0.434s101.24x
🐘 PostgresNext.js (Turbopack)2.616s (-1.6%)3.034s (~)0.418s101.25x
🐘 PostgresNitro3.281s (+9.7% 🔺)4.042s (+16.5% 🔺)0.761s81.57x
🌐 MongoDBNext.js (Turbopack)4.688s (-1.0%)5.181s (~)0.493s62.25x
🌐 TursoNext.js (Turbopack)4.774s (+2.5%)5.181s (~)0.407s62.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.210s (+14.9% 🔺)4.836s (+15.9% 🔺)0.625s81.00x
▲ VercelExpress4.416s (+26.1% 🔺)5.221s (+24.4% 🔺)0.805s71.05x
▲ VercelNext.js (Turbopack)4.706s (+38.3% 🔺)5.719s (+41.2% 🔺)1.014s61.12x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.353s (+1.5%)2.009s (~)0.656s151.00x
🌐 RedisNext.js (Turbopack)1.391s (-0.5%)2.010s (~)0.620s151.03x
💻 LocalNext.js (Turbopack)1.394s (-1.2%)2.014s (~)0.619s151.03x
💻 LocalNitro1.425s (~)2.005s (~)0.580s151.05x
💻 LocalExpress1.438s (~)2.006s (~)0.568s151.06x
🐘 PostgresNext.js (Turbopack)1.694s (~)2.013s (~)0.320s151.25x
🐘 PostgresExpress1.739s (-24.5% 🟢)2.011s (-22.5% 🟢)0.272s151.28x
🌐 MongoDBNext.js (Turbopack)2.154s (+1.3%)3.021s (~)0.867s101.59x
🌐 TursoNext.js (Turbopack)2.183s (-2.4%)3.013s (~)0.830s101.61x
🐘 PostgresNitro2.299s (+18.2% 🔺)3.011s (+45.0% 🔺)0.713s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.985s (-3.5%)3.807s (~)0.821s81.00x
▲ VercelExpress3.116s (+1.6%)3.817s (+1.0%)0.701s81.04x
▲ VercelNitro3.357s (+12.1% 🔺)4.006s (+8.0% 🔺)0.649s81.12x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.121s (-2.3%)2.941s (-1.4%)0.820s111.00x
💻 LocalNitro2.309s (-3.7%)3.246s (~)0.937s101.09x
💻 LocalExpress2.311s (+1.2%)3.256s (+1.3%)0.945s101.09x
🌐 StarterNext.js (Turbopack)2.415s (-1.0%)3.013s (~)0.598s101.14x
🌐 RedisNext.js (Turbopack)2.511s (+1.0%)3.013s (~)0.502s101.18x
🐘 PostgresNext.js (Turbopack)2.559s (-1.2%)3.026s (~)0.467s101.21x
🐘 PostgresExpress2.620s (-9.8% 🟢)3.012s (~)0.392s101.23x
🐘 PostgresNitro2.990s (+13.7% 🔺)3.681s (+22.3% 🔺)0.691s91.41x
🌐 MongoDBNext.js (Turbopack)4.700s (-1.1%)5.180s (~)0.480s62.22x
🌐 TursoNext.js (Turbopack)4.769s (+2.1%)5.181s (~)0.411s62.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.392s (~)3.981s (+2.4%)0.589s81.00x
▲ VercelExpress3.506s (-2.6%)4.225s (-1.1%)0.719s81.03x
▲ VercelNext.js (Turbopack)3.913s (+17.6% 🔺)4.813s (+22.7% 🔺)0.899s71.15x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.112s (-11.3% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.013s (~)0.901s101.00x
💻 LocalNext.js (Turbopack)0.139s (-2.3%)1.003s (~)0.016s (-3.0%)1.027s (~)0.888s101.25x
🌐 RedisNext.js (Turbopack)0.154s (+3.8%)1.005s (~)0.000s (-100.0% 🟢)1.015s (~)0.861s101.38x
💻 LocalExpress0.175s (+1.3%)0.991s (~)0.017s (+2.4%)1.023s (~)0.848s101.57x
💻 LocalNitro0.177s (~)0.992s (~)0.014s (-17.8% 🟢)1.020s (~)0.843s101.59x
🌐 TursoNext.js (Turbopack)0.467s (-13.7% 🟢)0.989s (+8.9% 🔺)0.000s (+Infinity% 🔺)1.014s (~)0.548s104.18x
🌐 MongoDBNext.js (Turbopack)0.490s (-5.8% 🟢)0.962s (+3.4%)0.000s (+Infinity% 🔺)1.014s (~)0.523s104.40x
🐘 PostgresNext.js (Turbopack)1.145s (-10.8% 🟢)1.905s (+8.0% 🔺)0.000s (+Infinity% 🔺)2.019s (~)0.875s1010.26x
🐘 PostgresExpress1.151s (-49.0% 🟢)1.312s (-53.0% 🟢)0.000s (NaN%)1.612s (-46.6% 🟢)0.462s1010.31x
🐘 PostgresNitro2.275s (-0.8%)2.768s (+0.6%)0.000s (-100.0% 🟢)3.014s (~)0.739s1020.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.904s (-8.1% 🟢)3.220s (-2.9%)0.413s (-57.6% 🟢)4.110s (-13.9% 🟢)1.205s101.00x
▲ VercelExpress3.012s (~)3.172s (-5.3% 🟢)0.609s (-44.5% 🟢)4.345s (-12.3% 🟢)1.333s101.04x
▲ VercelNext.js (Turbopack)3.170s (+4.3%)3.528s (+7.4% 🔺)0.412s (-47.1% 🟢)4.549s (+0.9%)1.379s101.09x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelNitro4/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/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

@github-actions

github-actionsBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production424038462
✅ 💻 Local Development388032420
✅ 📦 Local Production388032420
✅ 🐘 Local Postgres388032420
✅ 🪟 Windows420042
❌ 🌍 Community Worlds159210180
Total1789211341944

❌ 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
AppPassedFailedSkipped
✅ astro3804
✅ example3804
✅ express3804
✅ fastify3804
✅ hono3804
✅ nextjs-turbopack4101
✅ nextjs-webpack4101
✅ nitro3804
✅ nuxt3804
✅ sveltekit3804
✅ vite3804
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4200
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4110
✅ redis-dev300
❌ redis4110
✅ starter-dev300
❌ starter24180
✅ turso-dev300
❌ turso4110

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's[ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStreamJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStream[ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step callJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step call[ai] Fix collectUiMessages option by accumulating chunks in a separate step callJan 15, 2026
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/ai/src/agent/stream-text-iterator.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
When a step function is invoked, only capture `this` if it has a
`classId` property (indicating it's a class constructor registered
for serialization by the SWC plugin).
This prevents serialization errors when step functions are called as
methods on arbitrary objects (e.g., `tool.execute()`) where the object
has non-serializable properties like Zod schemas.
@VaguelySerious
VaguelySerious changed the base branch from main to peter/fix-step-serializationJanuary 15, 2026 14:04
I, Peter Wielander <mittgfu@gmail.com>, hereby add my Signed-off-by to this commit: 0e8fe8c
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@VaguelySerious
VaguelySerious changed the base branch from peter/fix-step-serialization to mainJanuary 15, 2026 21:33
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
type: 'start',
// Note that if useChat is used client-side, useChat will generate a different
// messageId. It's hard to work around this.
messageId: generateId(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Client-side would do sendStart: false in that case, no?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

the user can decide to do that, but would then have to handle the start themselves, which I think is fine. The ID seems unlikely to cause issues unless message persistence is mixed between client and server side

}) {
const shownCount = issues.length;
const title = `Top ${shownCount} issues (last ${digestIntervalDays}d) in ${repoFullName}`;
const title = `Top issues of last ${digestIntervalDays}d in ${repoFullName}`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unrelated to this PR?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

yes, wasn't worth its own, but can split if you want

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm. surprised that vade didn't leave any comments 🤔

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.

3 participants

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

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call - #784

Merged
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages
Jan 16, 2026
Merged

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call#784
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 15, 2026

Copy link
Copy Markdown
Member

This is a refactor of #768 which moves the accumulation logic to a step. The test harness I was using to test #768 didn't correctly account for the workflow transformation, so collectUiMessages didn't actually work as intended before (also reported in issue #739).

This PR moves the final accumulation call to a "use step" at the end of the agent.stream call. The actual logic still uses AI SDK's readUIMessageStream internally, just like before.

I alternatively considered pre-creating a stream in a setup step, then double piping to that stream, before passing it to the final step that can call readUIMessageStream on it. In a non-workflow world, this would result in a performance improvement (native stream use), but since we are awaiting step boundaries anyway, it would not help in this case, and it would make the content less observable.

I tested this in flight-booking-app. See the final step it makes here that gets the chunks and returns the uiMessages:
image

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6d2df7d

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

This PR includes changesets to release 2 packages
NameType
@workflow/aiPatch
@workflow/docs-typecheckPatch

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

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

@vercel

vercelBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-astro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-express-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-fastify-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-hono-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nitro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-vite-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workflow-docsReadyReadyPreview, CommentJan 16, 2026 10:24am

@github-actions

github-actionsBot commented Jan 15, 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
🌐 Starter🥇 Next.js (Turbopack)0.037s (-5.7% 🟢)1.016s (~)0.980s101.00x
💻 LocalNext.js (Turbopack)0.039s (-3.4%)1.017s (~)0.978s101.07x
🌐 RedisNext.js (Turbopack)0.044s (+3.8%)1.018s (~)0.975s101.19x
💻 LocalExpress0.044s (-0.9%)1.008s (~)0.963s101.21x
💻 LocalNitro0.046s (+4.5%)1.006s (~)0.960s101.26x
🌐 TursoNext.js (Turbopack)0.116s (+8.8% 🔺)1.015s (~)0.899s103.17x
🌐 MongoDBNext.js (Turbopack)0.124s (+117.9% 🔺)1.014s (~)0.890s103.40x
🐘 PostgresNext.js (Turbopack)0.198s (-45.6% 🟢)1.022s (~)0.824s105.42x
🐘 PostgresNitro0.293s (+8.0% 🔺)1.018s (+0.5%)0.725s108.00x
🐘 PostgresExpress0.310s (-2.2%)1.013s (~)0.703s108.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.592s (+3.5%)1.549s (+7.0% 🔺)0.957s101.00x
▲ VercelNitro0.611s (+12.0% 🔺)1.515s (-3.3%)0.904s101.03x
▲ VercelNext.js (Turbopack)0.651s (-5.5% 🟢)1.605s (-1.0%)0.954s101.10x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.3%)2.011s (~)0.935s101.00x
💻 LocalNext.js (Turbopack)1.099s (~)2.011s (~)0.912s101.02x
🌐 RedisNext.js (Turbopack)1.108s (~)2.012s (~)0.904s101.03x
💻 LocalNitro1.114s (~)2.007s (~)0.892s101.04x
💻 LocalExpress1.115s (~)2.007s (~)0.892s101.04x
🌐 TursoNext.js (Turbopack)1.303s (~)2.013s (~)0.710s101.21x
🌐 MongoDBNext.js (Turbopack)1.305s (+0.6%)2.013s (~)0.708s101.21x
🐘 PostgresNext.js (Turbopack)1.963s (+12.5% 🔺)2.423s (+19.9% 🔺)0.460s101.82x
🐘 PostgresNitro2.152s (+1.9%)3.016s (~)0.864s102.00x
🐘 PostgresExpress2.159s (+1.3%)3.014s (~)0.855s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.790s (-4.4%)3.689s (-0.5%)0.899s101.00x
▲ VercelExpress2.857s (-0.9%)3.664s (+2.4%)0.806s101.02x
▲ VercelNitro2.951s (-12.7% 🟢)3.652s (-12.9% 🟢)0.701s101.06x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.504s (-0.8%)11.012s (~)0.509s51.00x
💻 LocalNext.js (Turbopack)10.656s (~)11.019s (~)0.363s51.01x
🌐 RedisNext.js (Turbopack)10.694s (~)11.016s (~)0.322s51.02x
💻 LocalExpress10.799s (~)11.014s (~)0.214s51.03x
💻 LocalNitro10.805s (~)11.011s (~)0.206s51.03x
🌐 TursoNext.js (Turbopack)12.201s (~)13.024s (~)0.823s51.16x
🌐 MongoDBNext.js (Turbopack)12.268s (~)13.025s (~)0.757s51.17x
🐘 PostgresNext.js (Turbopack)15.245s (~)16.041s (+1.2%)0.796s51.45x
🐘 PostgresExpress17.720s (-13.4% 🟢)18.233s (-13.3% 🟢)0.512s51.69x
🐘 PostgresNitro20.466s (~)21.034s (~)0.569s51.95x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro23.479s (+4.1%)24.205s (+2.3%)0.726s51.00x
▲ VercelExpress23.561s (+3.8%)24.139s (+2.4%)0.579s51.00x
▲ VercelNext.js (Turbopack)24.209s (+1.0%)24.874s (~)0.665s51.03x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.345s (~)2.009s (~)0.664s151.00x
🌐 RedisNext.js (Turbopack)1.378s (+1.4%)2.011s (~)0.633s151.02x
💻 LocalNext.js (Turbopack)1.388s (~)2.013s (~)0.624s151.03x
💻 LocalExpress1.410s (+0.6%)2.007s (~)0.597s151.05x
💻 LocalNitro1.419s (+0.7%)2.006s (~)0.587s151.05x
🐘 PostgresExpress1.885s (-19.6% 🟢)2.226s (-26.1% 🟢)0.340s141.40x
🐘 PostgresNext.js (Turbopack)1.970s (+0.8%)2.238s (-3.9%)0.268s141.46x
🌐 MongoDBNext.js (Turbopack)2.131s (-1.3%)3.014s (~)0.884s101.58x
🌐 TursoNext.js (Turbopack)2.197s (~)3.017s (~)0.819s101.63x
🐘 PostgresNitro2.364s (~)3.012s (~)0.648s101.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.962s (-6.8% 🟢)3.639s (-8.3% 🟢)0.677s91.00x
▲ VercelNext.js (Turbopack)2.997s (-12.5% 🟢)3.759s (-12.4% 🟢)0.762s81.01x
▲ VercelNitro3.067s (+4.2%)3.853s (+4.0%)0.786s81.04x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.087s (-5.6% 🟢)2.956s (-6.6% 🟢)0.868s111.00x
💻 LocalNitro2.236s (+0.7%)3.155s (~)0.919s101.07x
💻 LocalExpress2.254s (+1.1%)3.198s (+0.7%)0.944s101.08x
🌐 StarterNext.js (Turbopack)2.401s (-2.1%)3.012s (~)0.611s101.15x
🌐 RedisNext.js (Turbopack)2.512s (+0.7%)3.012s (~)0.501s101.20x
🐘 PostgresExpress2.586s (-16.8% 🟢)3.020s (-22.8% 🟢)0.434s101.24x
🐘 PostgresNext.js (Turbopack)2.616s (-1.6%)3.034s (~)0.418s101.25x
🐘 PostgresNitro3.281s (+9.7% 🔺)4.042s (+16.5% 🔺)0.761s81.57x
🌐 MongoDBNext.js (Turbopack)4.688s (-1.0%)5.181s (~)0.493s62.25x
🌐 TursoNext.js (Turbopack)4.774s (+2.5%)5.181s (~)0.407s62.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.210s (+14.9% 🔺)4.836s (+15.9% 🔺)0.625s81.00x
▲ VercelExpress4.416s (+26.1% 🔺)5.221s (+24.4% 🔺)0.805s71.05x
▲ VercelNext.js (Turbopack)4.706s (+38.3% 🔺)5.719s (+41.2% 🔺)1.014s61.12x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.353s (+1.5%)2.009s (~)0.656s151.00x
🌐 RedisNext.js (Turbopack)1.391s (-0.5%)2.010s (~)0.620s151.03x
💻 LocalNext.js (Turbopack)1.394s (-1.2%)2.014s (~)0.619s151.03x
💻 LocalNitro1.425s (~)2.005s (~)0.580s151.05x
💻 LocalExpress1.438s (~)2.006s (~)0.568s151.06x
🐘 PostgresNext.js (Turbopack)1.694s (~)2.013s (~)0.320s151.25x
🐘 PostgresExpress1.739s (-24.5% 🟢)2.011s (-22.5% 🟢)0.272s151.28x
🌐 MongoDBNext.js (Turbopack)2.154s (+1.3%)3.021s (~)0.867s101.59x
🌐 TursoNext.js (Turbopack)2.183s (-2.4%)3.013s (~)0.830s101.61x
🐘 PostgresNitro2.299s (+18.2% 🔺)3.011s (+45.0% 🔺)0.713s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.985s (-3.5%)3.807s (~)0.821s81.00x
▲ VercelExpress3.116s (+1.6%)3.817s (+1.0%)0.701s81.04x
▲ VercelNitro3.357s (+12.1% 🔺)4.006s (+8.0% 🔺)0.649s81.12x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.121s (-2.3%)2.941s (-1.4%)0.820s111.00x
💻 LocalNitro2.309s (-3.7%)3.246s (~)0.937s101.09x
💻 LocalExpress2.311s (+1.2%)3.256s (+1.3%)0.945s101.09x
🌐 StarterNext.js (Turbopack)2.415s (-1.0%)3.013s (~)0.598s101.14x
🌐 RedisNext.js (Turbopack)2.511s (+1.0%)3.013s (~)0.502s101.18x
🐘 PostgresNext.js (Turbopack)2.559s (-1.2%)3.026s (~)0.467s101.21x
🐘 PostgresExpress2.620s (-9.8% 🟢)3.012s (~)0.392s101.23x
🐘 PostgresNitro2.990s (+13.7% 🔺)3.681s (+22.3% 🔺)0.691s91.41x
🌐 MongoDBNext.js (Turbopack)4.700s (-1.1%)5.180s (~)0.480s62.22x
🌐 TursoNext.js (Turbopack)4.769s (+2.1%)5.181s (~)0.411s62.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.392s (~)3.981s (+2.4%)0.589s81.00x
▲ VercelExpress3.506s (-2.6%)4.225s (-1.1%)0.719s81.03x
▲ VercelNext.js (Turbopack)3.913s (+17.6% 🔺)4.813s (+22.7% 🔺)0.899s71.15x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.112s (-11.3% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.013s (~)0.901s101.00x
💻 LocalNext.js (Turbopack)0.139s (-2.3%)1.003s (~)0.016s (-3.0%)1.027s (~)0.888s101.25x
🌐 RedisNext.js (Turbopack)0.154s (+3.8%)1.005s (~)0.000s (-100.0% 🟢)1.015s (~)0.861s101.38x
💻 LocalExpress0.175s (+1.3%)0.991s (~)0.017s (+2.4%)1.023s (~)0.848s101.57x
💻 LocalNitro0.177s (~)0.992s (~)0.014s (-17.8% 🟢)1.020s (~)0.843s101.59x
🌐 TursoNext.js (Turbopack)0.467s (-13.7% 🟢)0.989s (+8.9% 🔺)0.000s (+Infinity% 🔺)1.014s (~)0.548s104.18x
🌐 MongoDBNext.js (Turbopack)0.490s (-5.8% 🟢)0.962s (+3.4%)0.000s (+Infinity% 🔺)1.014s (~)0.523s104.40x
🐘 PostgresNext.js (Turbopack)1.145s (-10.8% 🟢)1.905s (+8.0% 🔺)0.000s (+Infinity% 🔺)2.019s (~)0.875s1010.26x
🐘 PostgresExpress1.151s (-49.0% 🟢)1.312s (-53.0% 🟢)0.000s (NaN%)1.612s (-46.6% 🟢)0.462s1010.31x
🐘 PostgresNitro2.275s (-0.8%)2.768s (+0.6%)0.000s (-100.0% 🟢)3.014s (~)0.739s1020.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.904s (-8.1% 🟢)3.220s (-2.9%)0.413s (-57.6% 🟢)4.110s (-13.9% 🟢)1.205s101.00x
▲ VercelExpress3.012s (~)3.172s (-5.3% 🟢)0.609s (-44.5% 🟢)4.345s (-12.3% 🟢)1.333s101.04x
▲ VercelNext.js (Turbopack)3.170s (+4.3%)3.528s (+7.4% 🔺)0.412s (-47.1% 🟢)4.549s (+0.9%)1.379s101.09x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelNitro4/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/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

@github-actions

github-actionsBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production424038462
✅ 💻 Local Development388032420
✅ 📦 Local Production388032420
✅ 🐘 Local Postgres388032420
✅ 🪟 Windows420042
❌ 🌍 Community Worlds159210180
Total1789211341944

❌ 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
AppPassedFailedSkipped
✅ astro3804
✅ example3804
✅ express3804
✅ fastify3804
✅ hono3804
✅ nextjs-turbopack4101
✅ nextjs-webpack4101
✅ nitro3804
✅ nuxt3804
✅ sveltekit3804
✅ vite3804
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4200
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4110
✅ redis-dev300
❌ redis4110
✅ starter-dev300
❌ starter24180
✅ turso-dev300
❌ turso4110

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's[ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStreamJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStream[ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step callJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step call[ai] Fix collectUiMessages option by accumulating chunks in a separate step callJan 15, 2026
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/ai/src/agent/stream-text-iterator.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
When a step function is invoked, only capture `this` if it has a
`classId` property (indicating it's a class constructor registered
for serialization by the SWC plugin).
This prevents serialization errors when step functions are called as
methods on arbitrary objects (e.g., `tool.execute()`) where the object
has non-serializable properties like Zod schemas.
@VaguelySerious
VaguelySerious changed the base branch from main to peter/fix-step-serializationJanuary 15, 2026 14:04
I, Peter Wielander <mittgfu@gmail.com>, hereby add my Signed-off-by to this commit: 0e8fe8c
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@VaguelySerious
VaguelySerious changed the base branch from peter/fix-step-serialization to mainJanuary 15, 2026 21:33
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
type: 'start',
// Note that if useChat is used client-side, useChat will generate a different
// messageId. It's hard to work around this.
messageId: generateId(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Client-side would do sendStart: false in that case, no?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

the user can decide to do that, but would then have to handle the start themselves, which I think is fine. The ID seems unlikely to cause issues unless message persistence is mixed between client and server side

}) {
const shownCount = issues.length;
const title = `Top ${shownCount} issues (last ${digestIntervalDays}d) in ${repoFullName}`;
const title = `Top issues of last ${digestIntervalDays}d in ${repoFullName}`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unrelated to this PR?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

yes, wasn't worth its own, but can split if you want

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm. surprised that vade didn't leave any comments 🤔

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.

3 participants

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

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call - #784

Merged
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages
Jan 16, 2026
Merged

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call#784
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 15, 2026

Copy link
Copy Markdown
Member

This is a refactor of #768 which moves the accumulation logic to a step. The test harness I was using to test #768 didn't correctly account for the workflow transformation, so collectUiMessages didn't actually work as intended before (also reported in issue #739).

This PR moves the final accumulation call to a "use step" at the end of the agent.stream call. The actual logic still uses AI SDK's readUIMessageStream internally, just like before.

I alternatively considered pre-creating a stream in a setup step, then double piping to that stream, before passing it to the final step that can call readUIMessageStream on it. In a non-workflow world, this would result in a performance improvement (native stream use), but since we are awaiting step boundaries anyway, it would not help in this case, and it would make the content less observable.

I tested this in flight-booking-app. See the final step it makes here that gets the chunks and returns the uiMessages:
image

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6d2df7d

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

This PR includes changesets to release 2 packages
NameType
@workflow/aiPatch
@workflow/docs-typecheckPatch

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

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

@vercel

vercelBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-astro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-express-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-fastify-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-hono-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nitro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-vite-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workflow-docsReadyReadyPreview, CommentJan 16, 2026 10:24am

@github-actions

github-actionsBot commented Jan 15, 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
🌐 Starter🥇 Next.js (Turbopack)0.037s (-5.7% 🟢)1.016s (~)0.980s101.00x
💻 LocalNext.js (Turbopack)0.039s (-3.4%)1.017s (~)0.978s101.07x
🌐 RedisNext.js (Turbopack)0.044s (+3.8%)1.018s (~)0.975s101.19x
💻 LocalExpress0.044s (-0.9%)1.008s (~)0.963s101.21x
💻 LocalNitro0.046s (+4.5%)1.006s (~)0.960s101.26x
🌐 TursoNext.js (Turbopack)0.116s (+8.8% 🔺)1.015s (~)0.899s103.17x
🌐 MongoDBNext.js (Turbopack)0.124s (+117.9% 🔺)1.014s (~)0.890s103.40x
🐘 PostgresNext.js (Turbopack)0.198s (-45.6% 🟢)1.022s (~)0.824s105.42x
🐘 PostgresNitro0.293s (+8.0% 🔺)1.018s (+0.5%)0.725s108.00x
🐘 PostgresExpress0.310s (-2.2%)1.013s (~)0.703s108.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.592s (+3.5%)1.549s (+7.0% 🔺)0.957s101.00x
▲ VercelNitro0.611s (+12.0% 🔺)1.515s (-3.3%)0.904s101.03x
▲ VercelNext.js (Turbopack)0.651s (-5.5% 🟢)1.605s (-1.0%)0.954s101.10x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.3%)2.011s (~)0.935s101.00x
💻 LocalNext.js (Turbopack)1.099s (~)2.011s (~)0.912s101.02x
🌐 RedisNext.js (Turbopack)1.108s (~)2.012s (~)0.904s101.03x
💻 LocalNitro1.114s (~)2.007s (~)0.892s101.04x
💻 LocalExpress1.115s (~)2.007s (~)0.892s101.04x
🌐 TursoNext.js (Turbopack)1.303s (~)2.013s (~)0.710s101.21x
🌐 MongoDBNext.js (Turbopack)1.305s (+0.6%)2.013s (~)0.708s101.21x
🐘 PostgresNext.js (Turbopack)1.963s (+12.5% 🔺)2.423s (+19.9% 🔺)0.460s101.82x
🐘 PostgresNitro2.152s (+1.9%)3.016s (~)0.864s102.00x
🐘 PostgresExpress2.159s (+1.3%)3.014s (~)0.855s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.790s (-4.4%)3.689s (-0.5%)0.899s101.00x
▲ VercelExpress2.857s (-0.9%)3.664s (+2.4%)0.806s101.02x
▲ VercelNitro2.951s (-12.7% 🟢)3.652s (-12.9% 🟢)0.701s101.06x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.504s (-0.8%)11.012s (~)0.509s51.00x
💻 LocalNext.js (Turbopack)10.656s (~)11.019s (~)0.363s51.01x
🌐 RedisNext.js (Turbopack)10.694s (~)11.016s (~)0.322s51.02x
💻 LocalExpress10.799s (~)11.014s (~)0.214s51.03x
💻 LocalNitro10.805s (~)11.011s (~)0.206s51.03x
🌐 TursoNext.js (Turbopack)12.201s (~)13.024s (~)0.823s51.16x
🌐 MongoDBNext.js (Turbopack)12.268s (~)13.025s (~)0.757s51.17x
🐘 PostgresNext.js (Turbopack)15.245s (~)16.041s (+1.2%)0.796s51.45x
🐘 PostgresExpress17.720s (-13.4% 🟢)18.233s (-13.3% 🟢)0.512s51.69x
🐘 PostgresNitro20.466s (~)21.034s (~)0.569s51.95x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro23.479s (+4.1%)24.205s (+2.3%)0.726s51.00x
▲ VercelExpress23.561s (+3.8%)24.139s (+2.4%)0.579s51.00x
▲ VercelNext.js (Turbopack)24.209s (+1.0%)24.874s (~)0.665s51.03x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.345s (~)2.009s (~)0.664s151.00x
🌐 RedisNext.js (Turbopack)1.378s (+1.4%)2.011s (~)0.633s151.02x
💻 LocalNext.js (Turbopack)1.388s (~)2.013s (~)0.624s151.03x
💻 LocalExpress1.410s (+0.6%)2.007s (~)0.597s151.05x
💻 LocalNitro1.419s (+0.7%)2.006s (~)0.587s151.05x
🐘 PostgresExpress1.885s (-19.6% 🟢)2.226s (-26.1% 🟢)0.340s141.40x
🐘 PostgresNext.js (Turbopack)1.970s (+0.8%)2.238s (-3.9%)0.268s141.46x
🌐 MongoDBNext.js (Turbopack)2.131s (-1.3%)3.014s (~)0.884s101.58x
🌐 TursoNext.js (Turbopack)2.197s (~)3.017s (~)0.819s101.63x
🐘 PostgresNitro2.364s (~)3.012s (~)0.648s101.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.962s (-6.8% 🟢)3.639s (-8.3% 🟢)0.677s91.00x
▲ VercelNext.js (Turbopack)2.997s (-12.5% 🟢)3.759s (-12.4% 🟢)0.762s81.01x
▲ VercelNitro3.067s (+4.2%)3.853s (+4.0%)0.786s81.04x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.087s (-5.6% 🟢)2.956s (-6.6% 🟢)0.868s111.00x
💻 LocalNitro2.236s (+0.7%)3.155s (~)0.919s101.07x
💻 LocalExpress2.254s (+1.1%)3.198s (+0.7%)0.944s101.08x
🌐 StarterNext.js (Turbopack)2.401s (-2.1%)3.012s (~)0.611s101.15x
🌐 RedisNext.js (Turbopack)2.512s (+0.7%)3.012s (~)0.501s101.20x
🐘 PostgresExpress2.586s (-16.8% 🟢)3.020s (-22.8% 🟢)0.434s101.24x
🐘 PostgresNext.js (Turbopack)2.616s (-1.6%)3.034s (~)0.418s101.25x
🐘 PostgresNitro3.281s (+9.7% 🔺)4.042s (+16.5% 🔺)0.761s81.57x
🌐 MongoDBNext.js (Turbopack)4.688s (-1.0%)5.181s (~)0.493s62.25x
🌐 TursoNext.js (Turbopack)4.774s (+2.5%)5.181s (~)0.407s62.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.210s (+14.9% 🔺)4.836s (+15.9% 🔺)0.625s81.00x
▲ VercelExpress4.416s (+26.1% 🔺)5.221s (+24.4% 🔺)0.805s71.05x
▲ VercelNext.js (Turbopack)4.706s (+38.3% 🔺)5.719s (+41.2% 🔺)1.014s61.12x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.353s (+1.5%)2.009s (~)0.656s151.00x
🌐 RedisNext.js (Turbopack)1.391s (-0.5%)2.010s (~)0.620s151.03x
💻 LocalNext.js (Turbopack)1.394s (-1.2%)2.014s (~)0.619s151.03x
💻 LocalNitro1.425s (~)2.005s (~)0.580s151.05x
💻 LocalExpress1.438s (~)2.006s (~)0.568s151.06x
🐘 PostgresNext.js (Turbopack)1.694s (~)2.013s (~)0.320s151.25x
🐘 PostgresExpress1.739s (-24.5% 🟢)2.011s (-22.5% 🟢)0.272s151.28x
🌐 MongoDBNext.js (Turbopack)2.154s (+1.3%)3.021s (~)0.867s101.59x
🌐 TursoNext.js (Turbopack)2.183s (-2.4%)3.013s (~)0.830s101.61x
🐘 PostgresNitro2.299s (+18.2% 🔺)3.011s (+45.0% 🔺)0.713s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.985s (-3.5%)3.807s (~)0.821s81.00x
▲ VercelExpress3.116s (+1.6%)3.817s (+1.0%)0.701s81.04x
▲ VercelNitro3.357s (+12.1% 🔺)4.006s (+8.0% 🔺)0.649s81.12x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.121s (-2.3%)2.941s (-1.4%)0.820s111.00x
💻 LocalNitro2.309s (-3.7%)3.246s (~)0.937s101.09x
💻 LocalExpress2.311s (+1.2%)3.256s (+1.3%)0.945s101.09x
🌐 StarterNext.js (Turbopack)2.415s (-1.0%)3.013s (~)0.598s101.14x
🌐 RedisNext.js (Turbopack)2.511s (+1.0%)3.013s (~)0.502s101.18x
🐘 PostgresNext.js (Turbopack)2.559s (-1.2%)3.026s (~)0.467s101.21x
🐘 PostgresExpress2.620s (-9.8% 🟢)3.012s (~)0.392s101.23x
🐘 PostgresNitro2.990s (+13.7% 🔺)3.681s (+22.3% 🔺)0.691s91.41x
🌐 MongoDBNext.js (Turbopack)4.700s (-1.1%)5.180s (~)0.480s62.22x
🌐 TursoNext.js (Turbopack)4.769s (+2.1%)5.181s (~)0.411s62.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.392s (~)3.981s (+2.4%)0.589s81.00x
▲ VercelExpress3.506s (-2.6%)4.225s (-1.1%)0.719s81.03x
▲ VercelNext.js (Turbopack)3.913s (+17.6% 🔺)4.813s (+22.7% 🔺)0.899s71.15x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.112s (-11.3% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.013s (~)0.901s101.00x
💻 LocalNext.js (Turbopack)0.139s (-2.3%)1.003s (~)0.016s (-3.0%)1.027s (~)0.888s101.25x
🌐 RedisNext.js (Turbopack)0.154s (+3.8%)1.005s (~)0.000s (-100.0% 🟢)1.015s (~)0.861s101.38x
💻 LocalExpress0.175s (+1.3%)0.991s (~)0.017s (+2.4%)1.023s (~)0.848s101.57x
💻 LocalNitro0.177s (~)0.992s (~)0.014s (-17.8% 🟢)1.020s (~)0.843s101.59x
🌐 TursoNext.js (Turbopack)0.467s (-13.7% 🟢)0.989s (+8.9% 🔺)0.000s (+Infinity% 🔺)1.014s (~)0.548s104.18x
🌐 MongoDBNext.js (Turbopack)0.490s (-5.8% 🟢)0.962s (+3.4%)0.000s (+Infinity% 🔺)1.014s (~)0.523s104.40x
🐘 PostgresNext.js (Turbopack)1.145s (-10.8% 🟢)1.905s (+8.0% 🔺)0.000s (+Infinity% 🔺)2.019s (~)0.875s1010.26x
🐘 PostgresExpress1.151s (-49.0% 🟢)1.312s (-53.0% 🟢)0.000s (NaN%)1.612s (-46.6% 🟢)0.462s1010.31x
🐘 PostgresNitro2.275s (-0.8%)2.768s (+0.6%)0.000s (-100.0% 🟢)3.014s (~)0.739s1020.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.904s (-8.1% 🟢)3.220s (-2.9%)0.413s (-57.6% 🟢)4.110s (-13.9% 🟢)1.205s101.00x
▲ VercelExpress3.012s (~)3.172s (-5.3% 🟢)0.609s (-44.5% 🟢)4.345s (-12.3% 🟢)1.333s101.04x
▲ VercelNext.js (Turbopack)3.170s (+4.3%)3.528s (+7.4% 🔺)0.412s (-47.1% 🟢)4.549s (+0.9%)1.379s101.09x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelNitro4/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/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

@github-actions

github-actionsBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production424038462
✅ 💻 Local Development388032420
✅ 📦 Local Production388032420
✅ 🐘 Local Postgres388032420
✅ 🪟 Windows420042
❌ 🌍 Community Worlds159210180
Total1789211341944

❌ 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
AppPassedFailedSkipped
✅ astro3804
✅ example3804
✅ express3804
✅ fastify3804
✅ hono3804
✅ nextjs-turbopack4101
✅ nextjs-webpack4101
✅ nitro3804
✅ nuxt3804
✅ sveltekit3804
✅ vite3804
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4200
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4110
✅ redis-dev300
❌ redis4110
✅ starter-dev300
❌ starter24180
✅ turso-dev300
❌ turso4110

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's[ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStreamJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStream[ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step callJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step call[ai] Fix collectUiMessages option by accumulating chunks in a separate step callJan 15, 2026
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/ai/src/agent/stream-text-iterator.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
When a step function is invoked, only capture `this` if it has a
`classId` property (indicating it's a class constructor registered
for serialization by the SWC plugin).
This prevents serialization errors when step functions are called as
methods on arbitrary objects (e.g., `tool.execute()`) where the object
has non-serializable properties like Zod schemas.
@VaguelySerious
VaguelySerious changed the base branch from main to peter/fix-step-serializationJanuary 15, 2026 14:04
I, Peter Wielander <mittgfu@gmail.com>, hereby add my Signed-off-by to this commit: 0e8fe8c
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@VaguelySerious
VaguelySerious changed the base branch from peter/fix-step-serialization to mainJanuary 15, 2026 21:33
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
type: 'start',
// Note that if useChat is used client-side, useChat will generate a different
// messageId. It's hard to work around this.
messageId: generateId(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Client-side would do sendStart: false in that case, no?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

the user can decide to do that, but would then have to handle the start themselves, which I think is fine. The ID seems unlikely to cause issues unless message persistence is mixed between client and server side

}) {
const shownCount = issues.length;
const title = `Top ${shownCount} issues (last ${digestIntervalDays}d) in ${repoFullName}`;
const title = `Top issues of last ${digestIntervalDays}d in ${repoFullName}`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unrelated to this PR?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

yes, wasn't worth its own, but can split if you want

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm. surprised that vade didn't leave any comments 🤔

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.

3 participants

@VaguelySerious@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call - #784

Merged
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages
Jan 16, 2026
Merged

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call#784
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 15, 2026

Copy link
Copy Markdown
Member

This is a refactor of #768 which moves the accumulation logic to a step. The test harness I was using to test #768 didn't correctly account for the workflow transformation, so collectUiMessages didn't actually work as intended before (also reported in issue #739).

This PR moves the final accumulation call to a "use step" at the end of the agent.stream call. The actual logic still uses AI SDK's readUIMessageStream internally, just like before.

I alternatively considered pre-creating a stream in a setup step, then double piping to that stream, before passing it to the final step that can call readUIMessageStream on it. In a non-workflow world, this would result in a performance improvement (native stream use), but since we are awaiting step boundaries anyway, it would not help in this case, and it would make the content less observable.

I tested this in flight-booking-app. See the final step it makes here that gets the chunks and returns the uiMessages:
image

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6d2df7d

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

This PR includes changesets to release 2 packages
NameType
@workflow/aiPatch
@workflow/docs-typecheckPatch

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

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

@vercel

vercelBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-astro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-express-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-fastify-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-hono-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nitro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-vite-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workflow-docsReadyReadyPreview, CommentJan 16, 2026 10:24am

@github-actions

github-actionsBot commented Jan 15, 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
🌐 Starter🥇 Next.js (Turbopack)0.037s (-5.7% 🟢)1.016s (~)0.980s101.00x
💻 LocalNext.js (Turbopack)0.039s (-3.4%)1.017s (~)0.978s101.07x
🌐 RedisNext.js (Turbopack)0.044s (+3.8%)1.018s (~)0.975s101.19x
💻 LocalExpress0.044s (-0.9%)1.008s (~)0.963s101.21x
💻 LocalNitro0.046s (+4.5%)1.006s (~)0.960s101.26x
🌐 TursoNext.js (Turbopack)0.116s (+8.8% 🔺)1.015s (~)0.899s103.17x
🌐 MongoDBNext.js (Turbopack)0.124s (+117.9% 🔺)1.014s (~)0.890s103.40x
🐘 PostgresNext.js (Turbopack)0.198s (-45.6% 🟢)1.022s (~)0.824s105.42x
🐘 PostgresNitro0.293s (+8.0% 🔺)1.018s (+0.5%)0.725s108.00x
🐘 PostgresExpress0.310s (-2.2%)1.013s (~)0.703s108.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.592s (+3.5%)1.549s (+7.0% 🔺)0.957s101.00x
▲ VercelNitro0.611s (+12.0% 🔺)1.515s (-3.3%)0.904s101.03x
▲ VercelNext.js (Turbopack)0.651s (-5.5% 🟢)1.605s (-1.0%)0.954s101.10x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.3%)2.011s (~)0.935s101.00x
💻 LocalNext.js (Turbopack)1.099s (~)2.011s (~)0.912s101.02x
🌐 RedisNext.js (Turbopack)1.108s (~)2.012s (~)0.904s101.03x
💻 LocalNitro1.114s (~)2.007s (~)0.892s101.04x
💻 LocalExpress1.115s (~)2.007s (~)0.892s101.04x
🌐 TursoNext.js (Turbopack)1.303s (~)2.013s (~)0.710s101.21x
🌐 MongoDBNext.js (Turbopack)1.305s (+0.6%)2.013s (~)0.708s101.21x
🐘 PostgresNext.js (Turbopack)1.963s (+12.5% 🔺)2.423s (+19.9% 🔺)0.460s101.82x
🐘 PostgresNitro2.152s (+1.9%)3.016s (~)0.864s102.00x
🐘 PostgresExpress2.159s (+1.3%)3.014s (~)0.855s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.790s (-4.4%)3.689s (-0.5%)0.899s101.00x
▲ VercelExpress2.857s (-0.9%)3.664s (+2.4%)0.806s101.02x
▲ VercelNitro2.951s (-12.7% 🟢)3.652s (-12.9% 🟢)0.701s101.06x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.504s (-0.8%)11.012s (~)0.509s51.00x
💻 LocalNext.js (Turbopack)10.656s (~)11.019s (~)0.363s51.01x
🌐 RedisNext.js (Turbopack)10.694s (~)11.016s (~)0.322s51.02x
💻 LocalExpress10.799s (~)11.014s (~)0.214s51.03x
💻 LocalNitro10.805s (~)11.011s (~)0.206s51.03x
🌐 TursoNext.js (Turbopack)12.201s (~)13.024s (~)0.823s51.16x
🌐 MongoDBNext.js (Turbopack)12.268s (~)13.025s (~)0.757s51.17x
🐘 PostgresNext.js (Turbopack)15.245s (~)16.041s (+1.2%)0.796s51.45x
🐘 PostgresExpress17.720s (-13.4% 🟢)18.233s (-13.3% 🟢)0.512s51.69x
🐘 PostgresNitro20.466s (~)21.034s (~)0.569s51.95x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro23.479s (+4.1%)24.205s (+2.3%)0.726s51.00x
▲ VercelExpress23.561s (+3.8%)24.139s (+2.4%)0.579s51.00x
▲ VercelNext.js (Turbopack)24.209s (+1.0%)24.874s (~)0.665s51.03x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.345s (~)2.009s (~)0.664s151.00x
🌐 RedisNext.js (Turbopack)1.378s (+1.4%)2.011s (~)0.633s151.02x
💻 LocalNext.js (Turbopack)1.388s (~)2.013s (~)0.624s151.03x
💻 LocalExpress1.410s (+0.6%)2.007s (~)0.597s151.05x
💻 LocalNitro1.419s (+0.7%)2.006s (~)0.587s151.05x
🐘 PostgresExpress1.885s (-19.6% 🟢)2.226s (-26.1% 🟢)0.340s141.40x
🐘 PostgresNext.js (Turbopack)1.970s (+0.8%)2.238s (-3.9%)0.268s141.46x
🌐 MongoDBNext.js (Turbopack)2.131s (-1.3%)3.014s (~)0.884s101.58x
🌐 TursoNext.js (Turbopack)2.197s (~)3.017s (~)0.819s101.63x
🐘 PostgresNitro2.364s (~)3.012s (~)0.648s101.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.962s (-6.8% 🟢)3.639s (-8.3% 🟢)0.677s91.00x
▲ VercelNext.js (Turbopack)2.997s (-12.5% 🟢)3.759s (-12.4% 🟢)0.762s81.01x
▲ VercelNitro3.067s (+4.2%)3.853s (+4.0%)0.786s81.04x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.087s (-5.6% 🟢)2.956s (-6.6% 🟢)0.868s111.00x
💻 LocalNitro2.236s (+0.7%)3.155s (~)0.919s101.07x
💻 LocalExpress2.254s (+1.1%)3.198s (+0.7%)0.944s101.08x
🌐 StarterNext.js (Turbopack)2.401s (-2.1%)3.012s (~)0.611s101.15x
🌐 RedisNext.js (Turbopack)2.512s (+0.7%)3.012s (~)0.501s101.20x
🐘 PostgresExpress2.586s (-16.8% 🟢)3.020s (-22.8% 🟢)0.434s101.24x
🐘 PostgresNext.js (Turbopack)2.616s (-1.6%)3.034s (~)0.418s101.25x
🐘 PostgresNitro3.281s (+9.7% 🔺)4.042s (+16.5% 🔺)0.761s81.57x
🌐 MongoDBNext.js (Turbopack)4.688s (-1.0%)5.181s (~)0.493s62.25x
🌐 TursoNext.js (Turbopack)4.774s (+2.5%)5.181s (~)0.407s62.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.210s (+14.9% 🔺)4.836s (+15.9% 🔺)0.625s81.00x
▲ VercelExpress4.416s (+26.1% 🔺)5.221s (+24.4% 🔺)0.805s71.05x
▲ VercelNext.js (Turbopack)4.706s (+38.3% 🔺)5.719s (+41.2% 🔺)1.014s61.12x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.353s (+1.5%)2.009s (~)0.656s151.00x
🌐 RedisNext.js (Turbopack)1.391s (-0.5%)2.010s (~)0.620s151.03x
💻 LocalNext.js (Turbopack)1.394s (-1.2%)2.014s (~)0.619s151.03x
💻 LocalNitro1.425s (~)2.005s (~)0.580s151.05x
💻 LocalExpress1.438s (~)2.006s (~)0.568s151.06x
🐘 PostgresNext.js (Turbopack)1.694s (~)2.013s (~)0.320s151.25x
🐘 PostgresExpress1.739s (-24.5% 🟢)2.011s (-22.5% 🟢)0.272s151.28x
🌐 MongoDBNext.js (Turbopack)2.154s (+1.3%)3.021s (~)0.867s101.59x
🌐 TursoNext.js (Turbopack)2.183s (-2.4%)3.013s (~)0.830s101.61x
🐘 PostgresNitro2.299s (+18.2% 🔺)3.011s (+45.0% 🔺)0.713s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.985s (-3.5%)3.807s (~)0.821s81.00x
▲ VercelExpress3.116s (+1.6%)3.817s (+1.0%)0.701s81.04x
▲ VercelNitro3.357s (+12.1% 🔺)4.006s (+8.0% 🔺)0.649s81.12x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.121s (-2.3%)2.941s (-1.4%)0.820s111.00x
💻 LocalNitro2.309s (-3.7%)3.246s (~)0.937s101.09x
💻 LocalExpress2.311s (+1.2%)3.256s (+1.3%)0.945s101.09x
🌐 StarterNext.js (Turbopack)2.415s (-1.0%)3.013s (~)0.598s101.14x
🌐 RedisNext.js (Turbopack)2.511s (+1.0%)3.013s (~)0.502s101.18x
🐘 PostgresNext.js (Turbopack)2.559s (-1.2%)3.026s (~)0.467s101.21x
🐘 PostgresExpress2.620s (-9.8% 🟢)3.012s (~)0.392s101.23x
🐘 PostgresNitro2.990s (+13.7% 🔺)3.681s (+22.3% 🔺)0.691s91.41x
🌐 MongoDBNext.js (Turbopack)4.700s (-1.1%)5.180s (~)0.480s62.22x
🌐 TursoNext.js (Turbopack)4.769s (+2.1%)5.181s (~)0.411s62.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.392s (~)3.981s (+2.4%)0.589s81.00x
▲ VercelExpress3.506s (-2.6%)4.225s (-1.1%)0.719s81.03x
▲ VercelNext.js (Turbopack)3.913s (+17.6% 🔺)4.813s (+22.7% 🔺)0.899s71.15x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.112s (-11.3% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.013s (~)0.901s101.00x
💻 LocalNext.js (Turbopack)0.139s (-2.3%)1.003s (~)0.016s (-3.0%)1.027s (~)0.888s101.25x
🌐 RedisNext.js (Turbopack)0.154s (+3.8%)1.005s (~)0.000s (-100.0% 🟢)1.015s (~)0.861s101.38x
💻 LocalExpress0.175s (+1.3%)0.991s (~)0.017s (+2.4%)1.023s (~)0.848s101.57x
💻 LocalNitro0.177s (~)0.992s (~)0.014s (-17.8% 🟢)1.020s (~)0.843s101.59x
🌐 TursoNext.js (Turbopack)0.467s (-13.7% 🟢)0.989s (+8.9% 🔺)0.000s (+Infinity% 🔺)1.014s (~)0.548s104.18x
🌐 MongoDBNext.js (Turbopack)0.490s (-5.8% 🟢)0.962s (+3.4%)0.000s (+Infinity% 🔺)1.014s (~)0.523s104.40x
🐘 PostgresNext.js (Turbopack)1.145s (-10.8% 🟢)1.905s (+8.0% 🔺)0.000s (+Infinity% 🔺)2.019s (~)0.875s1010.26x
🐘 PostgresExpress1.151s (-49.0% 🟢)1.312s (-53.0% 🟢)0.000s (NaN%)1.612s (-46.6% 🟢)0.462s1010.31x
🐘 PostgresNitro2.275s (-0.8%)2.768s (+0.6%)0.000s (-100.0% 🟢)3.014s (~)0.739s1020.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.904s (-8.1% 🟢)3.220s (-2.9%)0.413s (-57.6% 🟢)4.110s (-13.9% 🟢)1.205s101.00x
▲ VercelExpress3.012s (~)3.172s (-5.3% 🟢)0.609s (-44.5% 🟢)4.345s (-12.3% 🟢)1.333s101.04x
▲ VercelNext.js (Turbopack)3.170s (+4.3%)3.528s (+7.4% 🔺)0.412s (-47.1% 🟢)4.549s (+0.9%)1.379s101.09x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelNitro4/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/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

@github-actions

github-actionsBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production424038462
✅ 💻 Local Development388032420
✅ 📦 Local Production388032420
✅ 🐘 Local Postgres388032420
✅ 🪟 Windows420042
❌ 🌍 Community Worlds159210180
Total1789211341944

❌ 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
AppPassedFailedSkipped
✅ astro3804
✅ example3804
✅ express3804
✅ fastify3804
✅ hono3804
✅ nextjs-turbopack4101
✅ nextjs-webpack4101
✅ nitro3804
✅ nuxt3804
✅ sveltekit3804
✅ vite3804
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4200
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4110
✅ redis-dev300
❌ redis4110
✅ starter-dev300
❌ starter24180
✅ turso-dev300
❌ turso4110

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's[ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStreamJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStream[ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step callJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step call[ai] Fix collectUiMessages option by accumulating chunks in a separate step callJan 15, 2026
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/ai/src/agent/stream-text-iterator.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
When a step function is invoked, only capture `this` if it has a
`classId` property (indicating it's a class constructor registered
for serialization by the SWC plugin).
This prevents serialization errors when step functions are called as
methods on arbitrary objects (e.g., `tool.execute()`) where the object
has non-serializable properties like Zod schemas.
@VaguelySerious
VaguelySerious changed the base branch from main to peter/fix-step-serializationJanuary 15, 2026 14:04
I, Peter Wielander <mittgfu@gmail.com>, hereby add my Signed-off-by to this commit: 0e8fe8c
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@VaguelySerious
VaguelySerious changed the base branch from peter/fix-step-serialization to mainJanuary 15, 2026 21:33
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
type: 'start',
// Note that if useChat is used client-side, useChat will generate a different
// messageId. It's hard to work around this.
messageId: generateId(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Client-side would do sendStart: false in that case, no?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

the user can decide to do that, but would then have to handle the start themselves, which I think is fine. The ID seems unlikely to cause issues unless message persistence is mixed between client and server side

}) {
const shownCount = issues.length;
const title = `Top ${shownCount} issues (last ${digestIntervalDays}d) in ${repoFullName}`;
const title = `Top issues of last ${digestIntervalDays}d in ${repoFullName}`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unrelated to this PR?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

yes, wasn't worth its own, but can split if you want

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm. surprised that vade didn't leave any comments 🤔

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.

3 participants

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

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call - #784

Merged
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages
Jan 16, 2026
Merged

[ai] Fix collectUiMessages option by accumulating chunks in a separate step call#784
VaguelySerious merged 15 commits into
mainfrom
peter/fix-durable-agent-collectUiMessages

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 15, 2026

Copy link
Copy Markdown
Member

This is a refactor of #768 which moves the accumulation logic to a step. The test harness I was using to test #768 didn't correctly account for the workflow transformation, so collectUiMessages didn't actually work as intended before (also reported in issue #739).

This PR moves the final accumulation call to a "use step" at the end of the agent.stream call. The actual logic still uses AI SDK's readUIMessageStream internally, just like before.

I alternatively considered pre-creating a stream in a setup step, then double piping to that stream, before passing it to the final step that can call readUIMessageStream on it. In a non-workflow world, this would result in a performance improvement (native stream use), but since we are awaiting step boundaries anyway, it would not help in this case, and it would make the content less observable.

I tested this in flight-booking-app. See the final step it makes here that gets the chunks and returns the uiMessages:
image

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6d2df7d

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

This PR includes changesets to release 2 packages
NameType
@workflow/aiPatch
@workflow/docs-typecheckPatch

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

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

@vercel

vercelBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 16, 2026 10:24am
example-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-astro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-express-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-fastify-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-hono-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nitro-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workbench-vite-workflowReadyReadyPreview, CommentJan 16, 2026 10:24am
workflow-docsReadyReadyPreview, CommentJan 16, 2026 10:24am

@github-actions

github-actionsBot commented Jan 15, 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
🌐 Starter🥇 Next.js (Turbopack)0.037s (-5.7% 🟢)1.016s (~)0.980s101.00x
💻 LocalNext.js (Turbopack)0.039s (-3.4%)1.017s (~)0.978s101.07x
🌐 RedisNext.js (Turbopack)0.044s (+3.8%)1.018s (~)0.975s101.19x
💻 LocalExpress0.044s (-0.9%)1.008s (~)0.963s101.21x
💻 LocalNitro0.046s (+4.5%)1.006s (~)0.960s101.26x
🌐 TursoNext.js (Turbopack)0.116s (+8.8% 🔺)1.015s (~)0.899s103.17x
🌐 MongoDBNext.js (Turbopack)0.124s (+117.9% 🔺)1.014s (~)0.890s103.40x
🐘 PostgresNext.js (Turbopack)0.198s (-45.6% 🟢)1.022s (~)0.824s105.42x
🐘 PostgresNitro0.293s (+8.0% 🔺)1.018s (+0.5%)0.725s108.00x
🐘 PostgresExpress0.310s (-2.2%)1.013s (~)0.703s108.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.592s (+3.5%)1.549s (+7.0% 🔺)0.957s101.00x
▲ VercelNitro0.611s (+12.0% 🔺)1.515s (-3.3%)0.904s101.03x
▲ VercelNext.js (Turbopack)0.651s (-5.5% 🟢)1.605s (-1.0%)0.954s101.10x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.3%)2.011s (~)0.935s101.00x
💻 LocalNext.js (Turbopack)1.099s (~)2.011s (~)0.912s101.02x
🌐 RedisNext.js (Turbopack)1.108s (~)2.012s (~)0.904s101.03x
💻 LocalNitro1.114s (~)2.007s (~)0.892s101.04x
💻 LocalExpress1.115s (~)2.007s (~)0.892s101.04x
🌐 TursoNext.js (Turbopack)1.303s (~)2.013s (~)0.710s101.21x
🌐 MongoDBNext.js (Turbopack)1.305s (+0.6%)2.013s (~)0.708s101.21x
🐘 PostgresNext.js (Turbopack)1.963s (+12.5% 🔺)2.423s (+19.9% 🔺)0.460s101.82x
🐘 PostgresNitro2.152s (+1.9%)3.016s (~)0.864s102.00x
🐘 PostgresExpress2.159s (+1.3%)3.014s (~)0.855s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.790s (-4.4%)3.689s (-0.5%)0.899s101.00x
▲ VercelExpress2.857s (-0.9%)3.664s (+2.4%)0.806s101.02x
▲ VercelNitro2.951s (-12.7% 🟢)3.652s (-12.9% 🟢)0.701s101.06x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.504s (-0.8%)11.012s (~)0.509s51.00x
💻 LocalNext.js (Turbopack)10.656s (~)11.019s (~)0.363s51.01x
🌐 RedisNext.js (Turbopack)10.694s (~)11.016s (~)0.322s51.02x
💻 LocalExpress10.799s (~)11.014s (~)0.214s51.03x
💻 LocalNitro10.805s (~)11.011s (~)0.206s51.03x
🌐 TursoNext.js (Turbopack)12.201s (~)13.024s (~)0.823s51.16x
🌐 MongoDBNext.js (Turbopack)12.268s (~)13.025s (~)0.757s51.17x
🐘 PostgresNext.js (Turbopack)15.245s (~)16.041s (+1.2%)0.796s51.45x
🐘 PostgresExpress17.720s (-13.4% 🟢)18.233s (-13.3% 🟢)0.512s51.69x
🐘 PostgresNitro20.466s (~)21.034s (~)0.569s51.95x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro23.479s (+4.1%)24.205s (+2.3%)0.726s51.00x
▲ VercelExpress23.561s (+3.8%)24.139s (+2.4%)0.579s51.00x
▲ VercelNext.js (Turbopack)24.209s (+1.0%)24.874s (~)0.665s51.03x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.345s (~)2.009s (~)0.664s151.00x
🌐 RedisNext.js (Turbopack)1.378s (+1.4%)2.011s (~)0.633s151.02x
💻 LocalNext.js (Turbopack)1.388s (~)2.013s (~)0.624s151.03x
💻 LocalExpress1.410s (+0.6%)2.007s (~)0.597s151.05x
💻 LocalNitro1.419s (+0.7%)2.006s (~)0.587s151.05x
🐘 PostgresExpress1.885s (-19.6% 🟢)2.226s (-26.1% 🟢)0.340s141.40x
🐘 PostgresNext.js (Turbopack)1.970s (+0.8%)2.238s (-3.9%)0.268s141.46x
🌐 MongoDBNext.js (Turbopack)2.131s (-1.3%)3.014s (~)0.884s101.58x
🌐 TursoNext.js (Turbopack)2.197s (~)3.017s (~)0.819s101.63x
🐘 PostgresNitro2.364s (~)3.012s (~)0.648s101.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.962s (-6.8% 🟢)3.639s (-8.3% 🟢)0.677s91.00x
▲ VercelNext.js (Turbopack)2.997s (-12.5% 🟢)3.759s (-12.4% 🟢)0.762s81.01x
▲ VercelNitro3.067s (+4.2%)3.853s (+4.0%)0.786s81.04x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.087s (-5.6% 🟢)2.956s (-6.6% 🟢)0.868s111.00x
💻 LocalNitro2.236s (+0.7%)3.155s (~)0.919s101.07x
💻 LocalExpress2.254s (+1.1%)3.198s (+0.7%)0.944s101.08x
🌐 StarterNext.js (Turbopack)2.401s (-2.1%)3.012s (~)0.611s101.15x
🌐 RedisNext.js (Turbopack)2.512s (+0.7%)3.012s (~)0.501s101.20x
🐘 PostgresExpress2.586s (-16.8% 🟢)3.020s (-22.8% 🟢)0.434s101.24x
🐘 PostgresNext.js (Turbopack)2.616s (-1.6%)3.034s (~)0.418s101.25x
🐘 PostgresNitro3.281s (+9.7% 🔺)4.042s (+16.5% 🔺)0.761s81.57x
🌐 MongoDBNext.js (Turbopack)4.688s (-1.0%)5.181s (~)0.493s62.25x
🌐 TursoNext.js (Turbopack)4.774s (+2.5%)5.181s (~)0.407s62.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.210s (+14.9% 🔺)4.836s (+15.9% 🔺)0.625s81.00x
▲ VercelExpress4.416s (+26.1% 🔺)5.221s (+24.4% 🔺)0.805s71.05x
▲ VercelNext.js (Turbopack)4.706s (+38.3% 🔺)5.719s (+41.2% 🔺)1.014s61.12x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.353s (+1.5%)2.009s (~)0.656s151.00x
🌐 RedisNext.js (Turbopack)1.391s (-0.5%)2.010s (~)0.620s151.03x
💻 LocalNext.js (Turbopack)1.394s (-1.2%)2.014s (~)0.619s151.03x
💻 LocalNitro1.425s (~)2.005s (~)0.580s151.05x
💻 LocalExpress1.438s (~)2.006s (~)0.568s151.06x
🐘 PostgresNext.js (Turbopack)1.694s (~)2.013s (~)0.320s151.25x
🐘 PostgresExpress1.739s (-24.5% 🟢)2.011s (-22.5% 🟢)0.272s151.28x
🌐 MongoDBNext.js (Turbopack)2.154s (+1.3%)3.021s (~)0.867s101.59x
🌐 TursoNext.js (Turbopack)2.183s (-2.4%)3.013s (~)0.830s101.61x
🐘 PostgresNitro2.299s (+18.2% 🔺)3.011s (+45.0% 🔺)0.713s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.985s (-3.5%)3.807s (~)0.821s81.00x
▲ VercelExpress3.116s (+1.6%)3.817s (+1.0%)0.701s81.04x
▲ VercelNitro3.357s (+12.1% 🔺)4.006s (+8.0% 🔺)0.649s81.12x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.121s (-2.3%)2.941s (-1.4%)0.820s111.00x
💻 LocalNitro2.309s (-3.7%)3.246s (~)0.937s101.09x
💻 LocalExpress2.311s (+1.2%)3.256s (+1.3%)0.945s101.09x
🌐 StarterNext.js (Turbopack)2.415s (-1.0%)3.013s (~)0.598s101.14x
🌐 RedisNext.js (Turbopack)2.511s (+1.0%)3.013s (~)0.502s101.18x
🐘 PostgresNext.js (Turbopack)2.559s (-1.2%)3.026s (~)0.467s101.21x
🐘 PostgresExpress2.620s (-9.8% 🟢)3.012s (~)0.392s101.23x
🐘 PostgresNitro2.990s (+13.7% 🔺)3.681s (+22.3% 🔺)0.691s91.41x
🌐 MongoDBNext.js (Turbopack)4.700s (-1.1%)5.180s (~)0.480s62.22x
🌐 TursoNext.js (Turbopack)4.769s (+2.1%)5.181s (~)0.411s62.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.392s (~)3.981s (+2.4%)0.589s81.00x
▲ VercelExpress3.506s (-2.6%)4.225s (-1.1%)0.719s81.03x
▲ VercelNext.js (Turbopack)3.913s (+17.6% 🔺)4.813s (+22.7% 🔺)0.899s71.15x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.112s (-11.3% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.013s (~)0.901s101.00x
💻 LocalNext.js (Turbopack)0.139s (-2.3%)1.003s (~)0.016s (-3.0%)1.027s (~)0.888s101.25x
🌐 RedisNext.js (Turbopack)0.154s (+3.8%)1.005s (~)0.000s (-100.0% 🟢)1.015s (~)0.861s101.38x
💻 LocalExpress0.175s (+1.3%)0.991s (~)0.017s (+2.4%)1.023s (~)0.848s101.57x
💻 LocalNitro0.177s (~)0.992s (~)0.014s (-17.8% 🟢)1.020s (~)0.843s101.59x
🌐 TursoNext.js (Turbopack)0.467s (-13.7% 🟢)0.989s (+8.9% 🔺)0.000s (+Infinity% 🔺)1.014s (~)0.548s104.18x
🌐 MongoDBNext.js (Turbopack)0.490s (-5.8% 🟢)0.962s (+3.4%)0.000s (+Infinity% 🔺)1.014s (~)0.523s104.40x
🐘 PostgresNext.js (Turbopack)1.145s (-10.8% 🟢)1.905s (+8.0% 🔺)0.000s (+Infinity% 🔺)2.019s (~)0.875s1010.26x
🐘 PostgresExpress1.151s (-49.0% 🟢)1.312s (-53.0% 🟢)0.000s (NaN%)1.612s (-46.6% 🟢)0.462s1010.31x
🐘 PostgresNitro2.275s (-0.8%)2.768s (+0.6%)0.000s (-100.0% 🟢)3.014s (~)0.739s1020.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.904s (-8.1% 🟢)3.220s (-2.9%)0.413s (-57.6% 🟢)4.110s (-13.9% 🟢)1.205s101.00x
▲ VercelExpress3.012s (~)3.172s (-5.3% 🟢)0.609s (-44.5% 🟢)4.345s (-12.3% 🟢)1.333s101.04x
▲ VercelNext.js (Turbopack)3.170s (+4.3%)3.528s (+7.4% 🔺)0.412s (-47.1% 🟢)4.549s (+0.9%)1.379s101.09x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelNitro4/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/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

@github-actions

github-actionsBot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production424038462
✅ 💻 Local Development388032420
✅ 📦 Local Production388032420
✅ 🐘 Local Postgres388032420
✅ 🪟 Windows420042
❌ 🌍 Community Worlds159210180
Total1789211341944

❌ 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
AppPassedFailedSkipped
✅ astro3804
✅ example3804
✅ express3804
✅ fastify3804
✅ hono3804
✅ nextjs-turbopack4101
✅ nextjs-webpack4101
✅ nitro3804
✅ nuxt3804
✅ sveltekit3804
✅ vite3804
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3804
✅ express-stable3804
✅ fastify-stable3804
✅ hono-stable3804
✅ nextjs-turbopack-stable4200
✅ nextjs-webpack-stable4200
✅ nitro-stable3804
✅ nuxt-stable3804
✅ sveltekit-stable3804
✅ vite-stable3804
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4200
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4110
✅ redis-dev300
❌ redis4110
✅ starter-dev300
❌ starter24180
✅ turso-dev300
❌ turso4110

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's[ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStreamJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring it to use AI SDK's readUIMessageStream[ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step callJan 15, 2026
@VaguelySeriousVaguelySerious changed the title [ai] Fix collectUiMessages option by refactoring accumulation to happen in a separate step call[ai] Fix collectUiMessages option by accumulating chunks in a separate step callJan 15, 2026
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/ai/src/agent/stream-text-iterator.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
When a step function is invoked, only capture `this` if it has a
`classId` property (indicating it's a class constructor registered
for serialization by the SWC plugin).
This prevents serialization errors when step functions are called as
methods on arbitrary objects (e.g., `tool.execute()`) where the object
has non-serializable properties like Zod schemas.
@VaguelySerious
VaguelySerious changed the base branch from main to peter/fix-step-serializationJanuary 15, 2026 14:04
I, Peter Wielander <mittgfu@gmail.com>, hereby add my Signed-off-by to this commit: 0e8fe8c
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@VaguelySerious
VaguelySerious changed the base branch from peter/fix-step-serialization to mainJanuary 15, 2026 21:33
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
type: 'start',
// Note that if useChat is used client-side, useChat will generate a different
// messageId. It's hard to work around this.
messageId: generateId(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Client-side would do sendStart: false in that case, no?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

the user can decide to do that, but would then have to handle the start themselves, which I think is fine. The ID seems unlikely to cause issues unless message persistence is mixed between client and server side

}) {
const shownCount = issues.length;
const title = `Top ${shownCount} issues (last ${digestIntervalDays}d) in ${repoFullName}`;
const title = `Top issues of last ${digestIntervalDays}d in ${repoFullName}`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unrelated to this PR?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

yes, wasn't worth its own, but can split if you want

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm. surprised that vade didn't leave any comments 🤔

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.

3 participants

@VaguelySerious@TooTallNate@pranaygp