fix(rivetkit): persist native onSleep state on errors#4936
Conversation
Code Review: fix(rivetkit): persist native onSleep state on errorsOverviewThis PR fixes a bug where actor state was not persisted when the CorrectnessThe fix is sound. Previously, a thrown exception in One subtle risk: if Consistency with Other Lifecycle Hooks
Code QualityMinimal and well-scoped. The existing outer Test CoverageNo test verifies that state persists when Summary
The fix is correct. Recommend adding a test to guard the error-path behavior. |
Preview packages published to npmInstall with: npm install rivetkit@pr-4936All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-fa84f39
docker pull rivetdev/engine:full-fa84f39Individual packagesnpm install rivetkit@pr-4936
npm install @rivetkit/react@pr-4936
npm install @rivetkit/rivetkit-napi@pr-4936
npm install @rivetkit/workflow-engine@pr-4936 |
5ff98a4 to
e054f95
Compare
28a6369 to
b40eb33
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: