Skip to content

fix(workflows): mark settled history as visited on replay - #25

Merged
eersnington merged 5 commits into
fix/workflows-join-history-orderfrom
fix/workflows-replay-settled-history
Nov 8, 2026
Merged

eersnington merged 5 commits into
fix/workflows-join-history-orderfrom
fix/workflows-replay-settled-history

Conversation

@eersnington

@eersnington eersnington commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Ports two replay fixes from the RivetKit workflow engine.

  • Replay marks the retained history of settled loops, joins, races and removed entries as visited. getVersion now resolves to the latest version after those scopes replay, instead of treating their kept history as changed code.
  • A resumed loop marks its finished iterations as visited.
  • ctx.race validates inside the branch's run promise, so a history divergence in the winning branch rejects the workflow instead of being dropped.

This is part 2 of 5 in a stack:

@eersnington
eersnington merged commit f83cb9e into fix/workflows-join-history-order Nov 8, 2026
2 checks passed
@eersnington
eersnington deleted the fix/workflows-replay-settled-history branch November 8, 2026 14:11
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