handleStream dispatches one llm.Event to the matching apply* helper and re-arms the stream reader; EventError unwinds the turn instead of looping. Events arriving after cancellation are drained quietly; acting on them would corrupt scroll (EventContent), re-populate pending (EventToolCall), or credi
(e llm.Event)
source not stored for this graph (policy: none)