[PR #6586] feat(checkpoint): Validate checkpointer type at compile time #5143

Closed
opened 2026-02-20 17:51:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/6586

State: closed
Merged: Yes


Description: Catch invalid checkpointer objects early by validating any checkpointer argument before compilation/execution, raising a clear TypeError that instructs users to pass a proper BaseCheckpointSaver (e.g., AsyncPostgresSaver) instead of stores like AsyncPostgresStore. Includes shared validation logic and a regression test so we don’t see AttributeError: 'AsyncPostgresStore' object has no attribute 'get_next_version' again.

Issue: Fixes #6585

Dependencies: None

Twitter handle: none

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6586 **State:** closed **Merged:** Yes --- Description: Catch invalid checkpointer objects early by validating any checkpointer argument before compilation/execution, raising a clear TypeError that instructs users to pass a proper BaseCheckpointSaver (e.g., AsyncPostgresSaver) instead of stores like AsyncPostgresStore. Includes shared validation logic and a regression test so we don’t see AttributeError: 'AsyncPostgresStore' object has no attribute 'get_next_version' again. Issue: Fixes #6585 Dependencies: None Twitter handle: none
yindo added the pull-request label 2026-02-20 17:51:17 -05:00
yindo closed this issue 2026-02-20 17:51:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#5143