| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Changes being requested
Strip the single leading UTF-8 byte-order mark allowed by the SSE format before interpreting the first line.
Today SSEDecoder decodes each completed line independently. A valid stream beginning with a BOM therefore presents its first field as \ufeffdata instead of data, so the decoder silently drops the first event. The WHATWG event-stream interpretation algorithm explicitly strips one leading UTF-8 BOM.
The decoder now tracks the first line of each stream and removes only a leading BOM there. The regression covers synchronous and asynchronous decoding with the three BOM bytes both contiguous and split across input chunks.
Additional context & links
Validation: