LangGraph 1.2.22 (14 November 2026) restores child graph messages to subgraph streams after three releases without them. Measured offline, with a stream test.
A regression that every result test missed
LangGraph 1.2.22, released on 14 November 2026, contains a one-line release note that is easy to skim past: a graph invoked inside a node with its own thread_id, checkpoint_ns or checkpoint_id, or through a runnable called with its own configurable, "streams its messages and tools events to a caller that streams with subgraphs=True again, as it did before 1.2.19". Read the other way round, for three releases, from 1.2.19 on 30 October to 1.2.21 on 12 November, a caller that asked for every subgraph's events got none of the token chunks, tool events or node-output messages from such a child graph.
The final state of the parent graph was correct in all of those releases. The child ran, returned its message, and the parent stored it. Any test that invoked the graph and compared the result passed. What broke was the stream: the user interface that showed the child's reply token by token, or a progress panel that listed tool calls as they happened, went quiet for the child and then showed its whole answer at once. That is a good example of why agent applications need tests on their event streams, not only on their outputs.
What changed and why
The 1.2.22 fix is pull request 9698, merged on 14 November 2026. Its description explains the history. Pull request 9458, merged on 30 October and first released in 1.2.19, made a graph that runs outside the caller's task drop every messages and tools handler it inherits. The intent was good: it kept a child graph's events out of a caller streaming without subgraphs=True, where they had shown up as the caller's own tokens, which issue 5674 had reported. But it dropped them for callers that stream with subgraphs=True too. The fix drops only the handlers without subgraphs.
The pull request also records a decision about shape. The child's events keep the namespace they had before 1.2.19, the child's own, which is () for its top-level nodes. Moving them under the calling node's namespace "would change their shape a second time for callers that read them today". That choice matters to consumers, as the measurements below show.
Measuring the releases
The companion example builds the smallest graph with this shape: a parent graph whose node delegate invokes a compiled child graph with one node, draft, and then a parent node reply. Both nodes call a fake chat model from langchain_core, which streams fixed text as token chunks, so no provider is called. The child is invoked three ways: with the caller's config, with its own thread_id, or with its own checkpoint_ns. The parent is streamed with stream_mode="messages", with and without subgraphs=True. I installed each release from 1.2.18 to 1.2.22 in a separate environment with packages available on 15 November and recorded every event.
| Release | Child config | subgraphs | Child token chunks delivered | Their namespace |
|---|---|---|---|---|
| any | caller's config | True | 7 of 7 | ('delegate:<task-id>',) |
| any | caller's config | False | 0 | not delivered |
| 1.2.18 | own thread_id or checkpoint_ns | True | 7 of 7 | () |
| 1.2.18 | own thread_id or checkpoint_ns | False | 7, as the caller's own | none |
| 1.2.19 to 1.2.21 | own thread_id or checkpoint_ns | True | 0 | not delivered |
| 1.2.19 to 1.2.21 | own thread_id or checkpoint_ns | False | 0 | not delivered |
| 1.2.22 | own thread_id or checkpoint_ns | True | 7 of 7 | () |
| 1.2.22 | own thread_id or checkpoint_ns | False | 0 | not delivered |
The table reproduces the release history. 1.2.18 leaked child chunks into a stream that had not asked for them; 1.2.19 to 1.2.21 stopped the leak and also stopped delivery to callers that asked; 1.2.22 delivers to callers that asked and not to others. In the broken releases the caller still received one event from the child's work: the whole message the delegate node returned, as a node-output message. The parent's own five reply chunks arrived in every release.
My probe covers messages only, with a synchronous child and thread_id or checkpoint_ns. The pull request also covers tools events, checkpoint_id and runnables with their own configurable, and it adds async tests; I did not measure those paths.
The namespace trap after the fix
Upgrading to 1.2.22 restores delivery, but look at the namespace column. A child invoked with the caller's config reports its chunks under ('delegate:<task-id>',), so a consumer that routes events by namespace can tell them from the parent's (). A child invoked with its own thread reports them under (), exactly like the parent's top-level nodes. A consumer that puts root-namespace chunks in the parent's chat bubble and everything else in a child panel will, after the upgrade, interleave the child's tokens into the parent's bubble.
The metadata does distinguish them. Each messages event carries metadata with langgraph_node, which is draft for the child's chunks and reply for the parent's. Routing by node name, or by any metadata you attach to the child's run, files every chunk correctly in all three child configurations. The lab linked from this article lets you switch the consumer between the two rules and watch the misfiled count change.
A stream contract test
A stream test is not much longer than a result test. It runs the graph with a fake model and asserts properties of the event sequence:
def stream_contract(graph, inputs):
child, parent = [], []
for ns, (msg, meta) in graph.stream(inputs, stream_mode='messages', subgraphs=True):
if type(msg).__name__ != 'AIMessageChunk':
continue
(child if meta.get('langgraph_node') == 'draft' else parent).append(msg.content)
assert child, 'the child graph streamed no tokens to a subgraphs=True caller'
assert parent, 'the parent node streamed no tokens'
return child, parentThree assertions cover the failures in the table: the child's chunks arrive when the caller asked for subgraphs; they do not arrive when it did not; and each chunk is attributed to the right node. Add a fourth for whatever routing rule your interface uses, because that is the part an upgrade can change without breaking any assertion about content.
Run the test against the exact dependency set you deploy, and again on every LangGraph and langchain-core upgrade. Pin the versions the test passed with, as the example does with a recorded pip freeze for each release.
Upgrade steps
- If you are on 1.2.19, 1.2.20 or 1.2.21 and you stream with
subgraphs=Truefrom graphs that invoke child graphs with their own thread or checkpoint settings, upgrade to 1.2.22 or later. - Before upgrading, check how your consumer routes events. If it relies on the namespace being non-empty for child events, switch to node metadata or to tags you set on the child's run.
- If you are on 1.2.18 or earlier and you stream without
subgraphs=True, expect child tokens to stop appearing in your stream after upgrading; that is the fix for issue 5674, not a regression. Turn onsubgraphs=Trueif you want them. - Add the stream contract test before the upgrade, run it on the old and new versions, and keep it.
Failure modes
Result-only test suites. Every release in the table passes a test that checks the final state. A suite that never consumes a stream cannot see this class of change.
Interfaces that degrade gracefully. A chat interface that shows the final message when no tokens arrived hides the regression from users and developers alike. Log the count of streamed chunks per node, so a drop to zero is visible.
Routing on structural accidents. A namespace of () meaning "the parent" was never a documented guarantee for children with their own thread. Route on explicit metadata where you can.
Mixed async and sync paths. The pull request fixes both, and I only measured sync. If your application streams with astream, run your contract test on that path too.
When you do not need this. If child graphs always run with the caller's config, the namespace distinguishes them and no release in the table changed their delivery.
Verification
The companion example contains the probe, the five recordings with their pip freeze output, and an offline model that reproduces every recorded case. Its tests check the model against each recording, that the regression drops child chunks while a final-result check still passes, that 1.2.22 misfiles child chunks under namespace routing and files them correctly under node routing, that the caller-config child is unaffected by release, and that 1.2.18 leaks chunks into a stream without subgraphs.
Interactive experiment
LangGraph stream routing: child config, subgraphs and release. Synthetic browser-local fixtures, adjustable inputs, decision traces and JSON export.