mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 19:16:15 +00:00
* fix(gateway): use truncateUtf16Safe for voice-wake trigger truncation Replace naive .slice(0, 64) with truncateUtf16Safe() in normalizeVoiceWakeTriggers to prevent surrogate pair splitting in user-configured voice wake trigger phrases. Voice wake triggers are user-configurable text strings that may contain emoji or non-BMP characters. A naive .slice(0, 64) at a surrogate pair boundary produces a lone surrogate, which corrupts the trigger text. Co-Authored-By: Claude <noreply@anthropic.com> * test: add proof scripts for C1 sanitize and voice-wake UTF-16 * chore: remove unrelated proof script from voice-wake PR ClawSweeper review: the console-sanitization proof script belongs to #103226, not this gateway voice-wake fix. Remove it to keep the branch clean. Ref: #103210 review * fix(gateway): harden voice wake unicode boundary --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>