mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-30 21:45:08 +02:00
A resume that is not replaying reuses the head's pending writes instead of rerunning their tasks, so none of them can leak; deciding in `_first`, where that is known, stops a plain `Command(resume=...)` from storing a snapshot. A replaying resume reruns the tasks, so it still seals. Exit mode also re-recorded the writes a resume loaded from the head: they were already stored there, and every later read replayed them twice. The exit accumulator now skips them.