diff --git a/libs/langgraph/langgraph/pregel/loop.py b/libs/langgraph/langgraph/pregel/loop.py index c14e28cd3..c9fd1a061 100644 --- a/libs/langgraph/langgraph/pregel/loop.py +++ b/libs/langgraph/langgraph/pregel/loop.py @@ -569,8 +569,11 @@ class PregelLoop(LoopProtocol): CONFIG_KEY_RESUMING, self.input is None or isinstance(self.input, Command) - or self.config.get("metadata", {}).get("run_id") - == self.checkpoint_metadata.get("run_id", MISSING), + or ( + not self.is_nested + and self.config.get("metadata", {}).get("run_id") + == self.checkpoint_metadata.get("run_id", MISSING) + ), ) )