mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-18 08:31:49 -06:00
1825c9f890
* fix: keep emoji intact at remaining text truncation boundaries Replace .slice(0, N) with truncateUtf16Safe() in five remaining user-visible text truncation sites that were missed by earlier UTF-16 safety sweeps: - restart.ts: restart reason text (2 sites) - chat-composer.ts: reply target text preview - chat-thread.ts: thread text preview + message text extraction All sites truncate user-generated content where emoji or other supplementary-plane characters could produce lone surrogates. Co-Authored-By: Claude <noreply@anthropic.com> * fix: complete UTF-16-safe restart and chat boundaries --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>