Some states are lost after using LangGraph with human-in-the-loop, especially when there is a lot of content in the state. #1106

Closed
opened 2026-02-20 17:43:05 -05:00 by yindo · 1 comment
Owner

Originally created by @Smile0524 on GitHub (Dec 26, 2025).

Checked other resources

  • This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/).
  • I added a clear and detailed title that summarizes the issue.
  • I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
  • I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code

use AsyncPostgresSaver
use interrupt

Error Message and Stack Trace (if applicable)

When there is less content in "messages", the complete "messages" of state from the previous round can be obtained after the first human-in-loop. When there is more content in "messages", the "messages" of state from the previous round is empty.

Description

When there is less content in "messages", the complete "messages" of state from the previous round can be obtained after the first human-in-loop. When there is more content in "messages", the "messages" of state from the previous round is empty.
After 1st human in the loop, the same thread_id can not cannot obtain the previous complete state.

System Info

When there is less content in "messages", the complete "messages" of state from the previous round can be obtained after the first human-in-loop. When there is more content in "messages", the "messages" of state from the previous round is empty.
After 1st human in the loop, the same thread_id can not cannot obtain the previous complete state.

Originally created by @Smile0524 on GitHub (Dec 26, 2025). ### Checked other resources - [x] This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/). - [x] I added a clear and detailed title that summarizes the issue. - [x] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example). - [x] I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue. ### Example Code ```python use AsyncPostgresSaver use interrupt ``` ### Error Message and Stack Trace (if applicable) ```shell When there is less content in "messages", the complete "messages" of state from the previous round can be obtained after the first human-in-loop. When there is more content in "messages", the "messages" of state from the previous round is empty. ``` ### Description When there is less content in "messages", the complete "messages" of state from the previous round can be obtained after the first human-in-loop. When there is more content in "messages", the "messages" of state from the previous round is empty. After 1st human in the loop, the same thread_id can not cannot obtain the previous complete state. ### System Info When there is less content in "messages", the complete "messages" of state from the previous round can be obtained after the first human-in-loop. When there is more content in "messages", the "messages" of state from the previous round is empty. After 1st human in the loop, the same thread_id can not cannot obtain the previous complete state.
yindo added the bugpending labels 2026-02-20 17:43:05 -05:00
yindo closed this issue 2026-02-20 17:43:06 -05:00
Author
Owner

@sydney-runkle commented on GitHub (Jan 9, 2026):

Going to close for now, we'll need a minimal reproduction that we can use to track this issue. Feel free to open another one w/ more detail when you have it.

@sydney-runkle commented on GitHub (Jan 9, 2026): Going to close for now, we'll need a minimal reproduction that we can use to track this issue. Feel free to open another one w/ more detail when you have it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1106