mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-25 00:52:25 +02:00
AsyncChatModelStream projections deadlocked when iterated inside the outer run.messages cursor: the inner stream awaited an asyncio.Event that nothing was driving while the outer cursor was suspended. Plumb the langchain-core async pump hook down to each stream: - MessagesTransformer gains _bind_apump (mirror of _bind_pump) and prefers async wiring in _make_stream. - AsyncGraphRunStream._wire_arequest_more calls _bind_apump on any transformer that exposes it. Test helpers: EventLog.push is a no-op before subscription; the unit-test helpers and TestViaMux setups now pre-subscribe the log (simulating what run.messages iteration does in production) and verify pushed items via log._items. Flip the known-failure nested iteration test to pass.