Symptom
Every new message on one saved thread raises BadRequestError. The text says tool_use ids were found without tool_result blocks immediately after toolu_01CX8qs29zPLgHdzGcPi6b51, and that each tool_use block must have a tool_result block in the next message. The line starts with messages.6:.
Evidence what you'll see
- The task name in the traceback is
call_model. The same thread fails on every new human message. - A comment on 17 Jun 2025 says a fresh environment runs the same code, and that the PostgreSQL checkpoint holds an
AIMessagewithtool_callsand no followingToolMessage.
Why it happens
The checkpoint for that thread stored a tool call without the matching tool result. Restoring the thread sends that pair to the model, which rejects it. The comment classes this as checkpoint data, not a library bug. The reporter closed the issue after a different thread_id worked.
Affected versions
langgraph 0.4.8, langgraph-checkpoint 2.0.26, langgraph-checkpoint-postgres 2.0.21, langgraph-prebuilt 0.2.2, langchain 0.3.24, langchain-core 0.3.55, Windows 10.0.26100, Python 3.12.0. The report uses a local Postgres checkpointer.
Fix steps
0 of 2 done
Your check marks stay in this browser only.
How to check it worked
- A new
thread_idgets pastcall_modeland does not raiseBadRequestErrorfor a missingtool_result.
If it still fails
- The old thread still has the incomplete checkpoint. The linked issue does not include a library patch that repairs a saved thread in place.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it