Dashboard › opencode-lore › looksLikeSSE headerless detection
01a0a797-9dff-77ab-b51b-d6235c000e5bTrap: trusting only Content-Type: text/event-stream looks standards-compliant, but ChatGPT/Copilot/Codex and DeepSeek may return SSE without that header, causing JSON parse failures such as LOREAI-GATEWAY-38. Fix: looksLikeSSE() removes one BOM, trims leading whitespace, and recognizes legal data:, event:, id:, retry:, or comment prefixes while preserving {/[ JSON handling.