fix(rivetkit-native): expose full hibernation metadata to JS#4657
fix(rivetkit-native): expose full hibernation metadata to JS#4657NathanFlurry wants to merge 1 commit intobreak-up/persist-hibernating-requestsfrom
Conversation
Code Review: fix(rivetkit-native): expose full hibernation metadata to JSOverviewThis PR implements the The core mechanism: Issues
CLAUDE.md states: "Never use
Observations / QuestionsAsync canHibernate in wrapper.js The JS side runs
All other callbacks use Error field in the rejection handler is silently dropped on the Rust side In the Metadata defaults in wrapper.js envoyMessageIndex: e.envoyMessageIndex ?? 0,
rivetMessageIndex: e.rivetMessageIndex ?? 0,
path: e.path ?? "",
headers: e.headers ?? {},If these fields are always present in the protocol, a warning log when they're absent would help catch protocol drift. If they're genuinely optional, the defaults are appropriate. SummaryThe core logic is sound and consistent with existing callback patterns. Three actionable items:
|

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: