Skip to content

fix: replace lone surrogates before any adapter call - #55

Merged
Im-Beast merged 1 commit into
mainfrom
mateusz/well-formed
Sep 10, 2026
Merged

fix: replace lone surrogates before any adapter call#55
Im-Beast merged 1 commit into
mainfrom
mateusz/well-formed

Conversation

@Im-Beast

Copy link
Copy Markdown
Contributor
  • Fixes provider rejections on instructions and history containing lone UTF-16 surrogates, which text cut by slice can end on
  • Instructions are made well formed once in the Agent constructor and history once per run, so adapters and tool results need no sanitizing of their own

@Im-Beast
Im-Beast merged commit bef7979 into main Sep 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant