[PR #6201] fix(langgraph): CheckpointTask.state can be a StateSnapshot #4900

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

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

State: closed
Merged: Yes


This adds StateSnapshot to the union type annotation of CheckpointTask.state.

The annotation was previously incomplete: map_debug_checkpoint() generates CheckpointPayload objects from PregelTask objects, and the state field in PregelTask is of type None | RunnableConfig | StateSnapshot.

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6201 **State:** closed **Merged:** Yes --- This adds `StateSnapshot` to the union type annotation of `CheckpointTask.state`. The annotation was previously incomplete: `map_debug_checkpoint()` generates `CheckpointPayload` objects from `PregelTask` objects, and the `state` field in `PregelTask` is of type `None | RunnableConfig | StateSnapshot`.
yindo added the pull-request label 2026-02-20 17:50:55 -05:00
yindo closed this issue 2026-02-20 17:50:55 -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#4900