Skip to content

Backport #2056: [core] Fix spurious "Event cursor missing after initial load" warning#2076

Merged
TooTallNate merged 3 commits into
stablefrom
backport/pr-2056-to-stable
May 22, 2026
Merged

Backport #2056: [core] Fix spurious "Event cursor missing after initial load" warning#2076
TooTallNate merged 3 commits into
stablefrom
backport/pr-2056-to-stable

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

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

AI recommendation: The same cursor-clobbering bug exists on stable in packages/core/src/runtime/helpers.ts (in getWorkflowRunEvents, which does nextCursor = response.cursor without preserving the prior cursor on a trailing empty page). This is a self-contained bug fix to existing functionality with regression tests, and matches the criteria for backport. Conflicts are likely (function rename from getWorkflowRunEvents to loadWorkflowRunEvents on main, and the test file structure differs), so the resulting PR will need careful human review.

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

…adation due to clobbered cursor (#2056)

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

changeset-bot Bot commented May 22, 2026

🦋 Changeset detected

Latest commit: 99e14cd

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

This PR includes changesets to release 16 packages
Name Type
@workflow/core Patch
workflow Patch
@workflow/builders Patch
@workflow/cli Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/vitest Patch
@workflow/web-shared Patch
@workflow/web Patch
@workflow/world-testing Patch
@workflow/astro Patch
@workflow/nest Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch
@workflow/nuxt Patch

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

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

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 22, 2026

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

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment May 22, 2026 6:45pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment May 22, 2026 6:45pm
example-workflow Ready Ready Preview, Comment May 22, 2026 6:45pm
workbench-astro-workflow Ready Ready Preview, Comment May 22, 2026 6:45pm
workbench-express-workflow Ready Ready Preview, Comment May 22, 2026 6:45pm
workbench-fastify-workflow Ready Ready Preview, Comment May 22, 2026 6:45pm
workbench-hono-workflow Ready Ready Preview, Comment May 22, 2026 6:45pm
workbench-nitro-workflow Ready Ready Preview, Comment May 22, 2026 6:45pm
workbench-nuxt-workflow Ready Ready Preview, Comment May 22, 2026 6:45pm
workbench-sveltekit-workflow Ready Ready Preview, Comment May 22, 2026 6:45pm
workbench-tanstack-start-workflow Ready Ready Preview, Comment May 22, 2026 6:45pm
workbench-vite-workflow Ready Ready Preview, Comment May 22, 2026 6:45pm
workflow-swc-playground Ready Ready Preview, Comment May 22, 2026 6:45pm
workflow-tarballs Ready Ready Preview, Comment May 22, 2026 6:45pm
workflow-web Ready Ready Preview, Comment May 22, 2026 6:45pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
workflow-docs Skipped Skipped May 22, 2026 6:45pm

@github-actions
Copy link
Copy Markdown
Contributor Author

github-actions Bot commented May 22, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 899 2 67 968
✅ 💻 Local Development 970 0 86 1056
✅ 📦 Local Production 970 0 86 1056
✅ 🐘 Local Postgres 970 0 86 1056
✅ 🪟 Windows 88 0 0 88
❌ 🌍 Community Worlds 15 69 0 84
✅ 📋 Other 492 0 36 528
Total 4404 71 361 4836

❌ Failed Tests

▲ Vercel Production (2 failed)

express (2 failed):

  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KS8G3T7TXD22WK9THAK6CPGA | 🔍 observability
🌍 Community Worlds (69 failed)

mongodb-dev (1 failed):

  • dev e2e should rebuild on imported step dependency change

redis-dev (1 failed):

  • dev e2e should rebuild on imported step dependency change

turso-dev (1 failed):

  • dev e2e should rebuild on imported step dependency change

turso (66 failed):

  • addTenWorkflow | wrun_01KS8FZ6VYY059YE7H5Q44DBMV
  • addTenWorkflow | wrun_01KS8FZ6VYY059YE7H5Q44DBMV
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KS8G12G199RAD4229QY9DFPT
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KS8FZFAK2J8NC2HVCPWX1KJR
  • promiseRaceWorkflow | wrun_01KS8FZMRHB815CCM0JAXJDW16
  • promiseAnyWorkflow | wrun_01KS8FZQ3K999SSY9NN25Z290F
  • importedStepOnlyWorkflow | wrun_01KS8G1ED2GDWM0EJMK7P52VTE
  • readableStreamWorkflow | wrun_01KS8FZSGB31XQ1503KNQQ68Y4
  • hookWorkflow | wrun_01KS8G05X16TFC95SHCWN3AVJ4
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KS8G0C6VYQJ1HC7QHRD2M3H0
  • webhookWorkflow | wrun_01KS8G0GXKAY2TFXSJQQ17C0DT
  • sleepingWorkflow | wrun_01KS8G0QN6YTPK95WRZ0X8H32B
  • parallelSleepWorkflow | wrun_01KS8G168ZQG4BTAQHWG28SBM6
  • nullByteWorkflow | wrun_01KS8G1B92KN2SHCNNKGMHWZCW
  • workflowAndStepMetadataWorkflow | wrun_01KS8G1D7DBAN2RQ308BEMEGH1
  • 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_01KS8G3T7TXD22WK9THAK6CPGA
  • fetchWorkflow | wrun_01KS8G48GMKMTT7KMSYV7GBYP6
  • promiseRaceStressTestWorkflow | wrun_01KS8G4CQDR1V9S7GSE1RC03F0
  • 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 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_01KS8G7MNRH6D59HK37BHTDK69
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KS8G804MB4D1QYG7708MD7NC
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KS8G8EV44MHXF1RBGCMJ0FXW
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KS8G903KPSSK1K5DZH8AWG8X
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KS8G9956S2ZTK5G6XPAZ41EX
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KS8G9EAKWZEGD70T2Z61E03J
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KS8G9G86C4Y5PQC8EVH7YYH7
  • 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_01KS8G9YKJ46CPV2WTMG1QDHZ9
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KS8GA3PDEB9VH457EGT7RPCH
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KS8GA9T94VV91E3QR6D0SC1R
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KS8GAG2V4XRBWZCVB7CAA425
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KS8GAPD7MQC1XFBPJYB8XFEB
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KS8GAWZHBFQNGV73RSPFJ4HF
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KS8GB33CKF10Y32QB2F5N2K3
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KS8GBHWC5AVWFYWKJ6MQV739
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KS8GBTBSCZA6W1EHFNABTRYM
  • cancelRun - cancelling a running workflow | wrun_01KS8GC1X8AGGP1FPQ526Z1TFN
  • cancelRun via CLI - cancelling a running workflow | wrun_01KS8GCAME7KMB7JXRHJYTXA46
  • 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_01KS8GCNWY1DQJ9DT7X535K8EF
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KS8GD4RXF68JA7A5HSNVAN2B
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KS8GDFWAEHCTAD7EJATAZ9MG
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KS8GDQC874PFXX463Z86FF66
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KS8GDSBZ9G6TCGBNT5N0T3GH
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KS8GDVCBTVTTN4JSX4N6PVBA

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 81 0 7
✅ example 81 0 7
❌ express 79 2 7
✅ fastify 81 0 7
✅ hono 81 0 7
✅ nextjs-turbopack 86 0 2
✅ nextjs-webpack 86 0 2
✅ nitro 81 0 7
✅ nuxt 81 0 7
✅ sveltekit 81 0 7
✅ vite 81 0 7
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 82 0 6
✅ express-stable 82 0 6
✅ fastify-stable 82 0 6
✅ hono-stable 82 0 6
✅ nextjs-turbopack-canary 69 0 19
✅ nextjs-turbopack-stable 88 0 0
✅ nextjs-webpack-canary 69 0 19
✅ nextjs-webpack-stable 88 0 0
✅ nitro-stable 82 0 6
✅ nuxt-stable 82 0 6
✅ sveltekit-stable 82 0 6
✅ vite-stable 82 0 6
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 82 0 6
✅ express-stable 82 0 6
✅ fastify-stable 82 0 6
✅ hono-stable 82 0 6
✅ nextjs-turbopack-canary 69 0 19
✅ nextjs-turbopack-stable 88 0 0
✅ nextjs-webpack-canary 69 0 19
✅ nextjs-webpack-stable 88 0 0
✅ nitro-stable 82 0 6
✅ nuxt-stable 82 0 6
✅ sveltekit-stable 82 0 6
✅ vite-stable 82 0 6
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 82 0 6
✅ express-stable 82 0 6
✅ fastify-stable 82 0 6
✅ hono-stable 82 0 6
✅ nextjs-turbopack-canary 69 0 19
✅ nextjs-turbopack-stable 88 0 0
✅ nextjs-webpack-canary 69 0 19
✅ nextjs-webpack-stable 88 0 0
✅ nitro-stable 82 0 6
✅ nuxt-stable 82 0 6
✅ sveltekit-stable 82 0 6
✅ vite-stable 82 0 6
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 88 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
❌ mongodb-dev 4 1 0
❌ redis-dev 4 1 0
❌ turso-dev 4 1 0
❌ turso 3 66 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 82 0 6
✅ e2e-local-dev-tanstack-start-stable 82 0 6
✅ e2e-local-postgres-nest-stable 82 0 6
✅ e2e-local-postgres-tanstack-start-stable 82 0 6
✅ e2e-local-prod-nest-stable 82 0 6
✅ e2e-local-prod-tanstack-start-stable 82 0 6

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: success

Check the workflow run for details.

@vercel vercel Bot temporarily deployed to Preview – workflow-docs May 22, 2026 18:41 Inactive
@TooTallNate TooTallNate merged commit 7487430 into stable May 22, 2026
91 of 95 checks passed
@TooTallNate TooTallNate deleted the backport/pr-2056-to-stable branch May 22, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant