Skip to content

Commit 30cf14c

Browse files
bsboddenCopilot
andauthored
refactor: wrap checkpoint_ns in to_storage_safe_str when building the query
Co-authored-by: Copilot <[email protected]>
1 parent ccd28ef commit 30cf14c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langgraph/checkpoint/redis/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def _load_pending_writes(
506506
# because RediSearch may not handle sentinel values correctly in tag fields
507507
writes_query = FilterQuery(
508508
filter_expression=(Tag("thread_id") == to_storage_safe_id(thread_id))
509-
& (Tag("checkpoint_ns") == checkpoint_ns)
509+
& (Tag("checkpoint_ns") == to_storage_safe_str(checkpoint_ns))
510510
& (Tag("checkpoint_id") == to_storage_safe_id(checkpoint_id)),
511511
return_fields=["task_id", "idx", "channel", "type", "$.blob"],
512512
num_results=1000, # Adjust as needed

0 commit comments

Comments
 (0)