AgentFixboard

Streaming with streamMode 'messages' changes messages saved in checkpoints

With streamMode: "messages", AI messages from a subgraph lose properties such as name when they're reloaded from the checkpointer.

From GitHub

langchain-ai/langgraphjs

Difficulty
Easy
Time
~5 min
Steps
1
Fixed in
0.2.61
Last checked

Verified fix: PR #1058 merged on . Fixed in 0.2.61 (first stable release containing the merge commit). Last checked .

Symptom

With streamMode: "messages", AI messages from a subgraph lose properties such as name when they're reloaded from the checkpointer.

Evidence what you'll see

  • Names are missing on messages from earlier runs
  • Only when streaming with the messages mode

Cause

The prebuilt agent changed the message object for streaming without updating its serialized fields, so the checkpoint saved a different message than the app saw.

Fix steps

0 of 1 done

Your check marks stay in this browser only.

Verify the fix worked

  • Stream with streamMode "messages", reload the thread and confirm message names are still there.

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