openclaw/docs/nodes
lsr911 0990bccb32
fix(gateway): use truncateUtf16Safe for voice-wake trigger truncation (#103210)
* 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>
2026-07-10 14:41:25 +01:00
..
audio.md fix(media): trust known CLI transcript files (#87393) 2026-07-09 15:35:38 +01:00
camera.md docs: rewrite published docs grounded in current source (#100142) 2026-07-05 00:32:47 -04:00
computer-use.md fix(computer): stop typing after cancellation (#103528) 2026-07-10 08:37:37 +01:00
images.md docs: rewrite published docs grounded in current source (#100142) 2026-07-05 00:32:47 -04:00
index.md fix(computer): prevent stale, replayed, and post-cancel desktop actions (#103422) 2026-07-10 06:47:56 +01:00
location-command.md feat(android): support opt-in background location (#100967) 2026-07-06 16:36:58 +01:00
media-understanding.md fix(media): trust known CLI transcript files (#87393) 2026-07-09 15:35:38 +01:00
talk.md feat(voice): universal talk waveform driven by real audio levels (#102901) 2026-07-09 16:33:25 +01:00
troubleshooting.md fix(computer): prevent stale, replayed, and post-cancel desktop actions (#103422) 2026-07-10 06:47:56 +01:00
voicewake.md fix(gateway): use truncateUtf16Safe for voice-wake trigger truncation (#103210) 2026-07-10 14:41:25 +01:00