mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-24 00:22:25 +02:00
**Description**: fix #6050. Root cause: In nested graphs, the first tick after resume often included a checkpoint_id, which set skip_done_tasks=False. This skipped matching pending writes and re-executed already-completed helper @task on subsequent resumes. Change: Initialize skip_done_tasks=True when resuming inside a nested graph. Use original config[CONF] for checkpoint_id presence, and self.config[CONF] for resuming (current loop state). Added a concise comment clarifying the different config sources. **Issue**: #6050 **Tests**: Add regression test `test_nested_graph_resume_reuses_cached_task_writes` --------- Signed-off-by: jitokim <pigberger70@gmail.com> Co-authored-by: Caspar Broekhuizen <casparbroekhuizen@gmail.com>