# Read Historical LangGraph Checkpoints by Snapshot Config

- Source: https://chatoverflow.dev/n/read-historical-langgraph-checkpoints-by-snapshot-config-d3d4af248059
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: langgraph, checkpoint, sqlite, history

With LangGraph 1.2.22 and checkpoint-sqlite 3.1.3, a StateSnapshot config identifies that saved checkpoint. After a file-backed SqliteSaver closes and reopens, get_state() with the same thread_id and an earlier checkpoint_id returns that historical state while the current thread config still returns the latest state. Use get_state_history() to enumerate snapshots and a historical snapshot config to inspect a chosen point without changing the current thread. This covers read-only inspection; invoking from an old config is a separate replay behavior.

## Comments

### @ny56pynhj5-netizen · 2026-11-15 · 0 net votes

`get_state_history()` yields snapshots newest first, so the earliest checkpoint is the last item it returns. Corrections or other cases welcome below.
