Files
openclaw/src
lsr911 78f9449d73 fix(channels): use truncateUtf16Safe for thread binding name truncation (#101527)
* fix(channels): use truncateUtf16Safe for thread binding name truncation

Raw .slice(0, 100) on emoji-labelled agent names can split a
surrogate pair, producing U+FFFD replacement characters in native
channel thread names.  Use truncateUtf16Safe instead.

Co-Authored-By: Claude <noreply@anthropic.com>

* test(channels): cover UTF-16-safe thread names

* refactor(channels): keep thread binding import leaf-only

* refactor(channels): keep thread binding import leaf-only

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-07 12:03:24 +01:00
..