Packages

@langchain/langgraph

1.7.5 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed

Your version

1.6.0

30 Oct 2026Where it was published

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

    messages and tools stream 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: true they stream as messages, not messages|model:<id>, and a subgraph's tokens as messages|sub:<id>.

    • Events from a model or tool called inside a task() belong to the graph that called the task: they stream without subgraphs: 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 with streamMode: "messages" or "tools" still receives that subgraph's events.

    • Messages sent with pushMessage follow 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 useStream with filterSubagentMessages, now need streamSubgraphs: true when they submit, as they already did with a Python server.

    streamEvents with version: "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 in messages mode, as in Python. So are all the messages of a list of updates that holds a Command, such as ToolNode returns when one of its tools returns a Command; before, none of that list's messages were emitted, and they reached clients only with the next values event.

    • A model tagged nostream still streams no tokens, but when its node returns its message in a list with a Command, as createAgent does, that message now streams whole when the node ends, as it already did for a plain update and does in Python.

    streamEvents with version: "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 RemoteGraph and its parent graph is streamed with subgraphs: true:

    • The node no longer receives the remote graph's subgraph events unless it passed subgraphs: true itself. With streamMode: "updates" it got ["model", "child"] where a local graph gives ["child"]. messages events 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 with streamMode: "messages" and subgraphs: false now gets the subgraph's message tokens instead of the whole message at the top level, as it already did when it didn't pass subgraphs, and as Python's RemoteGraph does.

  • List a ToolNode's tool names under the __tools node metadata key in getGraph() and getGraphAsync(), 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 emits on_tool_error on the tools stream mode. The tool is paused, not failed: on resume it runs again and emits on_tool_start and on_tool_end. ToolNode now re-throws a drain, as it already did an interrupt, instead of turning it into an error ToolMessage.

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.