mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-13 18:32:12 +03:00
Extend the Claude empty-response detector in open-sse/utils/stream.ts to also catch an upstream connection that opens (HTTP 200) and closes having sent literally zero bytes -- no message_start at all. The existing hasClaudeAssistantLifecycle() gate only fired once a lifecycle event had been observed, so this shape silently completed the client stream with a 200 and no content instead of surfacing a 502, matching the reported symptom for claude-fable-5-max past ~1800 messages. New streamClaudeEmptyBody.ts module keeps the frozen stream.ts file size unchanged while adding the combined partial-lifecycle + truly-empty check.