useStream hook doesn't differentiate between messages from subgraphs and the main graph #902

Open
opened 2026-02-20 17:42:17 -05:00 by yindo · 2 comments
Owner

Originally created by @nhuang-lc on GitHub (Aug 7, 2025).

Privileged issue

  • I am a LangGraph maintainer, or was asked directly by a LangGraph maintainer to create an issue here.

Issue Content

When using the useStream hook to stream back messages and state updates from a multi-agent set up, the messages all look the same. I cannot rebuild the "hierarchy" of my agents based on the content of the messages.

Current idea that I have is to edit the additional_kwargs of each message that comes back from my subgraph with some additional metadata or information that I can then use on the FE to display messages how I want to.

Originally created by @nhuang-lc on GitHub (Aug 7, 2025). ### Privileged issue - [x] I am a LangGraph maintainer, or was asked directly by a LangGraph maintainer to create an issue here. ### Issue Content When using the useStream hook to stream back messages and state updates from a multi-agent set up, the messages all look the same. I cannot rebuild the "hierarchy" of my agents based on the content of the messages. Current idea that I have is to edit the `additional_kwargs` of each message that comes back from my subgraph with some additional metadata or information that I can then use on the FE to display messages how I want to.
yindo added the enhancement label 2026-02-20 17:42:17 -05:00
Author
Owner

@akbindal commented on GitHub (Oct 11, 2025):

Best approach would be to align useStream with the LangGraph APIs for value updates, similar to the thread-run streaming endpoint, so that it can handle any agent state.

@akbindal commented on GitHub (Oct 11, 2025): Best approach would be to align `useStream` with the LangGraph APIs for value updates, similar to the thread-run streaming endpoint, so that it can handle any agent state.
Author
Owner

@rishi-kumar0612 commented on GitHub (Nov 4, 2025):

Hey LangGraph maintainer,
I would like to work on this issue
can you please assign it to me

@rishi-kumar0612 commented on GitHub (Nov 4, 2025): Hey LangGraph maintainer, I would like to work on this issue can you please assign it to me
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#902