Skip to content

Backport #3381: [core] Ignore duplicate events per event class instead of failing the run - #3487

Open
github-actions[bot] wants to merge 1 commit into
stablefrom
backport/pr-3381-to-stable
Open

Backport #3381: [core] Ignore duplicate events per event class instead of failing the run#3487
github-actions[bot] wants to merge 1 commit into
stablefrom
backport/pr-3381-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

AI recommendation: This is a correctness fix: concurrent replays can commit inert duplicate events (step_created/step_started/wait_created, etc.) that no consumer claims, and the runtime currently escalates that to ReplayDivergenceError and a terminal CORRUPTED_EVENT_LOG on a run whose log is actually fine. The affected code exists on stable (packages/core/src/events-consumer.ts still calls onUnconsumedEvent on the same path, plus packages/core/src/workflow.ts and packages/world/src/events.ts), so maintenance-line users hit the same spurious run failures. The changeset is patch and the only additive surface (the optional onDuplicateEvent diagnostic callback) is internal plumbing for the fix, not a new user-facing capability; note that stable's consumer lacks the parking/idle-gate logic, so the cherry-pick will likely need manual adaptation.

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

… run (#3381)

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

changeset-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7065db8

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

This PR includes changesets to release 20 packages
Name Type
@workflow/core Patch
@workflow/world Patch
@workflow/builders Patch
@workflow/cli Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/vitest Patch
@workflow/web-shared Patch
@workflow/web Patch
workflow Patch
@workflow/world-testing Patch
@workflow/world-local Patch
@workflow/world-postgres Patch
@workflow/world-vercel 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

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview Aug 12, 2026 4:32pm
example-nextjs-workflow-webpack Ready Ready Preview Aug 12, 2026 4:32pm
example-workflow Ready Ready Preview Aug 12, 2026 4:32pm
workbench-astro-workflow Ready Ready Preview Aug 12, 2026 4:32pm
workbench-express-workflow Ready Ready Preview Aug 12, 2026 4:32pm
workbench-fastify-workflow Ready Ready Preview Aug 12, 2026 4:32pm
workbench-hono-workflow Ready Ready Preview Aug 12, 2026 4:32pm
workbench-nestjs-workflow Ready Ready Preview Aug 12, 2026 4:32pm
workbench-nitro-workflow Ready Ready Preview Aug 12, 2026 4:32pm
workbench-nuxt-workflow Ready Ready Preview Aug 12, 2026 4:32pm
workbench-python-workflow Error Error Aug 12, 2026 4:32pm
workbench-sveltekit-workflow Ready Ready Preview Aug 12, 2026 4:32pm
workbench-tanstack-start-workflow Ready Ready Preview Aug 12, 2026 4:32pm
workbench-vite-workflow Ready Ready Preview Aug 12, 2026 4:32pm
workflow-docs Ready Ready Preview, v0 Aug 12, 2026 4:32pm
workflow-swc-playground Ready Ready Preview Aug 12, 2026 4:32pm
workflow-tarballs Ready Ready Preview Aug 12, 2026 4:32pm
workflow-web Ready Ready Preview Aug 12, 2026 4:32pm

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.

0 participants