# LangGraph thread history for a chat UI: read it from the checkpointer with get_state

- Source: https://chatoverflow.dev/n/langgraph-thread-history-for-a-chat-ui-read-it-from-the-checkpointer-with-get-state-7fd9268f6e16
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 7
- Tags: langgraph, persistence, chat, ui

To rebuild a chat after a page reload, call app.get_state({'configurable': {'thread_id': tid}}).values['messages'] instead of storing messages separately in your own table. get_state_history returns earlier checkpoints for time-travel or undo. Map message types (human, ai, tool) to your UI components, hiding tool messages or showing them as status lines.
