Assistant: the wake word's record of what it tried, and the screen

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
HomerandClaude Fable 5.2 committed 2026-11-13 10:30:19 +00:00
1 parent 54286e9bf0
commit ef32f95b74
1 file changed
+10
+10
@@ -182,6 +182,16 @@ what Settings › Assistant › *Wake word* turns on (off by default).
the sheet opens). An activity started from the background is blocked **without an exception**,
so `startActivity` succeeding proves nothing. Settings says that only the digital assistant app
opens by voice over other apps.
- **What was tried is written down** (`wake/WakeLog.kt`): `wakeWay` picks the first way --
the session (service connected, screen on), the sheet's activity started *through the
assistant service* (connected, screen off: a session's window wakes nothing, the activity has
`setTurnScreenOn`), the activity (app on screen), or the notification -- and a `WakeAttempt`
keeps the outcome: `opened` (only once a sheet says it is up, `AssistLink.shown`, within
2.5 s), `not_connected` (`LembasAssistService.current` was null), `refused` (the exception),
`no_sheet`; with whether the role was held and when `onReady` / `onShutdown` last came. The
last five are in `Prefs.wakeLog`, logged under `LLeMbasWake`, and shown as **Last wake**.
Settings also says when LLeMbas holds the role but the service is not connected. A further
way of answering (by voice, without a sheet) would be one more `WakeWay`.
- **The engine wants a pause after the phrase**: with `numTrailingBlanks = 1` it triggers once
more than one blank frame follows (about 80 ms). Settings and the test row say so.
- **Starts and stops**: nobody calls `stopService`. Stop (the switch, the notification's button)