chore(main): release 0.2.7#234
Merged
kaizhou-lab merged 4 commits intoJul 23, 2026
Merged
Conversation
github-actions
Bot
force-pushed
the
release-please--branches--main--components--aionrs
branch
3 times, most recently
from
July 23, 2026 03:41
921c975 to
ee37e05
Compare
Streaming SSE decoding called String::from_utf8_lossy on each raw bytes_stream() chunk independently before handing the text to the line/block framers. When a multibyte UTF-8 character (e.g. a 3-byte CJK character) was split across two network chunks, each half was lossy-decoded separately and replaced with U+FFFD, dropping the character from streamed output. Add a byte-level Utf8StreamDecoder carry buffer that only emits complete UTF-8 sequences per chunk and retains the incomplete trailing bytes until the next chunk. Apply it to the OpenAI, OpenAI-Responses and Anthropic SSE paths, flushing any remainder at the true end of the stream. The Bedrock path already buffers raw bytes and is unaffected. Adds unit tests covering a CJK string split mid-character across chunk boundaries (no U+FFFD) and a legitimately-truncated tail. Addresses Sentry ELECTRON-3NH / ELECTRON-3P5.
fix(providers): buffer partial UTF-8 across SSE chunk boundaries
kaizhou-lab
deleted the
release-please--branches--main--components--aionrs
branch
July 23, 2026 08:33
Contributor
Author
|
🤖 Created releases: 🌻 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 I have created a release beep boop
0.2.7 (2026-07-23)
Bug Fixes
This PR was generated with Release Please. See documentation.