Skip to content

Conversation

lienminhquang
Copy link

Problem
#1684 (comment)

Solution
deep-copy snapshot in load_next to keep history immutable

if snapshot := next((s for s in self.history if isinstance(s, NodeSnapshot) and s.status == 'created'), None):
snapshot.status = 'pending'
return snapshot
return copy.deepcopy(snapshot)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this in SimpleStatePersistence above as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants