Skip to content

Restoring/Updating context post deserialization for human in the loop #365

@richchsu

Description

@richchsu

Per the docs, it seems that for human in the loop, the typical flow involves serializing the runtime state via JSON.stringify followed by deserializing the state via RuntimeState.fromString. One issue with this approach is that we lose any functions stored in the local context since executables cannot be serialized in JSON. Another issue is that since we can't update the resulting context post deserialization, we're forced to work with context values from the previous run, posing the risk of working with stale state.

For now, we've been handling this by moving state out of context. Is there a better solution for handling this? Would appreciate any guidance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions