Commit Graph

2 Commits

Author SHA1 Message Date
Guillaume Nodet
479fc7450e macOS: fix voice wake crash in trimmedAfterTrigger
Fixed an index out of bounds crash in VoiceWakeRuntime.trimmedAfterTrigger that occurred when processing voice transcripts. The issue was caused by attempting to subscript a string with an index that could exceed the string's endIndex when using indices from a lowercased version of the string.

Added a guard statement to check that the index is within bounds before attempting to subscript the string. If the index is out of bounds, the function continues to the next trigger instead of crashing.

Fixes the crash reported in crash.txt at line 743.
2026-01-28 15:15:36 +01:00
Shadow
cc72498b46
Mac: finish Moltbot rename 2026-01-27 14:12:17 -06:00