mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 12:52:11 +03:00
- Replace O(n*k) chunks.some(includes) with emittedToolCallIds Set - Replace O(n) toolCalls.find with finalizedIds Set (JSON + SSE paths) - Add byte guard (0x7b check) before payload.toString on every frame - Add escapeXml() to prevent tag injection in tool result blocks - Reuse module-level TextDecoder in cursorProtobuf instead of per-call - Replace [...Set].every() spread with for..of loop