Files
Aiden Cline 27826c61a4 fix(ai): sanitize unpaired surrogates in all chat protocols
Add ProviderShared.sanitizeSurrogates (removes lone high/low surrogates
that break JSON serialization, preserves valid emoji) and apply to every
model-visible text field: system prompts (joinText), user text,
assistant text/reasoning, tool result text, and tool call content across
OpenAI Chat, Open Responses, Anthropic Messages, Gemini, and Bedrock
Converse. Ensures providers like OpenAI, DeepSeek, Zai, and Amazon
Bedrock receive valid UTF-16.
2026-08-23 22:18:54 -05:00
..
2026-08-10 03:36:24 +00:00