mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-24 00:21:12 +00:00
* fix(mattermost): keep slash command error truncation UTF-16 safe Replace `.slice(0, 300)` and `.slice(0, 200)` with `truncateUtf16Safe` in sanitizeCommandLookupError and sanitizeMattermostLogValue to prevent surrogate pair corruption. Ref. lsr911 pattern — mechanical substitution, no behavior change. * test(mattermost): cover UTF-16-safe slash logs Co-authored-by: 黄剑雄0668001315 <huang.jianxiong@xydigit.com> --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>