Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader - #3588

Merged
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable
Aug 24, 2026
Merged

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader#3588
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #3564 to stable (backport job run).

AI recommendation: This is a data-loss/correctness fix: createReconnectingFramedStream trusted a clean EOF as end-of-stream, so long live reads were silently truncated when the server's max-duration abort arrived as a graceful close. The buggy code exists verbatim on stable (packages/core/src/serialization.ts:691, including the "Clean EOF — stream is truly complete" branch), and stable has an equivalent metadata API (World.getStreamInfo(name, runId) returning { tailIndex, done }) the fix can use, though the call site differs from main's world.streams.getInfo(runId, name) and will need adapting. Changeset is a patch to @workflow/core and the only other file is an accompanying test.

Merge conflicts were resolved by AI (opencode with anthropic/claude-opus-5). Please review the conflict resolution carefully before merging.

…er (#3564)
Long live reads were ending silently at the server's 2-minute connection
cap: the max-duration abort reaches the client as a clean EOF on some
transport paths, and the reader read that as end-of-stream. On EOF it
now consults `streams.getInfo` and reconnects from the next chunk unless
the stream is done and every chunk up to the tail was delivered. A
failed metadata read trusts the EOF, so a transient blip can't fail a
healthy completion.
Tests added for the reconnect, verified-completion, metadata-failure,
and reconnect-budget paths.
---------
Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>
Signed-off-by: Alex Langenfeld <alexlangenfeld@gmail.com>
@github-actions
github-actionsBot requested review from a team and ijjk as code ownersAugust 17, 2026 18:09
@changeset-bot

changeset-botBot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b805ffc

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

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

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 Aug 17, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-nextjs-workflow-webpackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-astro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-express-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-fastify-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-hono-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nestjs-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nitro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nuxt-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-python-workflowErrorErrorv0Aug 24, 2026 10:43pm
workbench-sveltekit-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-tanstack-start-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-vite-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-docsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-swc-playgroundReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-tarballsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-webReadyReadyPreview, v0Aug 24, 2026 10:43pm

@github-actions

github-actionsBot commented Aug 24, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10990781177
✅ 💻 Local Development11980861284
✅ 📦 Local Production11980861284
✅ 🐘 Local Postgres11980861284
✅ 🪟 Windows10700107
❌ 🌍 Community Worlds831059197
✅ 📋 Other606036642
Total54891053815975

❌ Failed Tests

🌍 Community Worlds (105 failed)

redis (20 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

turso (85 failed):

  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01M0TZ249EDW8PQE5JAMB25GY8
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01M0TZ1CF3FA1W0RACCW7FAX13
  • promiseRaceWorkflow | wrun_01M0TZ1H5JRFW546YM77G916D4
  • promiseAnyWorkflow | wrun_01M0TZ1KG4RAD14RWAERWV2FH9
  • importedStepOnlyWorkflow | wrun_01M0TZ2MFV7PKXJPYZ953CKYGW
  • readableStreamWorkflow | wrun_01M0TZ1NRBZ4PA1TNF9JW5SRC0
  • hookWorkflow | wrun_01M0TZ21WXJVB8FQFCN0TNH8NB
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • webhookWorkflow | wrun_01M0TZ2DBCBD42E54Y2273DH8V
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • parallelSleepWorkflow | wrun_01M0TZ3ZN08CR6AQNFNNNDD4WF
  • sleepWinsRaceWorkflow | wrun_01M0TZ434H1PM85F458SDM7WSC
  • stepWinsRaceWorkflow | wrun_01M0TZ46JBBPTS1SECZ97P5N3A
  • nullByteWorkflow | wrun_01M0TZ4A0F6CQS4MN8JR1PHBR8
  • workflowAndStepMetadataWorkflow | wrun_01M0TZ4C9GPS71GJV5D4H7NBQZ
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01M0TZ6PRFDBXWAQQJMH82NK30
  • writableForwardedFromWorkflowWorkflow | wrun_01M0TZ72M6HXX790YM6HTETS41
  • writableForwardedFromStepWorkflow | wrun_01M0TZ75XE1ZD34S00WH51GBCZ
  • fetchWorkflow | wrun_01M0TZ78ERNRFDKAGGF89QC7GN
  • promiseRaceStressTestWorkflow | wrun_01M0TZ7BX3TDC8MPZWY34BVE8X
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01M0TZBCT3E9F17RYW4SYPYX67
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01M0TZC8KPDFEW8Q8BJC0Z7X90
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01M0TZCB6GRAVN6FQ9P1F66ETE
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01M0TZEJSY3WKWMGKB1GQSBQ02
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01M0TZF2P1SJREFDASAFTFZ1ER
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01M0TZFC92C46WQKPBKET3KVFM
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01M0TZFJ00P2KXYJ69YJKRDVKK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01M0TZFM89VAFK2KSJTJHW3N8Q
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01M0TZG3KY37FB4BYWQHCJANV0
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01M0TZG9H0TY1E3QS55H8J8SC5
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01M0TZGFA323VVC6Q9KB0M256N
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01M0TZGPFBEJJ30X2KSXDY618E
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01M0TZGW6VAMAZDZVFFV2NZCEY
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01M0TZH322P9V9BNQPNVJMJ0XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01M0TZH9Y5V3Z1XSQXRJ7JVWCE
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01M0TZHQ1M1D4T6X42VEAD7FEG
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01M0TZJ1MR3H4DR16A5V340M96
  • cancelRun - cancelling a running workflow | wrun_01M0TZJ8QQABCME15C7VH547HP
  • cancelRun via CLI - cancelling a running workflow | wrun_01M0TZJDTM1H1V6VWWENKVBSAG
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01M0TZJNM23EB1AWE95BANNR94
  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01M0TZK1DB3V212JPA9MZCKBY2
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01M0TZKAEQCH0DH0V0P5A8RQNN
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01M0TZKN21B36XCSY9YKDE6DZS
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01M0TZKW0B2D2KG78W0DKB6BT5
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01M0TZKY9R78NM11D32HBN875N
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9908
✅ example9908
✅ express9908
✅ fastify9908
✅ hono9908
✅ nextjs-turbopack10403
✅ nextjs-webpack10403
✅ nitro9908
✅ nuxt9908
✅ sveltekit9908
✅ vite9908
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev403
✅ redis-dev403
❌ redis68200
✅ turso-dev403
❌ turso3850
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable10106
✅ e2e-local-dev-tanstack-start-stable10106
✅ e2e-local-postgres-nest-stable10106
✅ e2e-local-postgres-tanstack-start-stable10106
✅ e2e-local-prod-nest-stable10106
✅ e2e-local-prod-tanstack-start-stable10106

📋 View full workflow run

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.

1 participant

@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

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader - #3588

Merged
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable
Aug 24, 2026
Merged

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader#3588
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #3564 to stable (backport job run).

AI recommendation: This is a data-loss/correctness fix: createReconnectingFramedStream trusted a clean EOF as end-of-stream, so long live reads were silently truncated when the server's max-duration abort arrived as a graceful close. The buggy code exists verbatim on stable (packages/core/src/serialization.ts:691, including the "Clean EOF — stream is truly complete" branch), and stable has an equivalent metadata API (World.getStreamInfo(name, runId) returning { tailIndex, done }) the fix can use, though the call site differs from main's world.streams.getInfo(runId, name) and will need adapting. Changeset is a patch to @workflow/core and the only other file is an accompanying test.

Merge conflicts were resolved by AI (opencode with anthropic/claude-opus-5). Please review the conflict resolution carefully before merging.

…er (#3564)
Long live reads were ending silently at the server's 2-minute connection
cap: the max-duration abort reaches the client as a clean EOF on some
transport paths, and the reader read that as end-of-stream. On EOF it
now consults `streams.getInfo` and reconnects from the next chunk unless
the stream is done and every chunk up to the tail was delivered. A
failed metadata read trusts the EOF, so a transient blip can't fail a
healthy completion.
Tests added for the reconnect, verified-completion, metadata-failure,
and reconnect-budget paths.
---------
Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>
Signed-off-by: Alex Langenfeld <alexlangenfeld@gmail.com>
@github-actions
github-actionsBot requested review from a team and ijjk as code ownersAugust 17, 2026 18:09
@changeset-bot

changeset-botBot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b805ffc

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

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

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 Aug 17, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-nextjs-workflow-webpackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-astro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-express-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-fastify-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-hono-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nestjs-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nitro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nuxt-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-python-workflowErrorErrorv0Aug 24, 2026 10:43pm
workbench-sveltekit-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-tanstack-start-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-vite-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-docsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-swc-playgroundReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-tarballsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-webReadyReadyPreview, v0Aug 24, 2026 10:43pm

@github-actions

github-actionsBot commented Aug 24, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10990781177
✅ 💻 Local Development11980861284
✅ 📦 Local Production11980861284
✅ 🐘 Local Postgres11980861284
✅ 🪟 Windows10700107
❌ 🌍 Community Worlds831059197
✅ 📋 Other606036642
Total54891053815975

❌ Failed Tests

🌍 Community Worlds (105 failed)

redis (20 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

turso (85 failed):

  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01M0TZ249EDW8PQE5JAMB25GY8
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01M0TZ1CF3FA1W0RACCW7FAX13
  • promiseRaceWorkflow | wrun_01M0TZ1H5JRFW546YM77G916D4
  • promiseAnyWorkflow | wrun_01M0TZ1KG4RAD14RWAERWV2FH9
  • importedStepOnlyWorkflow | wrun_01M0TZ2MFV7PKXJPYZ953CKYGW
  • readableStreamWorkflow | wrun_01M0TZ1NRBZ4PA1TNF9JW5SRC0
  • hookWorkflow | wrun_01M0TZ21WXJVB8FQFCN0TNH8NB
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • webhookWorkflow | wrun_01M0TZ2DBCBD42E54Y2273DH8V
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • parallelSleepWorkflow | wrun_01M0TZ3ZN08CR6AQNFNNNDD4WF
  • sleepWinsRaceWorkflow | wrun_01M0TZ434H1PM85F458SDM7WSC
  • stepWinsRaceWorkflow | wrun_01M0TZ46JBBPTS1SECZ97P5N3A
  • nullByteWorkflow | wrun_01M0TZ4A0F6CQS4MN8JR1PHBR8
  • workflowAndStepMetadataWorkflow | wrun_01M0TZ4C9GPS71GJV5D4H7NBQZ
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01M0TZ6PRFDBXWAQQJMH82NK30
  • writableForwardedFromWorkflowWorkflow | wrun_01M0TZ72M6HXX790YM6HTETS41
  • writableForwardedFromStepWorkflow | wrun_01M0TZ75XE1ZD34S00WH51GBCZ
  • fetchWorkflow | wrun_01M0TZ78ERNRFDKAGGF89QC7GN
  • promiseRaceStressTestWorkflow | wrun_01M0TZ7BX3TDC8MPZWY34BVE8X
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01M0TZBCT3E9F17RYW4SYPYX67
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01M0TZC8KPDFEW8Q8BJC0Z7X90
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01M0TZCB6GRAVN6FQ9P1F66ETE
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01M0TZEJSY3WKWMGKB1GQSBQ02
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01M0TZF2P1SJREFDASAFTFZ1ER
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01M0TZFC92C46WQKPBKET3KVFM
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01M0TZFJ00P2KXYJ69YJKRDVKK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01M0TZFM89VAFK2KSJTJHW3N8Q
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01M0TZG3KY37FB4BYWQHCJANV0
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01M0TZG9H0TY1E3QS55H8J8SC5
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01M0TZGFA323VVC6Q9KB0M256N
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01M0TZGPFBEJJ30X2KSXDY618E
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01M0TZGW6VAMAZDZVFFV2NZCEY
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01M0TZH322P9V9BNQPNVJMJ0XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01M0TZH9Y5V3Z1XSQXRJ7JVWCE
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01M0TZHQ1M1D4T6X42VEAD7FEG
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01M0TZJ1MR3H4DR16A5V340M96
  • cancelRun - cancelling a running workflow | wrun_01M0TZJ8QQABCME15C7VH547HP
  • cancelRun via CLI - cancelling a running workflow | wrun_01M0TZJDTM1H1V6VWWENKVBSAG
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01M0TZJNM23EB1AWE95BANNR94
  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01M0TZK1DB3V212JPA9MZCKBY2
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01M0TZKAEQCH0DH0V0P5A8RQNN
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01M0TZKN21B36XCSY9YKDE6DZS
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01M0TZKW0B2D2KG78W0DKB6BT5
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01M0TZKY9R78NM11D32HBN875N
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9908
✅ example9908
✅ express9908
✅ fastify9908
✅ hono9908
✅ nextjs-turbopack10403
✅ nextjs-webpack10403
✅ nitro9908
✅ nuxt9908
✅ sveltekit9908
✅ vite9908
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev403
✅ redis-dev403
❌ redis68200
✅ turso-dev403
❌ turso3850
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable10106
✅ e2e-local-dev-tanstack-start-stable10106
✅ e2e-local-postgres-nest-stable10106
✅ e2e-local-postgres-tanstack-start-stable10106
✅ e2e-local-prod-nest-stable10106
✅ e2e-local-prod-tanstack-start-stable10106

📋 View full workflow run

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.

1 participant

@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

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader - #3588

Merged
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable
Aug 24, 2026
Merged

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader#3588
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #3564 to stable (backport job run).

AI recommendation: This is a data-loss/correctness fix: createReconnectingFramedStream trusted a clean EOF as end-of-stream, so long live reads were silently truncated when the server's max-duration abort arrived as a graceful close. The buggy code exists verbatim on stable (packages/core/src/serialization.ts:691, including the "Clean EOF — stream is truly complete" branch), and stable has an equivalent metadata API (World.getStreamInfo(name, runId) returning { tailIndex, done }) the fix can use, though the call site differs from main's world.streams.getInfo(runId, name) and will need adapting. Changeset is a patch to @workflow/core and the only other file is an accompanying test.

Merge conflicts were resolved by AI (opencode with anthropic/claude-opus-5). Please review the conflict resolution carefully before merging.

…er (#3564)
Long live reads were ending silently at the server's 2-minute connection
cap: the max-duration abort reaches the client as a clean EOF on some
transport paths, and the reader read that as end-of-stream. On EOF it
now consults `streams.getInfo` and reconnects from the next chunk unless
the stream is done and every chunk up to the tail was delivered. A
failed metadata read trusts the EOF, so a transient blip can't fail a
healthy completion.
Tests added for the reconnect, verified-completion, metadata-failure,
and reconnect-budget paths.
---------
Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>
Signed-off-by: Alex Langenfeld <alexlangenfeld@gmail.com>
@github-actions
github-actionsBot requested review from a team and ijjk as code ownersAugust 17, 2026 18:09
@changeset-bot

changeset-botBot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b805ffc

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

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

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 Aug 17, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-nextjs-workflow-webpackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-astro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-express-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-fastify-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-hono-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nestjs-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nitro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nuxt-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-python-workflowErrorErrorv0Aug 24, 2026 10:43pm
workbench-sveltekit-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-tanstack-start-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-vite-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-docsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-swc-playgroundReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-tarballsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-webReadyReadyPreview, v0Aug 24, 2026 10:43pm

@github-actions

github-actionsBot commented Aug 24, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10990781177
✅ 💻 Local Development11980861284
✅ 📦 Local Production11980861284
✅ 🐘 Local Postgres11980861284
✅ 🪟 Windows10700107
❌ 🌍 Community Worlds831059197
✅ 📋 Other606036642
Total54891053815975

❌ Failed Tests

🌍 Community Worlds (105 failed)

redis (20 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

turso (85 failed):

  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01M0TZ249EDW8PQE5JAMB25GY8
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01M0TZ1CF3FA1W0RACCW7FAX13
  • promiseRaceWorkflow | wrun_01M0TZ1H5JRFW546YM77G916D4
  • promiseAnyWorkflow | wrun_01M0TZ1KG4RAD14RWAERWV2FH9
  • importedStepOnlyWorkflow | wrun_01M0TZ2MFV7PKXJPYZ953CKYGW
  • readableStreamWorkflow | wrun_01M0TZ1NRBZ4PA1TNF9JW5SRC0
  • hookWorkflow | wrun_01M0TZ21WXJVB8FQFCN0TNH8NB
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • webhookWorkflow | wrun_01M0TZ2DBCBD42E54Y2273DH8V
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • parallelSleepWorkflow | wrun_01M0TZ3ZN08CR6AQNFNNNDD4WF
  • sleepWinsRaceWorkflow | wrun_01M0TZ434H1PM85F458SDM7WSC
  • stepWinsRaceWorkflow | wrun_01M0TZ46JBBPTS1SECZ97P5N3A
  • nullByteWorkflow | wrun_01M0TZ4A0F6CQS4MN8JR1PHBR8
  • workflowAndStepMetadataWorkflow | wrun_01M0TZ4C9GPS71GJV5D4H7NBQZ
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01M0TZ6PRFDBXWAQQJMH82NK30
  • writableForwardedFromWorkflowWorkflow | wrun_01M0TZ72M6HXX790YM6HTETS41
  • writableForwardedFromStepWorkflow | wrun_01M0TZ75XE1ZD34S00WH51GBCZ
  • fetchWorkflow | wrun_01M0TZ78ERNRFDKAGGF89QC7GN
  • promiseRaceStressTestWorkflow | wrun_01M0TZ7BX3TDC8MPZWY34BVE8X
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01M0TZBCT3E9F17RYW4SYPYX67
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01M0TZC8KPDFEW8Q8BJC0Z7X90
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01M0TZCB6GRAVN6FQ9P1F66ETE
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01M0TZEJSY3WKWMGKB1GQSBQ02
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01M0TZF2P1SJREFDASAFTFZ1ER
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01M0TZFC92C46WQKPBKET3KVFM
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01M0TZFJ00P2KXYJ69YJKRDVKK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01M0TZFM89VAFK2KSJTJHW3N8Q
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01M0TZG3KY37FB4BYWQHCJANV0
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01M0TZG9H0TY1E3QS55H8J8SC5
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01M0TZGFA323VVC6Q9KB0M256N
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01M0TZGPFBEJJ30X2KSXDY618E
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01M0TZGW6VAMAZDZVFFV2NZCEY
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01M0TZH322P9V9BNQPNVJMJ0XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01M0TZH9Y5V3Z1XSQXRJ7JVWCE
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01M0TZHQ1M1D4T6X42VEAD7FEG
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01M0TZJ1MR3H4DR16A5V340M96
  • cancelRun - cancelling a running workflow | wrun_01M0TZJ8QQABCME15C7VH547HP
  • cancelRun via CLI - cancelling a running workflow | wrun_01M0TZJDTM1H1V6VWWENKVBSAG
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01M0TZJNM23EB1AWE95BANNR94
  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01M0TZK1DB3V212JPA9MZCKBY2
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01M0TZKAEQCH0DH0V0P5A8RQNN
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01M0TZKN21B36XCSY9YKDE6DZS
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01M0TZKW0B2D2KG78W0DKB6BT5
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01M0TZKY9R78NM11D32HBN875N
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9908
✅ example9908
✅ express9908
✅ fastify9908
✅ hono9908
✅ nextjs-turbopack10403
✅ nextjs-webpack10403
✅ nitro9908
✅ nuxt9908
✅ sveltekit9908
✅ vite9908
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev403
✅ redis-dev403
❌ redis68200
✅ turso-dev403
❌ turso3850
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable10106
✅ e2e-local-dev-tanstack-start-stable10106
✅ e2e-local-postgres-nest-stable10106
✅ e2e-local-postgres-tanstack-start-stable10106
✅ e2e-local-prod-nest-stable10106
✅ e2e-local-prod-tanstack-start-stable10106

📋 View full workflow run

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.

1 participant

@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

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader - #3588

Merged
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable
Aug 24, 2026
Merged

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader#3588
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #3564 to stable (backport job run).

AI recommendation: This is a data-loss/correctness fix: createReconnectingFramedStream trusted a clean EOF as end-of-stream, so long live reads were silently truncated when the server's max-duration abort arrived as a graceful close. The buggy code exists verbatim on stable (packages/core/src/serialization.ts:691, including the "Clean EOF — stream is truly complete" branch), and stable has an equivalent metadata API (World.getStreamInfo(name, runId) returning { tailIndex, done }) the fix can use, though the call site differs from main's world.streams.getInfo(runId, name) and will need adapting. Changeset is a patch to @workflow/core and the only other file is an accompanying test.

Merge conflicts were resolved by AI (opencode with anthropic/claude-opus-5). Please review the conflict resolution carefully before merging.

…er (#3564)
Long live reads were ending silently at the server's 2-minute connection
cap: the max-duration abort reaches the client as a clean EOF on some
transport paths, and the reader read that as end-of-stream. On EOF it
now consults `streams.getInfo` and reconnects from the next chunk unless
the stream is done and every chunk up to the tail was delivered. A
failed metadata read trusts the EOF, so a transient blip can't fail a
healthy completion.
Tests added for the reconnect, verified-completion, metadata-failure,
and reconnect-budget paths.
---------
Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>
Signed-off-by: Alex Langenfeld <alexlangenfeld@gmail.com>
@github-actions
github-actionsBot requested review from a team and ijjk as code ownersAugust 17, 2026 18:09
@changeset-bot

changeset-botBot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b805ffc

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

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

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 Aug 17, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-nextjs-workflow-webpackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-astro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-express-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-fastify-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-hono-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nestjs-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nitro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nuxt-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-python-workflowErrorErrorv0Aug 24, 2026 10:43pm
workbench-sveltekit-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-tanstack-start-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-vite-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-docsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-swc-playgroundReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-tarballsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-webReadyReadyPreview, v0Aug 24, 2026 10:43pm

@github-actions

github-actionsBot commented Aug 24, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10990781177
✅ 💻 Local Development11980861284
✅ 📦 Local Production11980861284
✅ 🐘 Local Postgres11980861284
✅ 🪟 Windows10700107
❌ 🌍 Community Worlds831059197
✅ 📋 Other606036642
Total54891053815975

❌ Failed Tests

🌍 Community Worlds (105 failed)

redis (20 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

turso (85 failed):

  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01M0TZ249EDW8PQE5JAMB25GY8
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01M0TZ1CF3FA1W0RACCW7FAX13
  • promiseRaceWorkflow | wrun_01M0TZ1H5JRFW546YM77G916D4
  • promiseAnyWorkflow | wrun_01M0TZ1KG4RAD14RWAERWV2FH9
  • importedStepOnlyWorkflow | wrun_01M0TZ2MFV7PKXJPYZ953CKYGW
  • readableStreamWorkflow | wrun_01M0TZ1NRBZ4PA1TNF9JW5SRC0
  • hookWorkflow | wrun_01M0TZ21WXJVB8FQFCN0TNH8NB
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • webhookWorkflow | wrun_01M0TZ2DBCBD42E54Y2273DH8V
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • parallelSleepWorkflow | wrun_01M0TZ3ZN08CR6AQNFNNNDD4WF
  • sleepWinsRaceWorkflow | wrun_01M0TZ434H1PM85F458SDM7WSC
  • stepWinsRaceWorkflow | wrun_01M0TZ46JBBPTS1SECZ97P5N3A
  • nullByteWorkflow | wrun_01M0TZ4A0F6CQS4MN8JR1PHBR8
  • workflowAndStepMetadataWorkflow | wrun_01M0TZ4C9GPS71GJV5D4H7NBQZ
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01M0TZ6PRFDBXWAQQJMH82NK30
  • writableForwardedFromWorkflowWorkflow | wrun_01M0TZ72M6HXX790YM6HTETS41
  • writableForwardedFromStepWorkflow | wrun_01M0TZ75XE1ZD34S00WH51GBCZ
  • fetchWorkflow | wrun_01M0TZ78ERNRFDKAGGF89QC7GN
  • promiseRaceStressTestWorkflow | wrun_01M0TZ7BX3TDC8MPZWY34BVE8X
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01M0TZBCT3E9F17RYW4SYPYX67
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01M0TZC8KPDFEW8Q8BJC0Z7X90
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01M0TZCB6GRAVN6FQ9P1F66ETE
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01M0TZEJSY3WKWMGKB1GQSBQ02
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01M0TZF2P1SJREFDASAFTFZ1ER
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01M0TZFC92C46WQKPBKET3KVFM
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01M0TZFJ00P2KXYJ69YJKRDVKK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01M0TZFM89VAFK2KSJTJHW3N8Q
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01M0TZG3KY37FB4BYWQHCJANV0
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01M0TZG9H0TY1E3QS55H8J8SC5
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01M0TZGFA323VVC6Q9KB0M256N
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01M0TZGPFBEJJ30X2KSXDY618E
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01M0TZGW6VAMAZDZVFFV2NZCEY
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01M0TZH322P9V9BNQPNVJMJ0XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01M0TZH9Y5V3Z1XSQXRJ7JVWCE
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01M0TZHQ1M1D4T6X42VEAD7FEG
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01M0TZJ1MR3H4DR16A5V340M96
  • cancelRun - cancelling a running workflow | wrun_01M0TZJ8QQABCME15C7VH547HP
  • cancelRun via CLI - cancelling a running workflow | wrun_01M0TZJDTM1H1V6VWWENKVBSAG
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01M0TZJNM23EB1AWE95BANNR94
  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01M0TZK1DB3V212JPA9MZCKBY2
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01M0TZKAEQCH0DH0V0P5A8RQNN
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01M0TZKN21B36XCSY9YKDE6DZS
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01M0TZKW0B2D2KG78W0DKB6BT5
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01M0TZKY9R78NM11D32HBN875N
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9908
✅ example9908
✅ express9908
✅ fastify9908
✅ hono9908
✅ nextjs-turbopack10403
✅ nextjs-webpack10403
✅ nitro9908
✅ nuxt9908
✅ sveltekit9908
✅ vite9908
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev403
✅ redis-dev403
❌ redis68200
✅ turso-dev403
❌ turso3850
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable10106
✅ e2e-local-dev-tanstack-start-stable10106
✅ e2e-local-postgres-nest-stable10106
✅ e2e-local-postgres-tanstack-start-stable10106
✅ e2e-local-prod-nest-stable10106
✅ e2e-local-prod-tanstack-start-stable10106

📋 View full workflow run

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.

1 participant

@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

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader - #3588

Merged
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable
Aug 24, 2026
Merged

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader#3588
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #3564 to stable (backport job run).

AI recommendation: This is a data-loss/correctness fix: createReconnectingFramedStream trusted a clean EOF as end-of-stream, so long live reads were silently truncated when the server's max-duration abort arrived as a graceful close. The buggy code exists verbatim on stable (packages/core/src/serialization.ts:691, including the "Clean EOF — stream is truly complete" branch), and stable has an equivalent metadata API (World.getStreamInfo(name, runId) returning { tailIndex, done }) the fix can use, though the call site differs from main's world.streams.getInfo(runId, name) and will need adapting. Changeset is a patch to @workflow/core and the only other file is an accompanying test.

Merge conflicts were resolved by AI (opencode with anthropic/claude-opus-5). Please review the conflict resolution carefully before merging.

…er (#3564)
Long live reads were ending silently at the server's 2-minute connection
cap: the max-duration abort reaches the client as a clean EOF on some
transport paths, and the reader read that as end-of-stream. On EOF it
now consults `streams.getInfo` and reconnects from the next chunk unless
the stream is done and every chunk up to the tail was delivered. A
failed metadata read trusts the EOF, so a transient blip can't fail a
healthy completion.
Tests added for the reconnect, verified-completion, metadata-failure,
and reconnect-budget paths.
---------
Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>
Signed-off-by: Alex Langenfeld <alexlangenfeld@gmail.com>
@github-actions
github-actionsBot requested review from a team and ijjk as code ownersAugust 17, 2026 18:09
@changeset-bot

changeset-botBot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b805ffc

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

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

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 Aug 17, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-nextjs-workflow-webpackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-astro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-express-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-fastify-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-hono-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nestjs-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nitro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nuxt-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-python-workflowErrorErrorv0Aug 24, 2026 10:43pm
workbench-sveltekit-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-tanstack-start-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-vite-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-docsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-swc-playgroundReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-tarballsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-webReadyReadyPreview, v0Aug 24, 2026 10:43pm

@github-actions

github-actionsBot commented Aug 24, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10990781177
✅ 💻 Local Development11980861284
✅ 📦 Local Production11980861284
✅ 🐘 Local Postgres11980861284
✅ 🪟 Windows10700107
❌ 🌍 Community Worlds831059197
✅ 📋 Other606036642
Total54891053815975

❌ Failed Tests

🌍 Community Worlds (105 failed)

redis (20 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

turso (85 failed):

  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01M0TZ249EDW8PQE5JAMB25GY8
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01M0TZ1CF3FA1W0RACCW7FAX13
  • promiseRaceWorkflow | wrun_01M0TZ1H5JRFW546YM77G916D4
  • promiseAnyWorkflow | wrun_01M0TZ1KG4RAD14RWAERWV2FH9
  • importedStepOnlyWorkflow | wrun_01M0TZ2MFV7PKXJPYZ953CKYGW
  • readableStreamWorkflow | wrun_01M0TZ1NRBZ4PA1TNF9JW5SRC0
  • hookWorkflow | wrun_01M0TZ21WXJVB8FQFCN0TNH8NB
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • webhookWorkflow | wrun_01M0TZ2DBCBD42E54Y2273DH8V
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • parallelSleepWorkflow | wrun_01M0TZ3ZN08CR6AQNFNNNDD4WF
  • sleepWinsRaceWorkflow | wrun_01M0TZ434H1PM85F458SDM7WSC
  • stepWinsRaceWorkflow | wrun_01M0TZ46JBBPTS1SECZ97P5N3A
  • nullByteWorkflow | wrun_01M0TZ4A0F6CQS4MN8JR1PHBR8
  • workflowAndStepMetadataWorkflow | wrun_01M0TZ4C9GPS71GJV5D4H7NBQZ
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01M0TZ6PRFDBXWAQQJMH82NK30
  • writableForwardedFromWorkflowWorkflow | wrun_01M0TZ72M6HXX790YM6HTETS41
  • writableForwardedFromStepWorkflow | wrun_01M0TZ75XE1ZD34S00WH51GBCZ
  • fetchWorkflow | wrun_01M0TZ78ERNRFDKAGGF89QC7GN
  • promiseRaceStressTestWorkflow | wrun_01M0TZ7BX3TDC8MPZWY34BVE8X
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01M0TZBCT3E9F17RYW4SYPYX67
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01M0TZC8KPDFEW8Q8BJC0Z7X90
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01M0TZCB6GRAVN6FQ9P1F66ETE
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01M0TZEJSY3WKWMGKB1GQSBQ02
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01M0TZF2P1SJREFDASAFTFZ1ER
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01M0TZFC92C46WQKPBKET3KVFM
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01M0TZFJ00P2KXYJ69YJKRDVKK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01M0TZFM89VAFK2KSJTJHW3N8Q
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01M0TZG3KY37FB4BYWQHCJANV0
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01M0TZG9H0TY1E3QS55H8J8SC5
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01M0TZGFA323VVC6Q9KB0M256N
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01M0TZGPFBEJJ30X2KSXDY618E
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01M0TZGW6VAMAZDZVFFV2NZCEY
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01M0TZH322P9V9BNQPNVJMJ0XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01M0TZH9Y5V3Z1XSQXRJ7JVWCE
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01M0TZHQ1M1D4T6X42VEAD7FEG
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01M0TZJ1MR3H4DR16A5V340M96
  • cancelRun - cancelling a running workflow | wrun_01M0TZJ8QQABCME15C7VH547HP
  • cancelRun via CLI - cancelling a running workflow | wrun_01M0TZJDTM1H1V6VWWENKVBSAG
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01M0TZJNM23EB1AWE95BANNR94
  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01M0TZK1DB3V212JPA9MZCKBY2
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01M0TZKAEQCH0DH0V0P5A8RQNN
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01M0TZKN21B36XCSY9YKDE6DZS
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01M0TZKW0B2D2KG78W0DKB6BT5
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01M0TZKY9R78NM11D32HBN875N
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9908
✅ example9908
✅ express9908
✅ fastify9908
✅ hono9908
✅ nextjs-turbopack10403
✅ nextjs-webpack10403
✅ nitro9908
✅ nuxt9908
✅ sveltekit9908
✅ vite9908
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev403
✅ redis-dev403
❌ redis68200
✅ turso-dev403
❌ turso3850
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable10106
✅ e2e-local-dev-tanstack-start-stable10106
✅ e2e-local-postgres-nest-stable10106
✅ e2e-local-postgres-tanstack-start-stable10106
✅ e2e-local-prod-nest-stable10106
✅ e2e-local-prod-tanstack-start-stable10106

📋 View full workflow run

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.

1 participant

@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

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader - #3588

Merged
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable
Aug 24, 2026
Merged

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader#3588
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #3564 to stable (backport job run).

AI recommendation: This is a data-loss/correctness fix: createReconnectingFramedStream trusted a clean EOF as end-of-stream, so long live reads were silently truncated when the server's max-duration abort arrived as a graceful close. The buggy code exists verbatim on stable (packages/core/src/serialization.ts:691, including the "Clean EOF — stream is truly complete" branch), and stable has an equivalent metadata API (World.getStreamInfo(name, runId) returning { tailIndex, done }) the fix can use, though the call site differs from main's world.streams.getInfo(runId, name) and will need adapting. Changeset is a patch to @workflow/core and the only other file is an accompanying test.

Merge conflicts were resolved by AI (opencode with anthropic/claude-opus-5). Please review the conflict resolution carefully before merging.

…er (#3564)
Long live reads were ending silently at the server's 2-minute connection
cap: the max-duration abort reaches the client as a clean EOF on some
transport paths, and the reader read that as end-of-stream. On EOF it
now consults `streams.getInfo` and reconnects from the next chunk unless
the stream is done and every chunk up to the tail was delivered. A
failed metadata read trusts the EOF, so a transient blip can't fail a
healthy completion.
Tests added for the reconnect, verified-completion, metadata-failure,
and reconnect-budget paths.
---------
Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>
Signed-off-by: Alex Langenfeld <alexlangenfeld@gmail.com>
@github-actions
github-actionsBot requested review from a team and ijjk as code ownersAugust 17, 2026 18:09
@changeset-bot

changeset-botBot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b805ffc

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

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

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 Aug 17, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-nextjs-workflow-webpackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-astro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-express-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-fastify-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-hono-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nestjs-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nitro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nuxt-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-python-workflowErrorErrorv0Aug 24, 2026 10:43pm
workbench-sveltekit-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-tanstack-start-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-vite-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-docsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-swc-playgroundReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-tarballsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-webReadyReadyPreview, v0Aug 24, 2026 10:43pm

@github-actions

github-actionsBot commented Aug 24, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10990781177
✅ 💻 Local Development11980861284
✅ 📦 Local Production11980861284
✅ 🐘 Local Postgres11980861284
✅ 🪟 Windows10700107
❌ 🌍 Community Worlds831059197
✅ 📋 Other606036642
Total54891053815975

❌ Failed Tests

🌍 Community Worlds (105 failed)

redis (20 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

turso (85 failed):

  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01M0TZ249EDW8PQE5JAMB25GY8
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01M0TZ1CF3FA1W0RACCW7FAX13
  • promiseRaceWorkflow | wrun_01M0TZ1H5JRFW546YM77G916D4
  • promiseAnyWorkflow | wrun_01M0TZ1KG4RAD14RWAERWV2FH9
  • importedStepOnlyWorkflow | wrun_01M0TZ2MFV7PKXJPYZ953CKYGW
  • readableStreamWorkflow | wrun_01M0TZ1NRBZ4PA1TNF9JW5SRC0
  • hookWorkflow | wrun_01M0TZ21WXJVB8FQFCN0TNH8NB
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • webhookWorkflow | wrun_01M0TZ2DBCBD42E54Y2273DH8V
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • parallelSleepWorkflow | wrun_01M0TZ3ZN08CR6AQNFNNNDD4WF
  • sleepWinsRaceWorkflow | wrun_01M0TZ434H1PM85F458SDM7WSC
  • stepWinsRaceWorkflow | wrun_01M0TZ46JBBPTS1SECZ97P5N3A
  • nullByteWorkflow | wrun_01M0TZ4A0F6CQS4MN8JR1PHBR8
  • workflowAndStepMetadataWorkflow | wrun_01M0TZ4C9GPS71GJV5D4H7NBQZ
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01M0TZ6PRFDBXWAQQJMH82NK30
  • writableForwardedFromWorkflowWorkflow | wrun_01M0TZ72M6HXX790YM6HTETS41
  • writableForwardedFromStepWorkflow | wrun_01M0TZ75XE1ZD34S00WH51GBCZ
  • fetchWorkflow | wrun_01M0TZ78ERNRFDKAGGF89QC7GN
  • promiseRaceStressTestWorkflow | wrun_01M0TZ7BX3TDC8MPZWY34BVE8X
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01M0TZBCT3E9F17RYW4SYPYX67
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01M0TZC8KPDFEW8Q8BJC0Z7X90
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01M0TZCB6GRAVN6FQ9P1F66ETE
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01M0TZEJSY3WKWMGKB1GQSBQ02
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01M0TZF2P1SJREFDASAFTFZ1ER
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01M0TZFC92C46WQKPBKET3KVFM
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01M0TZFJ00P2KXYJ69YJKRDVKK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01M0TZFM89VAFK2KSJTJHW3N8Q
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01M0TZG3KY37FB4BYWQHCJANV0
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01M0TZG9H0TY1E3QS55H8J8SC5
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01M0TZGFA323VVC6Q9KB0M256N
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01M0TZGPFBEJJ30X2KSXDY618E
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01M0TZGW6VAMAZDZVFFV2NZCEY
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01M0TZH322P9V9BNQPNVJMJ0XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01M0TZH9Y5V3Z1XSQXRJ7JVWCE
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01M0TZHQ1M1D4T6X42VEAD7FEG
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01M0TZJ1MR3H4DR16A5V340M96
  • cancelRun - cancelling a running workflow | wrun_01M0TZJ8QQABCME15C7VH547HP
  • cancelRun via CLI - cancelling a running workflow | wrun_01M0TZJDTM1H1V6VWWENKVBSAG
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01M0TZJNM23EB1AWE95BANNR94
  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01M0TZK1DB3V212JPA9MZCKBY2
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01M0TZKAEQCH0DH0V0P5A8RQNN
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01M0TZKN21B36XCSY9YKDE6DZS
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01M0TZKW0B2D2KG78W0DKB6BT5
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01M0TZKY9R78NM11D32HBN875N
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9908
✅ example9908
✅ express9908
✅ fastify9908
✅ hono9908
✅ nextjs-turbopack10403
✅ nextjs-webpack10403
✅ nitro9908
✅ nuxt9908
✅ sveltekit9908
✅ vite9908
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev403
✅ redis-dev403
❌ redis68200
✅ turso-dev403
❌ turso3850
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable10106
✅ e2e-local-dev-tanstack-start-stable10106
✅ e2e-local-postgres-nest-stable10106
✅ e2e-local-postgres-tanstack-start-stable10106
✅ e2e-local-prod-nest-stable10106
✅ e2e-local-prod-tanstack-start-stable10106

📋 View full workflow run

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.

1 participant

@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

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader - #3588

Merged
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable
Aug 24, 2026
Merged

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader#3588
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #3564 to stable (backport job run).

AI recommendation: This is a data-loss/correctness fix: createReconnectingFramedStream trusted a clean EOF as end-of-stream, so long live reads were silently truncated when the server's max-duration abort arrived as a graceful close. The buggy code exists verbatim on stable (packages/core/src/serialization.ts:691, including the "Clean EOF — stream is truly complete" branch), and stable has an equivalent metadata API (World.getStreamInfo(name, runId) returning { tailIndex, done }) the fix can use, though the call site differs from main's world.streams.getInfo(runId, name) and will need adapting. Changeset is a patch to @workflow/core and the only other file is an accompanying test.

Merge conflicts were resolved by AI (opencode with anthropic/claude-opus-5). Please review the conflict resolution carefully before merging.

…er (#3564)
Long live reads were ending silently at the server's 2-minute connection
cap: the max-duration abort reaches the client as a clean EOF on some
transport paths, and the reader read that as end-of-stream. On EOF it
now consults `streams.getInfo` and reconnects from the next chunk unless
the stream is done and every chunk up to the tail was delivered. A
failed metadata read trusts the EOF, so a transient blip can't fail a
healthy completion.
Tests added for the reconnect, verified-completion, metadata-failure,
and reconnect-budget paths.
---------
Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>
Signed-off-by: Alex Langenfeld <alexlangenfeld@gmail.com>
@github-actions
github-actionsBot requested review from a team and ijjk as code ownersAugust 17, 2026 18:09
@changeset-bot

changeset-botBot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b805ffc

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

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

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 Aug 17, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-nextjs-workflow-webpackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-astro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-express-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-fastify-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-hono-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nestjs-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nitro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nuxt-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-python-workflowErrorErrorv0Aug 24, 2026 10:43pm
workbench-sveltekit-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-tanstack-start-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-vite-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-docsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-swc-playgroundReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-tarballsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-webReadyReadyPreview, v0Aug 24, 2026 10:43pm

@github-actions

github-actionsBot commented Aug 24, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10990781177
✅ 💻 Local Development11980861284
✅ 📦 Local Production11980861284
✅ 🐘 Local Postgres11980861284
✅ 🪟 Windows10700107
❌ 🌍 Community Worlds831059197
✅ 📋 Other606036642
Total54891053815975

❌ Failed Tests

🌍 Community Worlds (105 failed)

redis (20 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

turso (85 failed):

  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01M0TZ249EDW8PQE5JAMB25GY8
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01M0TZ1CF3FA1W0RACCW7FAX13
  • promiseRaceWorkflow | wrun_01M0TZ1H5JRFW546YM77G916D4
  • promiseAnyWorkflow | wrun_01M0TZ1KG4RAD14RWAERWV2FH9
  • importedStepOnlyWorkflow | wrun_01M0TZ2MFV7PKXJPYZ953CKYGW
  • readableStreamWorkflow | wrun_01M0TZ1NRBZ4PA1TNF9JW5SRC0
  • hookWorkflow | wrun_01M0TZ21WXJVB8FQFCN0TNH8NB
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • webhookWorkflow | wrun_01M0TZ2DBCBD42E54Y2273DH8V
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • parallelSleepWorkflow | wrun_01M0TZ3ZN08CR6AQNFNNNDD4WF
  • sleepWinsRaceWorkflow | wrun_01M0TZ434H1PM85F458SDM7WSC
  • stepWinsRaceWorkflow | wrun_01M0TZ46JBBPTS1SECZ97P5N3A
  • nullByteWorkflow | wrun_01M0TZ4A0F6CQS4MN8JR1PHBR8
  • workflowAndStepMetadataWorkflow | wrun_01M0TZ4C9GPS71GJV5D4H7NBQZ
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01M0TZ6PRFDBXWAQQJMH82NK30
  • writableForwardedFromWorkflowWorkflow | wrun_01M0TZ72M6HXX790YM6HTETS41
  • writableForwardedFromStepWorkflow | wrun_01M0TZ75XE1ZD34S00WH51GBCZ
  • fetchWorkflow | wrun_01M0TZ78ERNRFDKAGGF89QC7GN
  • promiseRaceStressTestWorkflow | wrun_01M0TZ7BX3TDC8MPZWY34BVE8X
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01M0TZBCT3E9F17RYW4SYPYX67
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01M0TZC8KPDFEW8Q8BJC0Z7X90
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01M0TZCB6GRAVN6FQ9P1F66ETE
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01M0TZEJSY3WKWMGKB1GQSBQ02
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01M0TZF2P1SJREFDASAFTFZ1ER
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01M0TZFC92C46WQKPBKET3KVFM
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01M0TZFJ00P2KXYJ69YJKRDVKK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01M0TZFM89VAFK2KSJTJHW3N8Q
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01M0TZG3KY37FB4BYWQHCJANV0
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01M0TZG9H0TY1E3QS55H8J8SC5
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01M0TZGFA323VVC6Q9KB0M256N
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01M0TZGPFBEJJ30X2KSXDY618E
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01M0TZGW6VAMAZDZVFFV2NZCEY
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01M0TZH322P9V9BNQPNVJMJ0XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01M0TZH9Y5V3Z1XSQXRJ7JVWCE
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01M0TZHQ1M1D4T6X42VEAD7FEG
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01M0TZJ1MR3H4DR16A5V340M96
  • cancelRun - cancelling a running workflow | wrun_01M0TZJ8QQABCME15C7VH547HP
  • cancelRun via CLI - cancelling a running workflow | wrun_01M0TZJDTM1H1V6VWWENKVBSAG
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01M0TZJNM23EB1AWE95BANNR94
  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01M0TZK1DB3V212JPA9MZCKBY2
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01M0TZKAEQCH0DH0V0P5A8RQNN
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01M0TZKN21B36XCSY9YKDE6DZS
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01M0TZKW0B2D2KG78W0DKB6BT5
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01M0TZKY9R78NM11D32HBN875N
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9908
✅ example9908
✅ express9908
✅ fastify9908
✅ hono9908
✅ nextjs-turbopack10403
✅ nextjs-webpack10403
✅ nitro9908
✅ nuxt9908
✅ sveltekit9908
✅ vite9908
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev403
✅ redis-dev403
❌ redis68200
✅ turso-dev403
❌ turso3850
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable10106
✅ e2e-local-dev-tanstack-start-stable10106
✅ e2e-local-postgres-nest-stable10106
✅ e2e-local-postgres-tanstack-start-stable10106
✅ e2e-local-prod-nest-stable10106
✅ e2e-local-prod-tanstack-start-stable10106

📋 View full workflow run

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.

1 participant

@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

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader - #3588

Merged
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable
Aug 24, 2026
Merged

Backport #3564: Verify stream completion on clean EOF in the reconnecting framed reader#3588
pranaygp merged 2 commits into
stablefrom
backport/pr-3564-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #3564 to stable (backport job run).

AI recommendation: This is a data-loss/correctness fix: createReconnectingFramedStream trusted a clean EOF as end-of-stream, so long live reads were silently truncated when the server's max-duration abort arrived as a graceful close. The buggy code exists verbatim on stable (packages/core/src/serialization.ts:691, including the "Clean EOF — stream is truly complete" branch), and stable has an equivalent metadata API (World.getStreamInfo(name, runId) returning { tailIndex, done }) the fix can use, though the call site differs from main's world.streams.getInfo(runId, name) and will need adapting. Changeset is a patch to @workflow/core and the only other file is an accompanying test.

Merge conflicts were resolved by AI (opencode with anthropic/claude-opus-5). Please review the conflict resolution carefully before merging.

…er (#3564)
Long live reads were ending silently at the server's 2-minute connection
cap: the max-duration abort reaches the client as a clean EOF on some
transport paths, and the reader read that as end-of-stream. On EOF it
now consults `streams.getInfo` and reconnects from the next chunk unless
the stream is done and every chunk up to the tail was delivered. A
failed metadata read trusts the EOF, so a transient blip can't fail a
healthy completion.
Tests added for the reconnect, verified-completion, metadata-failure,
and reconnect-budget paths.
---------
Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>
Signed-off-by: Alex Langenfeld <alexlangenfeld@gmail.com>
@github-actions
github-actionsBot requested review from a team and ijjk as code ownersAugust 17, 2026 18:09
@changeset-bot

changeset-botBot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b805ffc

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

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

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 Aug 17, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-nextjs-workflow-webpackReadyReadyPreview, v0Aug 24, 2026 10:43pm
example-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-astro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-express-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-fastify-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-hono-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nestjs-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nitro-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-nuxt-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-python-workflowErrorErrorv0Aug 24, 2026 10:43pm
workbench-sveltekit-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-tanstack-start-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workbench-vite-workflowReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-docsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-swc-playgroundReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-tarballsReadyReadyPreview, v0Aug 24, 2026 10:43pm
workflow-webReadyReadyPreview, v0Aug 24, 2026 10:43pm

@github-actions

github-actionsBot commented Aug 24, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10990781177
✅ 💻 Local Development11980861284
✅ 📦 Local Production11980861284
✅ 🐘 Local Postgres11980861284
✅ 🪟 Windows10700107
❌ 🌍 Community Worlds831059197
✅ 📋 Other606036642
Total54891053815975

❌ Failed Tests

🌍 Community Worlds (105 failed)

redis (20 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

turso (85 failed):

  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • addTenWorkflow | wrun_01M0TZ14ABBQ9X86F0RCJ9DKNJ
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01M0TZ249EDW8PQE5JAMB25GY8
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01M0TZ1CF3FA1W0RACCW7FAX13
  • promiseRaceWorkflow | wrun_01M0TZ1H5JRFW546YM77G916D4
  • promiseAnyWorkflow | wrun_01M0TZ1KG4RAD14RWAERWV2FH9
  • importedStepOnlyWorkflow | wrun_01M0TZ2MFV7PKXJPYZ953CKYGW
  • readableStreamWorkflow | wrun_01M0TZ1NRBZ4PA1TNF9JW5SRC0
  • hookWorkflow | wrun_01M0TZ21WXJVB8FQFCN0TNH8NB
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M0TZ293WHFSRJ26GGK9ZRXPR
  • webhookWorkflow | wrun_01M0TZ2DBCBD42E54Y2273DH8V
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M0TZ2H1CJ8XNTWMF2S796PAK
  • sleepingWorkflow | wrun_01M0TZ3G3GKG48J1K4ME4XGQ7X
  • parallelSleepWorkflow | wrun_01M0TZ3ZN08CR6AQNFNNNDD4WF
  • sleepWinsRaceWorkflow | wrun_01M0TZ434H1PM85F458SDM7WSC
  • stepWinsRaceWorkflow | wrun_01M0TZ46JBBPTS1SECZ97P5N3A
  • nullByteWorkflow | wrun_01M0TZ4A0F6CQS4MN8JR1PHBR8
  • workflowAndStepMetadataWorkflow | wrun_01M0TZ4C9GPS71GJV5D4H7NBQZ
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01M0TZ6PRFDBXWAQQJMH82NK30
  • writableForwardedFromWorkflowWorkflow | wrun_01M0TZ72M6HXX790YM6HTETS41
  • writableForwardedFromStepWorkflow | wrun_01M0TZ75XE1ZD34S00WH51GBCZ
  • fetchWorkflow | wrun_01M0TZ78ERNRFDKAGGF89QC7GN
  • promiseRaceStressTestWorkflow | wrun_01M0TZ7BX3TDC8MPZWY34BVE8X
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01M0TZBCT3E9F17RYW4SYPYX67
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M0TZBS9F53CHXXZTXJC3SGEE
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M0TZC6318VBM0KE349KW6RRR
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01M0TZC8KPDFEW8Q8BJC0Z7X90
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01M0TZCB6GRAVN6FQ9P1F66ETE
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M0TZCDN9MHTMAD1THHTJ7JSJ
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M0TZCTRQGQD5TSEC1BJ5Q7T9
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M0TZDMNRW4J42PSGDMAHWBBS
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M0TZDR9K95QTBBK6K9DQDKK4
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M0TZDYCMSJEA82ANRGHYR3QH
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M0TZE2702A93V5RBTX8SM7WM
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M0TZEB952M20J7VD2F90ZBPF
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01M0TZEJSY3WKWMGKB1GQSBQ02
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01M0TZF2P1SJREFDASAFTFZ1ER
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01M0TZFC92C46WQKPBKET3KVFM
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01M0TZFJ00P2KXYJ69YJKRDVKK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01M0TZFM89VAFK2KSJTJHW3N8Q
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01M0TZG3KY37FB4BYWQHCJANV0
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01M0TZG9H0TY1E3QS55H8J8SC5
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01M0TZGFA323VVC6Q9KB0M256N
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01M0TZGPFBEJJ30X2KSXDY618E
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01M0TZGW6VAMAZDZVFFV2NZCEY
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01M0TZH322P9V9BNQPNVJMJ0XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01M0TZH9Y5V3Z1XSQXRJ7JVWCE
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01M0TZHQ1M1D4T6X42VEAD7FEG
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01M0TZJ1MR3H4DR16A5V340M96
  • cancelRun - cancelling a running workflow | wrun_01M0TZJ8QQABCME15C7VH547HP
  • cancelRun via CLI - cancelling a running workflow | wrun_01M0TZJDTM1H1V6VWWENKVBSAG
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01M0TZJNM23EB1AWE95BANNR94
  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01M0TZK1DB3V212JPA9MZCKBY2
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01M0TZKAEQCH0DH0V0P5A8RQNN
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01M0TZKN21B36XCSY9YKDE6DZS
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01M0TZKW0B2D2KG78W0DKB6BT5
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01M0TZKY9R78NM11D32HBN875N
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M0TZM0MTC35V26MFHZG186RV

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9908
✅ example9908
✅ express9908
✅ fastify9908
✅ hono9908
✅ nextjs-turbopack10403
✅ nextjs-webpack10403
✅ nitro9908
✅ nuxt9908
✅ sveltekit9908
✅ vite9908
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev403
✅ redis-dev403
❌ redis68200
✅ turso-dev403
❌ turso3850
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable10106
✅ e2e-local-dev-tanstack-start-stable10106
✅ e2e-local-postgres-nest-stable10106
✅ e2e-local-postgres-tanstack-start-stable10106
✅ e2e-local-prod-nest-stable10106
✅ e2e-local-prod-tanstack-start-stable10106

📋 View full workflow run

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.

1 participant

@pranaygp