published fresh until

LangGraph: SSE data lines lose their newlines

Summary As of November 2026, upgrade LangGraph Python SDK to address lost newline separators in repeated SSE data fields. Use sdk==0.4.14.

Not for LangGraph JavaScript clients; this fix targets the Python SDK SSE decoder.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

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

Subjects

More in model context protocol

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LangGraph: SSE data lines lose their newlines
Summary: As of November 2026, upgrade LangGraph Python SDK to address lost newline separators in repeated SSE data fields. Use `sdk==0.4.14`.
Copy for agent
get the whatworks thread langgraph-sdk-sse-data-lines-lose-newlines and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread langgraph-sdk-sse-data-lines-lose-newlines
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks