openclaw/apps/macos/Sources
Shiva Prasad fdbaae6a33
macOS: fix trigger word input disappearing when typing and on add (#1506)
Fixed issue where trigger words would disappear when typing or when adding new trigger words. The problem was that `swabbleTriggerWords` changes were triggering `VoiceWakeRuntime.refresh()` which sanitized the array by removing empty strings in real-time.

Solution: Introduced local `@State` buffer `triggerEntries` with stable UUID identifiers for each trigger word entry. User edits now only affect the local state buffer and are synced back to `AppState` on explicit actions (submit, remove, disappear). This prevents premature sanitization during editing.

The local state is loaded on view appear and when the view becomes active, ensuring it stays in sync with `AppState`.
2026-01-23 20:08:12 +00:00
..
Clawdbot macOS: fix trigger word input disappearing when typing and on add (#1506) 2026-01-23 20:08:12 +00:00
ClawdbotDiscovery fix: shorten bonjour gateway service type 2026-01-20 15:10:06 +00:00
ClawdbotIPC style(macos): fix swiftformat lint 2026-01-20 16:19:37 +00:00
ClawdbotMacCLI fix: macOS auto bind loopback-first 2026-01-22 06:35:59 +00:00
ClawdbotProtocol chore: update protocol Swift models 2026-01-22 11:02:15 +00:00