From 2126380cf1eb15e3ee60484671c73c0bb5c012fc Mon Sep 17 00:00:00 2001 From: "open-swe-dev[bot]" Date: Tue, 15 Jul 2025 23:37:47 +0000 Subject: [PATCH] Apply patch --- .../langgraph/checkpoint/postgres/shallow.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py index 16f4094ae..a6d943c57 100644 --- a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py +++ b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py @@ -440,7 +440,7 @@ class ShallowPostgresSaver(BasePostgresSaver): ( thread_id, checkpoint_ns, - Jsonb(copy), + Jsonb(self.serde.dumps_typed(copy)[1]), Jsonb(get_checkpoint_metadata(config, metadata)), ), ) @@ -773,7 +773,7 @@ class AsyncShallowPostgresSaver(BasePostgresSaver): ( thread_id, checkpoint_ns, - Jsonb(copy), + Jsonb(self.serde.dumps_typed(copy)[1]), Jsonb(get_checkpoint_metadata(config, metadata)), ), ) @@ -957,3 +957,4 @@ class AsyncShallowPostgresSaver(BasePostgresSaver): return asyncio.run_coroutine_threadsafe( self.aput_writes(config, writes, task_id, task_path), self.loop ).result() +