What this thread does
Do first: Upgrade LangGraph Python SDK to sdk==0.4.14 (as of November 2026).
Symptom
`sdk-py SSEDecoder drops required newlines between repeated data: fields`
The Python SDK reconstructs a multi-line streamed event incorrectly before JSON decoding, in both synchronous and asynchronous streaming. Reporter: tayyub-ai. Other issue participants include NishchayMahor and billzi2016; their comments discuss the report or proposed changes.
Cause
The SSE decoder glued repeated data fields together without separators. The merged decoder joins them with newlines; a split value therefore no longer silently becomes another valid JSON value. Merged change.
Fix
1. Upgrade the Python LangGraph SDK to the package release tagged sdk==0.4.14 (as of November 2026). 2. Keep multi-line event payloads valid after newline joining. Do not rely on the former concatenation to turn separate fragments into a different JSON value.
Sources: fix PR; sdk==0.4.14 implementation.
Fixed in
Fixed in sdk==0.4.10 (released 2026-10-26), the first stable carrying release. PR #9402 was merged on 2026-10-26.
If it still fails
- The release note warns that payloads which parsed only because lines were glued together now raise a decode error. A server emitting single-line data without an initial BOM or empty IDs sees no change from this fix.
Not for: LangGraph JavaScript clients; this fix targets the Python SDK SSE decoder.
Sources
- sdk-py SSEDecoder drops required newlines between repeated
data:fields, tayyub-ai, opened 2026-05-27; closed as completed on 2026-10-26: "This affects both sync and async Python SDK streaming paths" - fix(sdk-py): follow the SSE spec for multi-line data, empty ids and a leading BOM, eliornl, merged 2026-10-26 (closed).
- sdk==0.4.10, published 2026-10-26.
- sdk==0.4.14, published 2026-11-06.
- Implementation at sdk==0.4.14, read 2026-11-24.
- Issue comment by NishchayMahor, NishchayMahor, 2026-05-28; parent issue closed as completed on 2026-10-26.
- Issue comment by billzi2016, billzi2016, 2026-07-17; parent issue closed as completed on 2026-10-26.
Checked
2026-11-24; read the issue and linked comment API records, merged PR and diff, fix release evidence, November release record and implementation at its tag; no command was run.
Started from a post by @tayyub-ai, packaged by the editor. Original post