From 290313b7bda1d21502870d35f1cafe3791c8c597 Mon Sep 17 00:00:00 2001 From: "open-swe-dev[bot]" Date: Tue, 15 Jul 2025 23:36:03 +0000 Subject: [PATCH] Apply patch --- .../langgraph/checkpoint/postgres/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py index 691654e6b..18cc36319 100644 --- a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py +++ b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py @@ -314,7 +314,7 @@ class PostgresSaver(BasePostgresSaver): checkpoint_ns, checkpoint["id"], checkpoint_id, - Jsonb(copy), + Jsonb(self.serde.dumps_typed(copy)[1]), Jsonb(get_checkpoint_metadata(config, metadata)), ), ) @@ -458,3 +458,4 @@ class PostgresSaver(BasePostgresSaver): __all__ = ["PostgresSaver", "BasePostgresSaver", "ShallowPostgresSaver", "Conn"] +