Files
LLeMbas-Android/app/src/full
HomerandClaude Fable 5.2 5fcc158763
CI / check (push) Canceled after 0s
Wake word, from the review: a heard word always shows, holds end, stop and retry
1. Heard, but not the assistant and not on screen: Android blocks the
   activity start silently and runCatching called it a success, so nothing
   opened and nothing was posted. The opening is decided from what Android
   allows (wakeOpening: session, activity while an activity of the app is
   started, else a notification); "Heard you. Tap to ask." goes on a channel
   of its own (high importance, fixed words, times out after a minute) and
   the sheet cancels it. Settings says that only the digital assistant app
   opens by voice over other apps, with a row to that system setting.
2. The hold after the word is apart from the sheets' count and ends on a
   process scope in a finally; a starting service clears it.
3. A tap on the state in Settings retries now (WakeStatus.retryNow ->
   WakeListener.retryNow) and restarts the back-off; thirty seconds of
   samples taken in also resets the count of failures.
4. State writes carry the instance's token (WakeStatus.begin): an older
   instance's last "off" no longer overwrites a newer one. Engine.create is
   synchronized and writes the keywords to a file of its own.
5. numTrailingBlanks = 1 means more than one blank frame after the phrase
   (about 80 ms): the comment is corrected, and Settings and the test row
   say to pause after the phrase.
6. Stop no longer calls stopService or stopSelf() under a possible pending
   foreground start: the setting goes off and the loop ends the service with
   stopSelf(lastStartId); a start that arrives after the loop ended begins
   it again.
7. The "tap to listen again" notification is cancelled when the service
   starts.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 10:39:34 +00:00
..