mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-10-14 12:15:25 +02:00
update_state stores its writes on the checkpoint it addresses. When that checkpoint already has other children, a DeltaChannel in each of them replays those writes, so editing an earlier turn leaks the edit into the branch it forked away from. When the addressed checkpoint is not the thread's latest, the new checkpoint snapshots the delta channels the update writes, and those channels' writes are no longer stored on the addressed checkpoint. Updates on the latest checkpoint are unchanged.