AgentFixboard

create_agent with a checkpointer exits early using last turn's structured response

With a response_format and a checkpointer, a later turn ends early and returns the structured response saved from an earlier turn.

From GitHub

langchain-ai/langchain

Difficulty
Easy
Time
~5 min
Steps
1
Fixed in
langchain==1.3.15
Last checked

Verified fix: PR #39248 merged on . Fixed in langchain==1.3.15 (first stable release containing the merge commit). Last checked .

Symptom

With a response_format and a checkpointer, a later turn ends early and returns the structured response saved from an earlier turn.

Evidence what you'll see

  • Second or later turn on the same thread
  • The returned structured_response belongs to a previous turn

Cause

structured_response was only written when the current model call produced one, so the old value stayed in the checkpoint and the routing treated the turn as done.

Fix steps

0 of 1 done

Your check marks stay in this browser only.

Verify the fix worked

  • Run several turns on one thread and confirm each returns its own structured response.

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