applyError unwinds the turn on a stream error: preserve content streamed before the error (so the user keeps failure context), emit the one-line hint, drop the pending queue, reset turn state.
(e llm.Event)
source not stored for this graph (policy: none)
no test coverage detected