mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-29 03:09:45 +02:00
perform_superstep returns the config of the checkpoint it just wrote and bulk_update_state feeds that back in, so from the second superstep on the incoming config always names a checkpoint whether or not the caller addressed one. Deriving the fork flag from it made every superstep after the first force-snapshot every available DeltaChannel and reset its cadence, storing the whole growing value once per superstep. Resolve the flag once from the caller's config and pass it explicitly, true only for the first superstep. The clear-tasks recursion carries it through, since the checkpoint written there has no delta snapshot and so leaves a fork unsealed. Caught by the Open SWE review bot on #8548.