From f02f7a5a279f9029f57b0c406fe6c4bbaf12edd7 Mon Sep 17 00:00:00 2001 From: Caspar Broekhuizen Date: Mon, 20 Oct 2025 17:26:14 -0700 Subject: [PATCH] fix(langgraph): restore old logic --- libs/langgraph/langgraph/pregel/main.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libs/langgraph/langgraph/pregel/main.py b/libs/langgraph/langgraph/pregel/main.py index 0a4d06925..69b22e355 100644 --- a/libs/langgraph/langgraph/pregel/main.py +++ b/libs/langgraph/langgraph/pregel/main.py @@ -2308,15 +2308,8 @@ class Pregel( # channel writes are saved to current checkpoint channel_writes = [w for w in task.writes if w[0] != PUSH] if saved and channel_writes: - # sanitize TASKS writes for storage - sanitized = [ - (c, sanitize_untracked_values_in_send(v, channels)) - if c == TASKS and isinstance(v, Send) - else (c, v) - for c, v in channel_writes - ] await checkpointer.aput_writes( - checkpoint_config, sanitized, task_id + checkpoint_config, channel_writes, task_id ) # apply to checkpoint and save apply_writes(