mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-12 10:12:11 +03:00
parseSSELine trimmed only leading whitespace before the "data:" check, so gemini-cli frames prefixed with terminal-redraw escapes (e.g. \x1b[2K\x1b[1A) failed the check and were silently dropped, stalling the client SSE parser. Now the SSE parsers and the gemini-to-openai text emit sites sanitize ANSI/ VT100 escapes (preserving \t \n \r) via a ReDoS-safe stripAnsiCodes helper. Co-authored-by: Rex <177378174+anki1kr@users.noreply.github.com> Inspired-by: https://github.com/decolua/9router/pull/2299