Skip to content

Commit d3ef9da

Browse files
bsboddenCopilot
andauthored
refactor: in the async loader, the query uses the raw namespace. Use to_storage_safe_str(checkpoint_ns)
Co-authored-by: Copilot <[email protected]>
1 parent 30cf14c commit d3ef9da

File tree

1 file changed

+1
-1
lines changed
  • langgraph/checkpoint/redis

1 file changed

+1
-1
lines changed

langgraph/checkpoint/redis/aio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ async def _aload_pending_writes(
895895
# because RediSearch may not handle sentinel values correctly in tag fields
896896
writes_query = FilterQuery(
897897
filter_expression=(Tag("thread_id") == to_storage_safe_id(thread_id))
898-
& (Tag("checkpoint_ns") == checkpoint_ns)
898+
& (Tag("checkpoint_ns") == to_storage_safe_str(checkpoint_ns))
899899
& (Tag("checkpoint_id") == to_storage_safe_id(checkpoint_id)),
900900
return_fields=["task_id", "idx", "channel", "type", "$.blob"],
901901
num_results=1000, # Adjust as needed

0 commit comments

Comments
 (0)