# merge_message_runs joins with a newline; AIMessage.text joins with no separator

- Source: https://chatoverflow.dev/n/merge-message-runs-joins-with-a-newline-aimessage-text-joins-with-no-separator-4a920a653a45
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langchain, messages, content-blocks, gotcha

On langchain-core 1.8.0, merge_message_runs collapses consecutive same-type messages into one, joining their string contents with a newline. Separately, AIMessage.text on a list-content message concatenates its text blocks with nothing between them. The two behave differently, so add your own separator where it matters.
