DeepAgents Projection Streams (stream.messages / stream.subagents) Return No Items Despite Raw Events Streaming
I’m using DeepAgents 0.6.10 with event streaming(Event streaming - Docs by LangChain).
Raw events are streaming correctly, but the projection streams (stream.messages and stream.subagents) never yield any items.
Code -
async def run_stream(
deepagent_config: dict,
run_config: dict,
stream_input: dict,
group_name: str,
trace_sink: list[dict[str, Any]] | None = None,
) -> str:
assistant_parts = []
deepagent_config["checkpointer"] = await get_async_redis_checkpointer()
agent_manager = AgentManager()
async_agent = agent_manager.build_agent(deepagent_config)
stream = await async_agent.astream_events(
stream_input,
config=run_config,
version="v3",
)
async def consume_coordinator():
logger.debug("consume_coordinator called")
try:
async for message in stream.messages:
text = await message.text
print("[coordinator]", text)
logger.debug("coordinator message: %s", message)
logger.debug("coordinator stream finished")
except Exception:
logger.exception("Coordinator consumer failed")
async def consume_subagents():
logger.debug("consume_subagents called")
try:
async for subagent in stream.subagents:
logger.debug("subagent started: %s path=%s", subagent.name, subagent.path)
async for message in subagent.messages:
text = await message.text
print(f"[{subagent.name}]", text)
logger.debug("subagent message: %s", message)
logger.debug("subagent stream finished")
except Exception:
logger.exception("Subagent consumer failed")
await asyncio.gather(
consume_coordinator(),
consume_subagents(),
)
await publish(
group_name,
{
"type": "status",
"stage": "completed",
"message": "Agent request finished streaming.",
},
)
return "".join(assistant_parts)
What I Observe
The projection streams finish immediately:
DEBUG 2026-06-16 05:44:06,235 chat_uuid Consuming chat UUID. Cache key: chat:2:1:none, Cached value: None, Provided chat_uuid: 019eceba-4a38-7972-844a-5ce777606cac
DEBUG 2026-06-16 05:44:06,288 deep_agent_config Resolved tool names for agent 1: []
DEBUG 2026-06-16 05:44:06,292 deep_agent_config Resolved tool names for agent 12: []
DEBUG 2026-06-16 05:44:06,646 channel_chat_helper consume_coordinator called
DEBUG 2026-06-16 05:44:06,647 channel_chat_helper consume_subagents called
DEBUG 2026-06-16 05:44:08,430 channel_chat_helper coordinator stream finished
DEBUG 2026-06-16 05:44:08,430 channel_chat_helper subagent stream finished
No items are yielded by either stream.
Questions
- Why do
stream.messagesandstream.subagentsfinish with zero items even though rawmethod='messages'events are emitted? - Is my usage of
await message.textcorrect, or shouldmessage.textbe consumed differently? - Do projection streams require additional configuration, such as subgraph streaming or specific stream modes?
- Is this expected behavior when the agent has no tools?
Any guidance or working examples using DeepAgents 0.6.x projection streams would be appreciated.