@langchain/langgraph
1.7.5 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed
1.7.5 is the newest release of 1.x.
In short
5 fixed2 internal
Release note
Minor Changes
langgraph: Give messages and tools events the namespace of the graph that ran them
messagesandtoolsstream events now carry the namespace of the graph that ran them:An event's namespace no longer ends with the node that made the call. Root tokens have the namespace ``, so with
subgraphs: truethey stream asmessages, notmessages|model:<id>, and a subgraph's tokens asmessages|sub:<id>.Events from a model or tool called inside a
task()belong to the graph that called the task: they stream withoutsubgraphs: true, under that graph's namespace.Without
subgraphs: true, events from inside subgraphs no longer stream. A subgraph node's returned messages still stream, whole, when it ends, and a node that streams its own subgraph withstreamMode: "messages"or"tools"still receives that subgraph's events.Messages sent with
pushMessagefollow the same rules, so a node that streams its own subgraph receives the messages that subgraph pushes.Apps that show subagent messages as they stream, like
useStreamwithfilterSubagentMessages, now needstreamSubgraphs: truewhen they submit, as they already did with a Python server.
streamEventswithversion: "v3"is unchanged.
Patch Changes
langgraph: Keep every message a node returns in messages stream mode
In
streamMode: "messages", the id-less messages a node returned all got one id, and an id-less message could take the id of a sibling that had one, so the messages reducer kept only one of them and the saved state depended on the stream mode. Each id-less message of a node's output now gets its own id.Messages a node returns through
Command({ update })are now emitted inmessagesmode, as in Python. So are all the messages of a list of updates that holds aCommand, such asToolNodereturns when one of its tools returns aCommand; before, none of that list's messages were emitted, and they reached clients only with the nextvaluesevent.A model tagged
nostreamstill streams no tokens, but when its node returns its message in a list with aCommand, ascreateAgentdoes, that message now streams whole when the node ends, as it already did for a plain update and does in Python.
streamEventswithversion: "v3"is unchanged.langgraph: Route a RemoteGraph's subgraph events like a local graph's when it streams inside a node
When a node streams a
RemoteGraphand its parent graph is streamed withsubgraphs: true:The node no longer receives the remote graph's subgraph events unless it passed
subgraphs: trueitself. WithstreamMode: "updates"it got["model", "child"]where a local graph gives["child"].messagesevents are not filtered. The server sends each message once, from the namespace where it first saw it, so it never sends the top-level copy the node would get from a local graph, and filtering would leave the node with no messages.The parent now receives the remote graph's subgraph events, at every depth. Before, it received only the remote graph's top-level events.
The same holds when the node passes
subgraphs: false. Before, that turned off subgraph events for the parent too. So a node that streams withstreamMode: "messages"andsubgraphs: falsenow gets the subgraph's message tokens instead of the whole message at the top level, as it already did when it didn't passsubgraphs, and as Python'sRemoteGraphdoes.
List a
ToolNode's tool names under the__toolsnode metadata key ingetGraph()andgetGraphAsync(), matching Python, so graph viewers such as Studio can show which tools it runs.langgraph: Stop reporting a paused tool as failed on the tools stream
A tool that calls
interrupt(), or whose run is drained, no longer emitson_tool_erroron thetoolsstream mode. The tool is paused, not failed: on resume it runs again and emitson_tool_startandon_tool_end.ToolNodenow re-throws a drain, as it already did an interrupt, instead of turning it into an errorToolMessage.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.