mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-14 10:52:17 +03:00
- Route mid-stream error events through formatTranslatedStreamError instead of silently closing with finish_reason:stop, so a truncated turn is distinguishable from a completed one (AGENTS.md Hard Rule #6). - Sanitize the message on the pre-stream error verdict as defense in depth. - Cover the previously-untested gating paths: terminal event as the first meaningful event, source ending without a terminal event, empty source, heartbeat-only source, and incomplete with endTurn:true.