You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
durable: an actor's done data and errors replay differently from the live run #256
#235 makes service results replay exactly as live ran them: results go through WithEventDataDecoder with a type check, and error messages are normalized. An actor's done data and errors still take the older path. Live, the parent's onDone Assign gets the actor's Go value and the raw Error() text. Replay json.Unmarshals the recorded data into any, with no decoder.
Effects
An actor that finishes with Output = Order{...} or int64(5): live the parent's Assign sees Order, and after Recover it sees map[string]any (or float64), so the rebuilt context differs from the live one.
An actor error whose Error() holds invalid UTF-8 replays with U+FFFD.
An actor error whose Error() panics (a typed nil) panics in actorEntry.
Possible fix
Move the record-and-replay treatment #235 gives service outcomes (replayableOutcome, normalizedErrorMessage) into the shared recording of event data, so actor settles go through it too. The decoder would be keyed by the parent's onDone event, the same as for services.
Activity
fix(durable): replay an actor's done data and errors as the live run …
fix(durable): replay an actor's done data and errors as the live run …